[GiNaC-list] Re: ginac parsing from string issue

Sheplyakov Alexei varg at theor.jinr.ru
Mon Jul 10 14:08:42 CEST 2006


Hello,

On Sun, Jul 09, 2006 at 09:30:33PM +0200, Richard B. Kreckel wrote:

> I'm unable to reproduce your problem using either Debian/testing (gcc 
> 4.1.2-prerelease) or Debian/stable (gcc 3.3.5). Over here, it works as 
> expected. I'm CCing ginac-list, maybe someone there has a similar system 
> and can reproduce your problem?
> 
> The behavior you describe sounds too weird to be true. I recommend first 
> using another system or compiler version in order to get a clue where it 
> is coming from.

check/exams fails due to parser errors on my Debian/unstable system
(g++-4.1 *Debian version* 4.1.1-7).
The error is somewhere in exam_numeric.cpp:exam_numeric6(), here
is a backtrace:

Catchpoint 11 (exception thrown)
0x20fe54d5 in __cxa_throw () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x20fe54d5 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1  0x20c13fb5 in GiNaC::ex::construct_from_string_and_lst (s=@0x58dada3c, l=@0x58dada94)
    at /home/pc7135/varg/src/ginac-1.3.4/ginac/ex.cpp:538
#2  0x08060182 in exam_numeric6 () at /home/pc7135/varg/src/ginac-1.3.4/check/../ginac/ex.h:357
#3  0x08067ad9 in exam_numeric () at /home/pc7135/varg/src/ginac-1.3.4/check/exam_numeric.cpp:388
#4  0x0817cf3f in main () at /home/pc7135/varg/src/ginac-1.3.4/check/exams.cpp:40
(gdb) frame 1
(gdb) print s
$5 = (const string &) @0x58dada3c: {static npos = 4294967295, 
  _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
    _M_p = 0x81d60cc "0^(I*sym)"}}
(gdb) call l.dbgprint()
{sym}


BTW, we have discussed similar problem with ginac 1.4 tests some time ago
(see http://www.ginac.de/pipermail/ginac-list/2006-May/000835.html)
You have (almost) convinced me of the compiler bug...

Best regards,
 Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20060710/9553ebf5/attachment.pgp


More information about the GiNaC-list mailing list