public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault
@ 2009-04-04 22:23 lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:27 ` [Bug c/39641] " lasse-gccbug-2009 at mail dot plastictree dot net
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: lasse-gccbug-2009 at mail dot plastictree dot net @ 2009-04-04 22:23 UTC (permalink / raw)
To: gcc-bugs
Compiling Linux 2.6.28.6 ends with a segfault.
I will attach preprocessed source files and kernel configuration file when I
find out how to do this with this interface. Here is some information for now:
Configure switches for gcc (besides prefix):
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-checking --disable-werror --enable-bootstrap
--enable-languages=c,c++
Thread model: posix
Command line:
gcc -Wp,-MD,net/core/.skbuff.o.d -nostdinc -isystem
/package/host/localhost/sepbuilt/gcc41-4.1.2-01-03/prefix/lib/gcc/i686-pc-linux-gnu/4.1.2/include
-D__KERNEL__ -Iinclude -I/fs/tmp/mount/tmp/linux-2.6.28.6/arch/x86/include
-include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3
-freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=i686
-Wa,-mtune=generic32 -ffreestanding -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Iarch/x86/include/asm/mach-default -fno-stack-protector -fomit-frame-pointer
-Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(skbuff)" -D"KBUILD_MODNAME=KBUILD_STR(skbuff)"
-c -o net/core/skbuff.o net/core/skbuff.c
Output:
net/core/skbuff.c:2673: internal compiler error: Segmentation fault
--
Summary: Compiling Linux 2.6.28.6 ends with a segfault
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lasse-gccbug-2009 at mail dot plastictree dot net
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
@ 2009-04-04 22:27 ` lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:29 ` lasse-gccbug-2009 at mail dot plastictree dot net
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: lasse-gccbug-2009 at mail dot plastictree dot net @ 2009-04-04 22:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-04 22:27 -------
Created an attachment (id=17588)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17588&action=view)
Preprocessed source file
The file is over 1 MB when uncompressed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:27 ` [Bug c/39641] " lasse-gccbug-2009 at mail dot plastictree dot net
@ 2009-04-04 22:29 ` lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-05 15:19 ` [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c lasse-gccbug-2009 at mail dot plastictree dot net
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: lasse-gccbug-2009 at mail dot plastictree dot net @ 2009-04-04 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-04 22:29 -------
Created an attachment (id=17589)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17589&action=view)
Kernel configuration which triggers the problem
Maybe this can help.
The problem is _not_ triggered when using 'make defconfig'.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:27 ` [Bug c/39641] " lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:29 ` lasse-gccbug-2009 at mail dot plastictree dot net
@ 2009-04-05 15:19 ` lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-22 23:39 ` [Bug middle-end/39641] " pinskia at gcc dot gnu dot org
2009-04-23 6:43 ` lasse-gccbug-2009 at mail dot plastictree dot net
4 siblings, 0 replies; 6+ messages in thread
From: lasse-gccbug-2009 at mail dot plastictree dot net @ 2009-04-05 15:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-05 15:19 -------
Segfault does not occur when omitting '-ffreestanding'.
Segfault does not occur when using '-save-temps'.
When I add '-save-temps' to 'arch/x86/Makefile' in the same location in which
'-ffreestanding' occurs, 'make' runs through. I have not tested whether the
resulting kernel works.
Moreover, in that Makefile, it reads:
# temporary until string.h is fixed
KBUILD_CFLAGS += -ffreestanding
So, it appears that '-ffreestanding' is itself a workaround for something.
Another approach: obtain 'skbuff.i' via '-save-temps' and then copy it to
'net/core/skbuff.c'. Then 'make' will also run through.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
` (2 preceding siblings ...)
2009-04-05 15:19 ` [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c lasse-gccbug-2009 at mail dot plastictree dot net
@ 2009-04-22 23:39 ` pinskia at gcc dot gnu dot org
2009-04-23 6:43 ` lasse-gccbug-2009 at mail dot plastictree dot net
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-22 23:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2009-04-22 23:39 -------
Can you give the output of gcc -v?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
` (3 preceding siblings ...)
2009-04-22 23:39 ` [Bug middle-end/39641] " pinskia at gcc dot gnu dot org
@ 2009-04-23 6:43 ` lasse-gccbug-2009 at mail dot plastictree dot net
4 siblings, 0 replies; 6+ messages in thread
From: lasse-gccbug-2009 at mail dot plastictree dot net @ 2009-04-23 6:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-23 06:42 -------
(In reply to comment #4)
> Can you give the output of gcc -v?
>
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with:
/package/host/localhost/sepbuilt/gcc41-4.1.2-01-03/src/unpack/gcc-4.1.2/configure
--prefix=/package/host/localhost/sepbuilt/gcc41-4.1.2-01-03/prefix
--libexecdir=/package/host/localhost/sepbuilt/gcc41-4.1.2-01-03/prefix/libexec
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-checking --disable-werror --enable-bootstrap
--enable-languages=c,c++
Thread model: posix
gcc version 4.1.2
By the way, this gcc was compiled roughly following the instructions from the
HLFS project. In particular, this includes the following patches:
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-fstack_protector-1.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-strncat_chk-1.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-fortify_source-2.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-fpie-2.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-DW_CFA_val-1.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-Wno_overlength_strings-1.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-PR26864-1.patch
http://www.linuxfromscratch.org/patches/hlfs/svn/gcc-4.1.2-texinfo_fix-1.patch
I can go and try to reproduce with a vanilla gcc, if that helps.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39641
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-04-23 6:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-04 22:23 [Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:27 ` [Bug c/39641] " lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-04 22:29 ` lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-05 15:19 ` [Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c lasse-gccbug-2009 at mail dot plastictree dot net
2009-04-22 23:39 ` [Bug middle-end/39641] " pinskia at gcc dot gnu dot org
2009-04-23 6:43 ` lasse-gccbug-2009 at mail dot plastictree dot net
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).