Re: trunk's genmodes crashes on Ubuntu/Lucid (alpha2 snapshot) not on Debian/Sid [both AMD64 architecture]

2010-02-07 Thread H.J. Lu
On Sun, Feb 7, 2010 at 1:02 AM, Basile STARYNKEVITCH
 wrote:
> Basile STARYNKEVITCH wrote:
>>
>> 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
>
>
> This is very probably an strcmp bug inside Ubuntu/Lucid
> https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/518314
>

Glibc 2.11 may have multiple versions of strmp for different processors.
You need to report:

1. 32bit or 64bit.
2. Which SSE extensions are available.



-- 
H.J.


Re: trunk's genmodes crashes on Ubuntu/Lucid (alpha2 snapshot) not on Debian/Sid [both AMD64 architecture]

2010-02-07 Thread Justin P. Mattock

On 02/07/10 01:02, Basile STARYNKEVITCH wrote:

Basile STARYNKEVITCH wrote:

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



This is very probably an strcmp bug inside Ubuntu/Lucid
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/518314

Sorry for the noise.




you should be able to build gcc without issues
i.g. just built over here(just make sure you have
gettext, textinfo, etc.. all build tools);

Justin P. Mattock


Re: trunk's genmodes crashes on Ubuntu/Lucid (alpha2 snapshot) not on Debian/Sid [both AMD64 architecture]

2010-02-07 Thread Basile STARYNKEVITCH

Basile STARYNKEVITCH wrote:

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



This is very probably an strcmp bug inside Ubuntu/Lucid
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/518314

Sorry for the noise.

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


trunk's genmodes crashes on Ubuntu/Lucid (alpha2 snapshot) not on Debian/Sid [both AMD64 architecture]

2010-02-06 Thread Basile STARYNKEVITCH

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  0x004082a0 in strcmp ()
#1  0x00400d22 in eq_mode (p=,
q=) at ../../gcc-trunk/gcc/genmodes.c:199
#2  0x00403a96 in htab_find_with_hash (htab=0x409010,
element=0x7fffe180, hash=4294965254)
at ../../../gcc-trunk/libiberty/hashtab.c:575
#3  0x00403b44 in htab_find (htab=0x409010, element=0x7fffe180)
at ../../../gcc-trunk/libiberty/hashtab.c:599
#4  0x00401150 in find_mode (cl=MODE_FRACT, name=0x404eeb "SQ",
file=0x6 , line=6)
at ../../gcc-trunk/gcc/genmodes.c:149
#5  new_mode (cl=MODE_FRACT, name=0x404eeb "SQ",
file=0x6 , line=6)
at ../../gcc-trunk/gcc/genmodes.c:159
#6  0x004012cc 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  0x00401ed6 in create_modes ()
at ../../gcc-trunk/gcc/machmode.def:206
#8  0x0040262a in main (argc=,
argv=) 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: basilestarynkevitchnet mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***