public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Mainline miscompiles tramp3d-v3 testcase at -O0
@ 2004-09-06 21:40 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2004-09-06 21:40 UTC (permalink / raw)
  To: gcc

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-06 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-06 21:40 Mainline miscompiles tramp3d-v3 testcase at -O0 Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).