public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/25930] New: sigsegv with full --enable-checking
@ 2006-01-23 19:38 aj at gcc dot gnu dot org
2006-01-23 19:54 ` [Bug bootstrap/25930] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: aj at gcc dot gnu dot org @ 2006-01-23 19:38 UTC (permalink / raw)
To: gcc-bugs
To track down the failure on Linux/x86-64 that I have with using ulimit, I
build with full checking including gcac and get the following segmentation
fault during bootstrap:
/builds/gcc/misc/./gcc/xgcc -B/builds/gcc/misc/./gcc/
-B/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/bin/
-B/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/lib/ -isystem
/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/include -isystem
/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I. -I/cvs/gcc-svn/trunk/gcc
-I/cvs/gcc-svn/trunk/gcc/. -I/cvs/gcc-svn/trunk/gcc/../include
-I/cvs/gcc-svn/trunk/gcc/../libcpp/include
-I/cvs/gcc-svn/trunk/gcc/../libdecnumber -I../libdecnumber -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables -c /cvs/gcc-svn/trunk/gcc/crtstuff.c
-DCRT_BEGIN -DCRTSTUFFT_O -o crtbeginT.o -save-temps -v
Reading specs from /builds/gcc/misc/./gcc/specs
Target: x86_64-suse-linux-gnu
Configured with: /cvs/gcc-svn/trunk/configure --prefix=/opt/gcc/4.2-devel
--enable-checking=yes,misc,tree,rtl,gc,rtlflag,gcac,fold,assert,runtime
--enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit
--enable-shared --enable-languages=c,c++,ada,treelang,java,f95,objc
--with-system-zlib x86_64-suse-linux-gnu
Thread model: posix
gcc version 4.2.0 20060123 (experimental)
/builds/gcc/misc/./gcc/cc1 -E -quiet -v -I. -I. -I/cvs/gcc-svn/trunk/gcc
-I/cvs/gcc-svn/trunk/gcc/. -I/cvs/gcc-svn/trunk/gcc/../include
-I/cvs/gcc-svn/trunk/gcc/../libcpp/include
-I/cvs/gcc-svn/trunk/gcc/../libdecnumber -I../libdecnumber -iprefix
/builds/gcc/misc/gcc/../lib/gcc/x86_64-suse-linux-gnu/4.2.0/ -isystem
/builds/gcc/misc/./gcc/include -DIN_GCC -DCRT_BEGIN -DCRTSTUFFT_O -isystem
/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/include -isystem
/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/sys-include -isystem ./include
/cvs/gcc-svn/trunk/gcc/crtstuff.c -mtune=generic -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables -O2 -O2 -O2 -fpch-preprocess -o crtstuff.i
ignoring nonexistent directory
"/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/include"
ignoring nonexistent directory
"/opt/gcc/4.2-devel/x86_64-suse-linux-gnu/sys-include"
ignoring duplicate directory "./include"
ignoring nonexistent directory
"/builds/gcc/misc/gcc/../lib/gcc/x86_64-suse-linux-gnu/4.2.0/include"
ignoring nonexistent directory
"/builds/gcc/misc/gcc/../lib/gcc/x86_64-suse-linux-gnu/4.2.0/../../../../x86_64-suse-linux-gnu/include"
ignoring nonexistent directory
"/opt/gcc/4.2-devel/lib/gcc/x86_64-suse-linux-gnu/4.2.0/../../../../x86_64-suse-linux-gnu/include"
ignoring duplicate directory "."
ignoring duplicate directory "/cvs/gcc-svn/trunk/gcc/."
#include "..." search starts here:
#include <...> search starts here:
.
/cvs/gcc-svn/trunk/gcc
/cvs/gcc-svn/trunk/gcc/../include
/cvs/gcc-svn/trunk/gcc/../libcpp/include
/cvs/gcc-svn/trunk/gcc/../libdecnumber
../libdecnumber
/builds/gcc/misc/./gcc/include
/usr/local/include
/opt/gcc/4.2-devel/include
/opt/gcc/4.2-devel/lib/gcc/x86_64-suse-linux-gnu/4.2.0/include
/usr/include
End of search list.
/builds/gcc/misc/./gcc/cc1 -fpreprocessed crtstuff.i -quiet -dumpbase
crtstuff.c -mtune=generic -auxbase-strip crtbeginT.o -g -g0 -O2 -O2 -O2 -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -version -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder
-fno-omit-frame-pointer -fno-asynchronous-unwind-tables -o crtstuff.s
GNU C version 4.2.0 20060123 (experimental) (x86_64-suse-linux-gnu)
compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux).
GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0
Compiler executable checksum: 0ff067d69399051f4d09b6722bab4610
/cvs/gcc-svn/trunk/gcc/crtstuff.c:345: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
aj@reger:/builds/gcc/misc/gcc> gdb /builds/gcc/misc/./gcc/cc1
GNU gdb 6.3
Copyright 2004 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 "x86_64-suse-linux"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".
Breakpoint 1 at 0x6f5b63: file /cvs/gcc-svn/trunk/gcc/diagnostic.c, line 642.
Breakpoint 2 at 0x6f5979: file /cvs/gcc-svn/trunk/gcc/diagnostic.c, line 586.
Function "exit" not defined.
Function "abort" not defined.
(gdb) r -fpreprocessed crtstuff.i -quiet -dumpbase crtstuff.c -mtune=generic
-auxbase-strip crtbeginT.o -g -g0 -O2 -O2 -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables -o crtstuff.s
Starting program: /builds/gcc/misc/gcc/cc1 -fpreprocessed crtstuff.i -quiet
-dumpbase crtstuff.c -mtune=generic -auxbase-strip crtbeginT.o -g -g0 -O2 -O2
-O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -version -finhibit-size-directive -fno-inline-functions
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder
-fno-omit-frame-pointer -fno-asynchronous-unwind-tables -o crtstuff.s
GNU C version 4.2.0 20060123 (experimental) (x86_64-suse-linux-gnu)
compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux).
GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0
Compiler executable checksum: 0ff067d69399051f4d09b6722bab4610
Program received signal SIGSEGV, Segmentation fault.
0x0000000000fce8ea in assemble_asm (string=0xa5a5a5a5a5a5a5a5)
at /cvs/gcc-svn/trunk/gcc/varasm.c:885
885 if (TREE_CODE (string) == ADDR_EXPR)
(gdb) bt
#0 0x0000000000fce8ea in assemble_asm (string=0xa5a5a5a5a5a5a5a5)
at /cvs/gcc-svn/trunk/gcc/varasm.c:885
#1 0x00000000010a4558 in cgraph_output_in_order ()
at /cvs/gcc-svn/trunk/gcc/cgraphunit.c:1263
#2 0x00000000010a4c82 in cgraph_optimize () at
/cvs/gcc-svn/trunk/gcc/cgraphunit.c:1426
#3 0x000000000042895a in c_write_global_declarations ()
at /cvs/gcc-svn/trunk/gcc/c-decl.c:7804
#4 0x0000000000f8fe7e in compile_file () at
/cvs/gcc-svn/trunk/gcc/toplev.c:1003
#5 0x0000000000f91875 in do_compile () at /cvs/gcc-svn/trunk/gcc/toplev.c:1948
#6 0x0000000000f918d9 in toplev_main (argc=30, argv=0x7ffffff2c3b8)
at /cvs/gcc-svn/trunk/gcc/toplev.c:1980
#7 0x00000000004b84bb in main (argc=30, argv=0x7ffffff2c3b8)
at /cvs/gcc-svn/trunk/gcc/main.c:35
--
Summary: sigsegv with full --enable-checking
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aj at gcc dot gnu dot org
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/25930] [4.2 Regression] sigsegv with full --enable-checking
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
@ 2006-01-23 19:54 ` pinskia at gcc dot gnu dot org
2006-01-23 19:58 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 19:54 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |GC, ice-on-valid-code
Summary|sigsegv with full --enable- |[4.2 Regression] sigsegv
|checking |with full --enable-checking
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/25930] [4.2 Regression] sigsegv with full --enable-checking
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
2006-01-23 19:54 ` [Bug bootstrap/25930] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-01-23 19:58 ` pinskia at gcc dot gnu dot org
2006-01-23 20:03 ` aj at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-23 19:58 -------
Can you attach crtstuff.i, I think this was caused by:
2006-01-16 Ian Lance Taylor <ian@airs.com>
* common.opt (ftoplevel-reorder): New option.
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/25930] [4.2 Regression] sigsegv with full --enable-checking
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
2006-01-23 19:54 ` [Bug bootstrap/25930] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-23 19:58 ` pinskia at gcc dot gnu dot org
@ 2006-01-23 20:03 ` aj at gcc dot gnu dot org
2006-01-23 20:07 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aj at gcc dot gnu dot org @ 2006-01-23 20:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from aj at gcc dot gnu dot org 2006-01-23 20:03 -------
Created an attachment (id=10717)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10717&action=view)
crtstuff.i as requested
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/25930] [4.2 Regression] sigsegv with full --enable-checking
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-01-23 20:03 ` aj at gcc dot gnu dot org
@ 2006-01-23 20:07 ` pinskia at gcc dot gnu dot org
2006-01-23 20:21 ` [Bug middle-end/25930] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 20:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-23 20:07 -------
"gcc --param ggc-min-expand=0 --param ggc-min-heapsize=0 pr25930.i
-fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -O2
-fno-omit-frame-pointer -fno-asynchronous-unwind-tables" is enough to reproduce
this without full --enable-checking
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/25930] [4.2 Regression] sigsegv with full --enable-checking
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-01-23 20:07 ` pinskia at gcc dot gnu dot org
@ 2006-01-23 20:21 ` pinskia at gcc dot gnu dot org
2006-01-23 20:37 ` [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 20:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-23 20:21 -------
Reducing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-01-23 20:21 ` [Bug middle-end/25930] " pinskia at gcc dot gnu dot org
@ 2006-01-23 20:37 ` pinskia at gcc dot gnu dot org
2006-01-24 6:14 ` ian at airs dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-23 20:37 -------
testcase (Compile with -O2 -fno-toplevel-reorder --param ggc-min-expand=0
--param ggc-min-heapsize=0):
__do_global_dtors_aux (void){}
asm ("a");
asm ("b");
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |build
Last reconfirmed|0000-00-00 00:00:00 |2006-01-23 20:37:38
date| |
Summary|[4.2 Regression] sigsegv |[4.2 Regression] seg fault
|with full --enable-checking |in GC with toplevel asm and
| |-fno-toplevel-reorder
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-01-23 20:37 ` [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder pinskia at gcc dot gnu dot org
@ 2006-01-24 6:14 ` ian at airs dot com
2006-01-24 8:52 ` ian at gcc dot gnu dot org
2006-01-24 8:54 ` ian at airs dot com
8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2006-01-24 6:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from ian at airs dot com 2006-01-24 06:14 -------
Created an attachment (id=10724)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10724&action=view)
Patch being tested
Thanks for reducing this bug, and for CC'ing me. I'm testing this patch, which
I'm pretty sure is the right one.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ian at airs dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-01-24 6:14 ` ian at airs dot com
@ 2006-01-24 8:52 ` ian at gcc dot gnu dot org
2006-01-24 8:54 ` ian at airs dot com
8 siblings, 0 replies; 10+ messages in thread
From: ian at gcc dot gnu dot org @ 2006-01-24 8:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ian at gcc dot gnu dot org 2006-01-24 08:52 -------
Subject: Bug 25930
Author: ian
Date: Tue Jan 24 08:52:44 2006
New Revision: 110163
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110163
Log:
PR middle-end/25930
* cgraphunit.c (cgraph_output_in_order): Don't clear
cgraph_asm_nodes until after asm strings have been output.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-01-24 8:52 ` ian at gcc dot gnu dot org
@ 2006-01-24 8:54 ` ian at airs dot com
8 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2006-01-24 8:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ian at airs dot com 2006-01-24 08:54 -------
Fixed.
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25930
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-01-24 8:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-23 19:38 [Bug bootstrap/25930] New: sigsegv with full --enable-checking aj at gcc dot gnu dot org
2006-01-23 19:54 ` [Bug bootstrap/25930] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-23 19:58 ` pinskia at gcc dot gnu dot org
2006-01-23 20:03 ` aj at gcc dot gnu dot org
2006-01-23 20:07 ` pinskia at gcc dot gnu dot org
2006-01-23 20:21 ` [Bug middle-end/25930] " pinskia at gcc dot gnu dot org
2006-01-23 20:37 ` [Bug middle-end/25930] [4.2 Regression] seg fault in GC with toplevel asm and -fno-toplevel-reorder pinskia at gcc dot gnu dot org
2006-01-24 6:14 ` ian at airs dot com
2006-01-24 8:52 ` ian at gcc dot gnu dot org
2006-01-24 8:54 ` ian at airs dot com
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).