Subject: Re: GCC segfaults
To: None <tech-toolchain@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-toolchain
Date: 10/26/2005 14:58:18
On Wed, Oct 26, 2005 at 02:16:41PM +0200, Stéphane Witzmann wrote:
> 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.

Looks like failing memory. Try pkgsrc/sysutils/memtest86.
-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)