strange crash with -march=athlon
Michael Ritzert
Ritzert@t-online.de
Wed Jul 10 02:08:00 GMT 2002
Am Montag, 8. Juli 2002 11:06 schrieb Michael Ritzert:
> Hi all,
>
> current gcc HEAD crashes for me when compiling the attached source file
> with -march=athlon. It no longer crashes when I remove unrelated lines in
> front of the one it reports the crash on. Some kind of memory corruption?
>
> If you can't reproduce it, tell me and I'll try to compile gcc with
> debugging enabled.
I have since hit this bug 3 more times. Once while compiling STLport, 2 times
while compiling code of a project I'm working on. The symptoms are always the
same: gcc segfaults when invoked with -march=athlon; the crash goes away when
I remove random lines in the preprocessed file.
This happens on three machines for me, two running Linux, one running FreeBSD.
The shortest testcase I can provide is:
# gcc -v
Reading specs from /3/gcc/HEAD/install/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /3/gcc/HEAD/gcc/configure --enable-threads=posix
--prefix=/3/gcc/HEAD/install
Thread model: posix
gcc version 3.2 20020709 (experimental)
# cat ~/x.cpp
#include <iterator>
# gdb gcc
GNU gdb 20020710
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) r -c -march=athlon ~/x.cpp
Starting program: /3/gcc/HEAD/install/bin/gcc -c -march=athlon ~/x.cpp
In file included from /3/gcc/HEAD/install/include/c++/3.2/string:52,
from /3/gcc/HEAD/install/include/c++/3.2/bits/localefwd.h:49,
from /3/gcc/HEAD/install/include/c++/3.2/ios:48,
from /3/gcc/HEAD/install/include/c++/3.2/ostream:45,
from /3/gcc/HEAD/install/include/c++/3.2/iterator:70,
from /3/gcc/x.cpp:1:
/3/gcc/HEAD/install/include/c++/3.2/bits/stl_function.h:551: internal compiler
error: internal
error: Speicherzugriffsfehler
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Program exited with code 01.
(gdb) bt
No stack
How might I get into debugging this?
Michael
More information about the Gcc-bugs
mailing list