public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29241] New: gcc 4.1.2 segmentation fault
@ 2006-09-26 19:37 gcc at tommay dot net
2006-09-26 19:41 ` [Bug c/29241] " gcc at tommay dot net
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: gcc at tommay dot net @ 2006-09-26 19:37 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4385 bytes --]
This gcc command causes a segmentation fault. The pre-processed file this
output says to include in the bug report is far too large (675K) to inline in
this report, and I see no way to attach it to the report. Let me know if you
want me to email it or something.
gcc -v -save-temps -Wp,-MD,net/ipv4/.ip_output.o.d -nostdinc -isystem
/usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -include
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -O0 -fno-omit-frame-pointer
-fno-optimize-sibling-calls -fasynchronous-unwind-tables -g -D__arch_um__
'-DSUBARCH="i386"' -Iarch/um/include
-I/tom/linux/linux-uml/arch/um/include/skas -Dvmap=kernel_vmap
-Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno
-Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -fno-unit-at-a-time
-U__i386__ -Ui386 -march=i686 -mtune=pentium4 -mpreferred-stack-boundary=2
-ffreestanding -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement
-Wno-pointer-sign '-DKBUILD_STR(s)=#s'
'-DKBUILD_BASENAME=KBUILD_STR(ip_output)'
'-DKBUILD_MODNAME=KBUILD_STR(ip_output)' -c -o ip_output.o net/ipv4/ip_output.c
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -E -quiet -nostdinc -v -Iinclude
-Iarch/um/include -I/tom/linux/linux-uml/arch/um/include/skas -D__KERNEL__
-D__arch_um__ -DSUBARCH="i386" -Dvmap=kernel_vmap
-Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno
-Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -U__i386__ -Ui386
-D_LARGEFILE64_SOURCE -DKBUILD_STR(s)=#s
-DKBUILD_BASENAME=KBUILD_STR(ip_output) -DKBUILD_MODNAME=KBUILD_STR(ip_output)
-isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -include
include/linux/autoconf.h -MD net/ipv4/.ip_output.o.d net/ipv4/ip_output.c
-march=i686 -mtune=pentium4 -mpreferred-stack-boundary=2 -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-aliasing -fno-common -fno-omit-frame-pointer
-fno-optimize-sibling-calls -fasynchronous-unwind-tables -fno-unit-at-a-time
-ffreestanding -fworking-directory -O0 -fpch-preprocess -o ip_output.i
#include "..." search starts here:
#include <...> search starts here:
include
arch/um/include
/tom/linux/linux-uml/arch/um/include/skas
/usr/lib/gcc/i486-linux-gnu/4.1.2/include
End of search list.
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed ip_output.i -quiet
-dumpbase ip_output.c -march=i686 -mtune=pentium4 -mpreferred-stack-boundary=2
-auxbase-strip ip_output.o -g -O0 -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -Wdeclaration-after-statement -Wno-pointer-sign -version
-fno-strict-aliasing -fno-common -fno-omit-frame-pointer
-fno-optimize-sibling-calls -fasynchronous-unwind-tables -fno-unit-at-a-time
-ffreestanding -o ip_output.s
GNU C version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) (i486-linux-gnu)
compiled by GNU C version 4.1.2 20060901 (prerelease) (Debian
4.1.1-13).GGC heuristics: --param ggc-min-expand=55 --param
ggc-min-heapsize=48160
Compiler executable checksum: 87670b01f6c8def5369835011f9cd001
net/ipv4/ip_output.c: In function ip_output:
net/ipv4/ip_output.c:217: 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.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccgHvFWq.out file, please attach this to
your bugreport.
--
Summary: gcc 4.1.2 segmentation fault
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at tommay dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/29241] gcc 4.1.2 segmentation fault
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
@ 2006-09-26 19:41 ` gcc at tommay dot net
2006-09-27 2:47 ` [Bug c/29241] [4.0/4.1/4.2 Regression] ICE with always inline pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: gcc at tommay dot net @ 2006-09-26 19:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from gcc at tommay dot net 2006-09-26 19:40 -------
Created an attachment (id=12331)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12331&action=view)
Pre-processed output causing the fault.
Here's the pre-processed output to cause the fault.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/29241] [4.0/4.1/4.2 Regression] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
2006-09-26 19:41 ` [Bug c/29241] " gcc at tommay dot net
@ 2006-09-27 2:47 ` pinskia at gcc dot gnu dot org
2006-09-27 6:37 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-27 2:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-27 02:47 -------
Confirmed reduced testcase:
static inline __attribute__((always_inline)) void ip_finish_output2(){}
static inline __attribute__((always_inline)) void ip_finish_output()
{
ip_fragment(ip_finish_output2);
ip_finish_output2();
}
void ip_mc_output()
{
ip_finish_output();
}
void ip_output()
{
ip_finish_output();
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.0.0 4.1.0 4.2.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2006-09-27 02:47:49
date| |
Summary|gcc 4.1.2 segmentation fault|[4.0/4.1/4.2 Regression] ICE
| |with always inline
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c/29241] [4.0/4.1/4.2 Regression] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
2006-09-26 19:41 ` [Bug c/29241] " gcc at tommay dot net
2006-09-27 2:47 ` [Bug c/29241] [4.0/4.1/4.2 Regression] ICE with always inline pinskia at gcc dot gnu dot org
@ 2006-09-27 6:37 ` pinskia at gcc dot gnu dot org
2006-09-27 6:41 ` [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-27 6:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-27 06:37 -------
This only fails with the C front-end, here is a testcase that also compiles
with the C++ front-end but only fails with the C front-end:
static inline __attribute__((always_inline)) void ip_finish_output2(){}
void ip_fragment(void (*)(void));
static inline __attribute__((always_inline)) void ip_finish_output()
{
ip_fragment(ip_finish_output2);
ip_finish_output2();
}
void ip_mc_output()
{
ip_finish_output();
}
void ip_output()
{
ip_finish_output();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (2 preceding siblings ...)
2006-09-27 6:37 ` pinskia at gcc dot gnu dot org
@ 2006-09-27 6:41 ` pinskia at gcc dot gnu dot org
2006-10-01 23:02 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-27 6:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-27 06:40 -------
(In reply to comment #3)
> This only fails with the C front-end, here is a testcase that also compiles
> with the C++ front-end but only fails with the C front-end:
But I think that is only because the C++ front-end is always unit-at-a-time as
the C testcase passes when using -funit-at-a-time.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Component|c |middle-end
Summary|[4.0/4.1/4.2 Regression] ICE|[4.0/4.1/4.2 Regression]
|with always inline |[non unit-at-a-time] ICE
| |with always inline
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (3 preceding siblings ...)
2006-09-27 6:41 ` [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] " pinskia at gcc dot gnu dot org
@ 2006-10-01 23:02 ` mmitchel at gcc dot gnu dot org
2006-10-09 16:06 ` hubicka at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-01 23:02 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (4 preceding siblings ...)
2006-10-01 23:02 ` mmitchel at gcc dot gnu dot org
@ 2006-10-09 16:06 ` hubicka at gcc dot gnu dot org
2006-10-15 19:46 ` hubicka at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-10-09 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hubicka at gcc dot gnu dot org 2006-10-09 16:06 -------
Mine.
--
hubicka at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |hubicka at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-09-27 02:47:49 |2006-10-09 16:06:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (5 preceding siblings ...)
2006-10-09 16:06 ` hubicka at gcc dot gnu dot org
@ 2006-10-15 19:46 ` hubicka at gcc dot gnu dot org
2007-01-05 11:35 ` [Bug middle-end/29241] [4.0/4.1 " rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-10-15 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hubicka at gcc dot gnu dot org 2006-10-15 19:46 -------
Subject: Bug 29241
Author: hubicka
Date: Sun Oct 15 19:46:26 2006
New Revision: 117753
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117753
Log:
PR middle-end/29241
* cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
declared always_inline even when not inlining.
* gcc.c-torture/compile/pr29241.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr29241.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0/4.1 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (6 preceding siblings ...)
2006-10-15 19:46 ` hubicka at gcc dot gnu dot org
@ 2007-01-05 11:35 ` rguenth at gcc dot gnu dot org
2007-01-05 11:36 ` [Bug middle-end/29241] [4.0 " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-01-05 11:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2007-01-05 11:35 -------
Subject: Bug 29241
Author: rguenth
Date: Fri Jan 5 11:35:01 2007
New Revision: 120475
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120475
Log:
2007-01-05 Richrad Guenther <rguenther@suse.de>
Backport from mainline:
2006-10-15 Jan Hubicka <jh@suse.cz>
PR middle-end/29241
* cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
declared always_inline even when not inlining.
* gcc.c-torture/compile/pr29241.c: New testcase.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/compile/pr29241.c
- copied unchanged from r117753,
trunk/gcc/testsuite/gcc.c-torture/compile/pr29241.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/cgraphunit.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (7 preceding siblings ...)
2007-01-05 11:35 ` [Bug middle-end/29241] [4.0/4.1 " rguenth at gcc dot gnu dot org
@ 2007-01-05 11:36 ` rguenth at gcc dot gnu dot org
2007-02-03 20:27 ` gdr at gcc dot gnu dot org
2007-03-08 10:54 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-01-05 11:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2007-01-05 11:36 -------
Fixed for 4.1.2.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.0.0 4.1.0 |4.0.0 4.1.0 4.1.1
Known to work|3.4.0 4.2.0 |3.4.0 4.2.0 4.1.2
Summary|[4.0/4.1 Regression] [non |[4.0 Regression] [non unit-
|unit-at-a-time] ICE with |at-a-time] ICE with always
|always inline |inline
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (8 preceding siblings ...)
2007-01-05 11:36 ` [Bug middle-end/29241] [4.0 " rguenth at gcc dot gnu dot org
@ 2007-02-03 20:27 ` gdr at gcc dot gnu dot org
2007-03-08 10:54 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from gdr at gcc dot gnu dot org 2007-02-03 20:27 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/29241] [4.0 Regression] [non unit-at-a-time] ICE with always inline
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
` (9 preceding siblings ...)
2007-02-03 20:27 ` gdr at gcc dot gnu dot org
@ 2007-03-08 10:54 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-08 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2007-03-08 10:54 -------
*** Bug 31077 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zhouyi04 at ios dot cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29241
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2007-03-08 10:54 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 19:37 [Bug c/29241] New: gcc 4.1.2 segmentation fault gcc at tommay dot net
2006-09-26 19:41 ` [Bug c/29241] " gcc at tommay dot net
2006-09-27 2:47 ` [Bug c/29241] [4.0/4.1/4.2 Regression] ICE with always inline pinskia at gcc dot gnu dot org
2006-09-27 6:37 ` pinskia at gcc dot gnu dot org
2006-09-27 6:41 ` [Bug middle-end/29241] [4.0/4.1/4.2 Regression] [non unit-at-a-time] " pinskia at gcc dot gnu dot org
2006-10-01 23:02 ` mmitchel at gcc dot gnu dot org
2006-10-09 16:06 ` hubicka at gcc dot gnu dot org
2006-10-15 19:46 ` hubicka at gcc dot gnu dot org
2007-01-05 11:35 ` [Bug middle-end/29241] [4.0/4.1 " rguenth at gcc dot gnu dot org
2007-01-05 11:36 ` [Bug middle-end/29241] [4.0 " rguenth at gcc dot gnu dot org
2007-02-03 20:27 ` gdr at gcc dot gnu dot org
2007-03-08 10:54 ` rguenth at gcc dot gnu dot org
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).