[arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

Fredrik Eriksson fredrik.eriksson at gigabit.nu
Fri Jun 27 03:16:02 EDT 2008


It compiles and runs fine with my g++ 4.3.0
I don't get any segfaults anyway.

~> g++ -O3 test.c -o test
~> ./test
~> g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang 
--enable-threads=posix --mandir=/usr/share/man --enable-__cxa_atexit 
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.0 (GCC)

Best Regards
Fredrik Eriksson

Maik Beckmann wrote:
> Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann:
>   
>> Hi,
>>
>> Can someone confirm that this
>>   http://codepad.org/I313t7BN
>> compiled with
>>   g++ -O3 test.cpp -o test
>> gives a segfault when trying to run it via
>>   ./test
>> ??
>>
>> I mailed to the gcc-help list regarding this issue:
>>   http://thread.gmane.org/gmane.comp.gcc.help/24804
>>
>> Thanks,
>>  -- Maik
>>
>> PS: I'm on arch64, no testing no unstable.
>>     
>
> I just managed to debootstrap ubuntu hardy amd64 to a partition.  Same 
> segfault! Thank you people for helping me hunting down this bug.  I'll file a 
> bug report to gcc.
>
> -- Maik
>
>
>   





More information about the arch-general mailing list