Hello

When building the gcc trunk revision 156557 on Ubuntu lucid AMD64 (the alpha of the next Ubuntu release, which I upgraded just today on Febr 06, 2010), I am getting a repeatable SIGSEGV from genmodes

apparently, eq_mode is getting p=q=null pointers.

The compiler compiling GCC trunk with CFLAGS='-O -g' is

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-2ubuntu1)

THe GCC trunk 156557 was configured with
   CFLAGS='-O -g' ../gcc-trunk/configure --disable-bootstrap --enable-lto 
--enable-languages=c,lto

The debug backtrace is

(gdb) bt
#0  0x00000000004082a0 in strcmp ()
#1  0x0000000000400d22 in eq_mode (p=<value optimized out>,
    q=<value optimized out>) at ../../gcc-trunk/gcc/genmodes.c:199
#2  0x0000000000403a96 in htab_find_with_hash (htab=0x409010,
    element=0x7fffffffe180, hash=4294965254)
    at ../../../gcc-trunk/libiberty/hashtab.c:575
#3  0x0000000000403b44 in htab_find (htab=0x409010, element=0x7fffffffe180)
    at ../../../gcc-trunk/libiberty/hashtab.c:599
#4  0x0000000000401150 in find_mode (cl=MODE_FRACT, name=0x404eeb "SQ",
    file=0x6 <Address 0x6 out of bounds>, line=6)
    at ../../gcc-trunk/gcc/genmodes.c:149
#5  new_mode (cl=MODE_FRACT, name=0x404eeb "SQ",
    file=0x6 <Address 0x6 out of bounds>, line=6)
    at ../../gcc-trunk/gcc/genmodes.c:159
#6  0x00000000004012cc in make_fixed_point_mode (cl=4213776,
    name=0x404eeb "SQ", bytesize=4, ibit=0, fbit=31,
    file=0x405370 "../../gcc-trunk/gcc/machmode.def", line=206)
    at ../../gcc-trunk/gcc/genmodes.c:578
#7  0x0000000000401ed6 in create_modes ()
    at ../../gcc-trunk/gcc/machmode.def:206
#8  0x000000000040262a in main (argc=<value optimized out>,
    argv=<value optimized out>) at ../../gcc-trunk/gcc/genmodes.c:1395


I am not able to reproduce that bug on my desktop running Debian/Sid. Both are 
AMD64 architectures.

Does anyone observed that also? It seems Ubuntu/Lucid specific ... (kernel is 2.6.32-12-generic from ubuntu if that matters; libc6 package is 2.11.1-0ubuntu2 from ubuntu).

Regards.
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Reply via email to