Subject: kern/33967: INSTALL kernel spontaneous reboot
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <mrauch@NetBSD.org>
List: netbsd-bugs
Date: 07/10/2006 18:40:00
>Number:         33967
>Category:       kern
>Synopsis:       gcc4-compiled INSTALL kernel reboots during boot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 10 18:40:00 +0000 2006
>Originator:     Michael Rauch
>Release:        NetBSD 3.99.21
>Organization:
	
>Environment:
System: NetBSD beastie 3.99.21 NetBSD 3.99.21 (INSTALL) #0: Mon Jul 10 15:42:22 BST 2006 root@beastie:/usr/src/netbsd/objdir/sys/arch/i386/compile/INSTALL i386
Architecture: i386
Machine: i386
(sources checked out Jul 10, around 12:00 GMT)
>Description:
An INSTALL kernel compiled with the default gcc4 compiler reboots where the 
same kernel built with gcc3 would attach ehci (as far as I can see the messages
on the screen).
Interestingly enough, a GENERIC kernel from the same sources boots without
problems.
dmesg of the gcc3 INSTALL kernel, with a line indicating how far the 
gcc4 kernel gets, is:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (INSTALL) #1: Mon Jul 10 16:25:32 BST 2006
	root@beastie:/usr/src/netbsd/objdir/sys/arch/i386/compile/INSTALL
total memory = 1022 MB
avail memory = 995 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xffa10
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium Pro, II or III (686-class), 1664.56 MHz, id 0x6e8
cpu0: features bfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features bfe9fbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 c1a9<SSE3,MONITOR,VMX,EST,TM2,xTPR>
cpu0: "Genuine Intel(R) CPU           T2300  @ 1.66GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: using thermal monitor 1
cpu0: 64 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x27a0 (rev. 0x03)
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x27a1 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x7145 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
vendor 0x8086 product 0x27d8 (multimedia subclass 0x03, revision 0x01) at pci0 dev 27 function 0 not configured
ppb1 at pci0 dev 28 function 0: vendor 0x8086 product 0x27d0 (rev. 0x01)
pci2 at ppb1 bus 11
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 1: vendor 0x8086 product 0x27d2 (rev. 0x01)
pci3 at ppb2 bus 12
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x8086 product 0x4222 (miscellaneous network, revision 0x02) at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 28 function 3: vendor 0x8086 product 0x27d6 (rev. 0x01)
pci4 at ppb3 bus 13
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x01)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x01)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x01)
uhci2: interrupting at irq 9
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x01)
uhci3: interrupting at irq 7
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
  ===> gcc4-compiled kernel reboots here <===
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x01)
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb4 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0xe1)
pci5 at ppb4 bus 3
pci5: i/o space, memory space enabled
bce0 at pci5 dev 0 function 0: Broadcom BCM4401-B0 10/100 Ethernet
bce0: interrupting at irq 5
bmtphy0 at bce0 phy 1: BCM4401 10/100 media interface, rev. 0
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bce0: Ethernet address XX:XX:XX:XX:XX:XX
vendor 0x1180 product 0x0832 (Firewire serial bus, interface 0x10) at pci5 dev 1 function 0 not configured
vendor 0x1180 product 0x0822 (SD Host Controller system, interface 0x01, revision 0x19) at pci5 dev 1 function 1 not configured
vendor 0x1180 product 0x0843 (miscellaneous system, revision 0x01) at pci5 dev 1 function 2 not configured
vendor 0x1180 product 0x0592 (miscellaneous system, revision 0x0a) at pci5 dev 1 function 3 not configured
vendor 0x1180 product 0x0852 (miscellaneous system, revision 0x05) at pci5 dev 1 function 4 not configured
pcib0 at pci0 dev 31 function 0
pcib0: vendor 0x8086 product 0x27b9 (rev. 0x01)
piixide0 at pci0 dev 31 function 2
piixide0: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
vendor 0x8086 product 0x27da (SMBus serial bus, revision 0x01) at pci0 dev 31 function 3 not configured
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: using exception 16
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "TSC" frequency 1664564300 Hz quality 800
timecounter: selected timecounter "TSC" frequency 1664564300 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
md0: internal 5000 KB image area
uhub5 at uhub4 port 1
uhub5: vendor 0x413c product 0xa005, class 9/0, rev 2.00/50.18, addr 2
uhub5: multiple transaction translators
uhub5: 4 ports with 1 removable, self powered
wd0 at atabus0 drive 0: <TOSHIBA MK1032GSX>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 93958 MB, 190899 cyl, 16 head, 63 sec, 512 bytes/sect x 192426570 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <PHILIPS DVD+/-RW SDVD8820, , AD15> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
boot device: wd0
>How-To-Repeat:
boot INSTALL kernel
>Fix:
n/a