Subject: GCC segfaults
To: None <>
From: =?ISO-8859-1?Q?St=E9phane?= Witzmann <>
List: tech-toolchain
Date: 10/26/2005 14:16:41

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
-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 -nostdinc -D
-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
/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:> 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

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