This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mainline miscompiles tramp3d-v3 testcase at -O0


The tramp3d-v3.cpp testcase (http://www.tat.physik.uni-tuebingen.de/~rguenth/gcc/tramp3d-v3.cpp.gz)
is miscompiled at -O0 and up. Symptom is the binary segfaulting at
startup with commandline "-n 10".


Failure happens on ia32 with g++-3.5 (GCC) 3.5.0 20040906 (experimental)
but not with g++ (GCC) 3.5.0 20040827 (experimental).

(gdb) run -n 10
Starting program: /tmp/tramp3d-v3 -n 10

Program received signal SIGSEGV, Segmentation fault.
0x0000000c in ?? ()
(gdb) bt
#0 0x0000000c in ?? ()
#1 0x0805611b in Inform& operator<< <int>(Inform&, int const&) (o=@0xbfffe4dc,
val=@0x8228180) at tramp3d-v3.cpp:382
#2 0x08051f27 in main (argc=3, argv=0xbffff924) at tramp3d-v3.cpp:56567
#3 0x0817fb85 in __libc_start_main ()


looks like stack-corruption.

Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]