Subject: random cc1 SEGV's with 1.4.1/1.4.2_ALPHA
To: None <port-i386@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: port-i386
Date: 01/23/2000 04:55:49
I have been mystified by random SEGV's in cc1 that only happen on my beefy
i386 machine. Perhaps the "Pentium II Overdrive" is at fault -- this is the
only way to get 333Mhz performance from a PPro motherboard. But I am pretty
sure it didn't happen with 1.3.2, so I have to wonder.

Also, moving from 1.4.1 to 1.4.2_ALPHA seems to have noticeably improved the
rareness of it, which leads me to suspect a UVM race condition again.

Userland in both cases is 1.4.1, only the kernel is 1.4.2_ALPHA. dmesg below.

The general character of the bug is that when running /usr/libexec/cc1 many
times in succession -- either because of a local build that has lots of .c
files, or on behalf of a remote machine that ssh's cc1 jobs onto this machine
-- sooner or later one of the cc1's is going to get a SEGV. It is spurious
however, so cleaning up and restarting the build always works.

Over the last day or so, I've had a Sparc IPX running ``make build'' with
all the cc1 jobs being forwarded to the i386 machine "uni". The entire
run finished without incident, so I populated a DESTDIR and started it on
``make snapshot'' which builds multiple kernels. On sparc the first two are
GENERIC and GENERIC_SCSI3; it finished GENERIC in record time due to the
i386's help, and got partway through GENERIC_SCSI3 before getting halted by
a spurious SEGV.

Todd Whitesel
toddpw @ best.com

NetBSD 1.4.2_ALPHA (UNI) #0: Fri Jan 21 11:48:28 PST 2000
    toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/UNI
cpu0: family 6 model 3 step 2
cpu0: Intel OverDrive Pentium II (686-class)
real mem  = 200933376
avail mem = 184205312
using 2478 buffers containing 10149888 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 7 function 1 not configured
de0 at pci0 dev 8 function 0
de0: interrupting at irq 15
de0: DEC DE500-AA 21140A [10-100Mb/s] pass 2.0
de0: address 00:00:f8:1f:0b:92
ahc0 at pci0 dev 9 function 0
ahc0: interrupting at irq 9
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <IBM, DCAS-32160W, S61A> SCSI2 0/direct fixed
sd0: 2063MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
ahc0: target 1 using 16Bit transfers
ahc0: target 1 synchronous at 10.0MHz, offset = 0x8
sd1 at scsibus0 targ 1 lun 0: <SEAGATE, ST34371W, 0484> SCSI2 0/direct fixed
sd1: 4148MB, 5172 cyl, 10 head, 164 sec, 512 bytes/sect x 8496884 sectors
ahc0: target 3 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus0 targ 3 lun 0: <PLEXTOR, CD-ROM PX-32TS, 1.02> SCSI2 5/cdrom removable
sd2 at scsibus0 targ 5 lun 0: <IOMEGA, ZIP 100, E.11> SCSI2 0/direct removable
sd2: 96MB, 96 cyl, 64 head, 32 sec, 512 bytes/sect x 196608 sectors
ahc1 at pci0 dev 10 function 0
ahc1: interrupting at irq 11
ahc1: aic7850 Single Channel, SCSI Id=7, 3 SCBs
ahc1: Host Adapter Bios disabled.  Using default SCSI device parameters
scsibus1 at ahc1 channel 0: 8 targets, 8 luns per target
ex0 at pci0 dev 11 function 0: 3Com 3c900-TPO Ethernet
ex0: interrupting at irq 10
ex0: MAC address 00:10:4b:8c:78:c1
ex0: 10baseT, 10baseT-FDX, default 10baseT
vga1 at pci0 dev 12 function 0: Matrox MGA Millennium II 2164W (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
opms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,3
sb0: Creative ViBRA16X PnP Audio: dsp v4.16
midi1 at sb0: <MPU-401 MIDI UART>
audio0 at sb0: half duplex
opl0 at sb0: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
joy0 at isapnp0 port 0x201/1
joy0: Creative ViBRA16X PnP Game
joy0: joystick not connected
biomask a40 netmask 8e40 ttymask 9ec2
wscons: wskbd0 glued to wsdisplay0 (console)
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
de0: enabling Full Duplex 100baseTX port
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 added (80x50, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x50, vt100 emulation)
wsdisplay0: screen 5 added (80x50, vt100 emulation)
wsdisplay0: screen 6 added (80x50, vt100 emulation)
wsdisplay0: screen 7 added (80x50, vt100 emulation)
uid 32767 on /: file system full

# eof