Igor Schein on Tue, 30 Jul 2002 18:00:55 -0400

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gcc-3.1.1 on alpha


gcc-3.1.1 miscompiles latest CVS pari code on alpha-linux:

? conjvec(Mod(x^2+x+1,x^3-x-1))
  ***   bug in GP (Floating Point Exception), please report

That's with debugging binary + alpha kernel.  With generic kernel it
works fine.  Here's the stack:

#0  0x2000042b70c in __remqu () from /lib/libc.so.6.1
#1  0x120068ae4 in mppgcd_cgcd (a=1, b=0) at ../src/basemath/arith1.c:1332
#2  0x120068dbc in mppgcd (a=0x12035fef0, b=0x20000c44e10) at ../src/basemath/arith1.c:1366
#3  0x12019ab4c in ggcd (x=0x12035fef0, y=0x20000c44e10) at ../src/basemath/polarit2.c:2346
#4  0x1201c2130 in _gcd (a=0x12035fef0, b=0x20000c44e10) at ../src/basemath/polarit3.c:4531
#5  0x1201c2320 in modulargcd (A0=0x20000c44f70, B0=0x20000c44e58) at ../src/basemath/polarit3.c:4549
#6  0x1201c5f58 in square_free_factorization (pol=0x20000c44f70) at ../src/basemath/rootpol.c:300
#7  0x1201d1dfc in solve_exact_pol (p=0x20000c44f70, bitprec=128) at ../src/basemath/rootpol.c:1988
#8  0x1201d20d8 in roots_com (p=0x20000c44f70, l=4) at ../src/basemath/rootpol.c:2015
#9  0x1201d2598 in roots (p=0x20000c44f70, l=4) at ../src/basemath/rootpol.c:2075
#10 0x12004e16c in conjvec (x=0x20000c44fa0, prec=4) at ../src/basemath/alglin2.c:546
#11 0x120273e18 in identifier () at ../src/language/anal.c:1700
#12 0x12026fd00 in truc () at ../src/language/anal.c:855
#13 0x12026f63c in facteur () at ../src/language/anal.c:769
#14 0x12026e0f0 in expr () at ../src/language/anal.c:490
#15 0x12026de9c in seq () at ../src/language/anal.c:459
#16 0x12026cfa0 in lisseq0 (t=0x12036aa70 "conjvec(Mod(x^2+x+1,x^3-x-1))", f=0x12026dda4 <seq>) at ../src/language/anal.c:206
#17 0x12026d1a4 in lisseq (t=0x12036aa70 "conjvec(Mod(x^2+x+1,x^3-x-1))") at ../src/language/anal.c:228
#18 0x12026d2d8 in readseq (c=0x12036aa70 "conjvec(Mod(x^2+x+1,x^3-x-1))", strict=32) at ../src/language/anal.c:238
#19 0x1202a554c in gp_main_loop (ismain=1) at ../src/gp/gp.c:2431
#20 0x1202a68b0 in main (argc=3, argv=0x11ffffb58) at ../src/gp/gp.c:2717
#21 0x200003470ec in __libc_start_main (main=0x1202a6594 <main>, argc=3, ubp_av=0x11ffffb58, init=0x12001d3e0 <_init>, fini=0x2000002e788 <_dl_debug_mask>,
    rtld_fini=0x20000000000, stack_end=0x11ffffb40) at ../sysdeps/generic/libc-start.c:129

Since in the near future gcc3 will replace gcc2 in all Linux
distributions, we might as well address this issue now.