Subject: GCC segfaults
To: None <tech-toolchain@netbsd.org>
From: =?ISO-8859-1?Q?St=E9phane?= Witzmann <stephane.witzmann@gmail.com>
List: tech-toolchain
Date: 10/26/2005 14:16:41
Hello

I experienced quite a few GCC segfaults yesterday. I was just building
kernels ({current, 2.0.2}/i386) from 2.0.2/i386.

(...)
#   compile  GENERIC.MPDEBUG/ohci_pci.o
/home/durandil/NetBSD/head/cross//tools/bin/i386--netbsdelf-gcc
-ffreestanding -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-fno-zero-initialized-in-bss -Di386 -I.
-I/home/durandil/NetBSD/head/src/sys/arch
-I/home/durandil/NetBSD/head/src/sys -nostdinc -D
LKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/home/durandil/
NetBSD/head/src/sys/dist/ipf
-c /home/durandil/NetBSD/head/src/sys/dev/pci/ohci_pci.c
/home/durandil/NetBSD/head/src/sys/dev/pci/ohci_pci.c: In function
`ohci_pci_attach':
/home/durandil/NetBSD/head/src/sys/dev/pci/ohci_pci.c:113: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.

It never failed twice in the same file. Here is a list of where it crashed :
- lxtphy.o
- ip_frag.o
- in6_pcb.o
- fil.o
- linux_misc.o
- if_lc_isa.o
- ip_log.o
- cd9660_lookup.o
- ip_frag.o
- tty_pty.o
(etc)

It seems that the more load there is on the building machine, the more it is
likely to crash. I ended up shutting down X and all the other apps... and
it worked.


Stéphane Witzmann