NetBSD Problem Report #37514

From martin@duskware.de  Mon Dec 10 21:58:37 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id BE09663B8FF
	for <gnats-bugs@gnats.netbsd.org>; Mon, 10 Dec 2007 21:58:37 +0000 (UTC)
Message-Id: <20071210215534.B64C963B8FF@narn.NetBSD.org>
Date: Mon, 10 Dec 2007 21:55:34 +0000 (UTC)
From: etienne.pub@magickarpet.org
Reply-To: etienne.pub@magickarpet.org
To: netbsd-bugs-owner@NetBSD.org
Subject: Crash-and-reboot during first boot after install
X-Send-Pr-Version: www-1.0

>Number:         37514
>Category:       kern
>Synopsis:       Crash-and-reboot during first boot after install
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 10 22:00:00 +0000 2007
>Closed-Date:    Sun Jun 12 01:16:37 +0000 2016
>Last-Modified:  Sun Jun 12 01:16:37 +0000 2016
>Originator:     Etienne
>Release:        NetBSD-4.0_RC5 (amd64)
>Organization:
>Environment:
>Description:
After a fresh install of the system on a spare drive, the system crashes during the boot, and reboots instantly after.

To try to know a bit more, I've passed "boot hd1a:netbsd -d" to the bootcode. Surprisingly, a couple of "continue" later, the system boots completely fine, without crashing where it did before. A "dmesg" of the system follows, with a "==========" line where (approximately) the system crashes when launched the usual way.

Don't know if it matters but:
 - the system has been installed on the second SATA drive of the machine (which has no disk on the IDE port, but a CD-ROM drive)
 - the system is booted via GRUB (through "chainloader +1" command), which is installed on the first SATA drive
 - upgrading to HEAD (200712080002Z) kernel fixes the problem.

dmesg:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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 4.0_RC5 (GENERIC) #0: Wed Nov 28 11:53:10 PST 2007
        builds@wb28:/home/builds/ab/netbsd-4-0-RC5/amd64/200711280522Z-obj/home/builds/ab/
netbsd-4-0-RC5/src/sys/arch/amd64/compile/GENERIC
total memory = 1023 MB
avail memory = 973 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 1799.92 MHz
cpu0: features: efdbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: efdbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: efdbfbff<FXSR,SSE,SSE2,B27,LONG,3DNOW2,3DNOW>
cpu0: features2: 2001<SSE3>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 512 KB 64B/line 16-way
cpu0: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: AMD Power Management features: 3f<STC,TM,TTP,VID,FID,TS>
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 8 page colors
ioapic0 at mainbus0 apid 1 (I/O APIC)
ioapic0: pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0 apid 2 (I/O APIC)
ioapic1: pa 0xfecc0000, version 3, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,09000607>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (PNP0800)
pcppi1: io 0x61
pcppi1: children must have an explicit unit
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
PNP0C04 [Math Coprocessor] at acpi0 not configured
PNP0700 [PC standard floppy disk controller] at acpi0 not configured
PNP0400 [Standard LPT printer port] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
ATK0110 at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0501 [16550A-compatible COM port] at acpi0 not configured
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (PNP0F03): aux port
pckbc2: irq 12
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
acpibut0 at acpi0 (PNP0C0E): ACPI Sleep Button
PNP0C01 [System Board] at acpi0 not configured
acpibut1 at acpi0 (PNP0C0C-170): ACPI Power Button
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
pcppi1: attached to attimer1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
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: VIA Technologies product 0x0351 (rev. 0x00)
pchb1 at pci0 dev 0 function 1
pchb1: VIA Technologies product 0x1351 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: VIA Technologies product 0x2351 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: VIA Technologies product 0x3351 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: VIA Technologies product 0x4351 (rev. 0x00)
VIA Technologies product 0x5351 (interrupt system, interface 0x20) at pci0 dev 0 function 
5 not configured
pchb5 at pci0 dev 0 function 6
pchb5: VIA Technologies product 0x6238 (rev. 0x00)
pchb6 at pci0 dev 0 function 7
pchb6: VIA Technologies product 0x7351 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: VIA Technologies product 0xb999 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: no spaces enabled!
ppb1 at pci0 dev 2 function 0: VIA Technologies product 0xa238 (rev. 0x00)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci2 dev 0 function 0: ATI Technologies product 0x554f (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
ATI Technologies product 0x556f (miscellaneous display) at pci2 dev 0 function 1 not confi
gured
ppb2 at pci0 dev 3 function 0: VIA Technologies product 0xc238 (rev. 0x00)
pci3 at ppb2 bus 6
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
Marvell product 0x6121 (SATA mass storage, interface 0x8f, revision 0xb1) at pci3 dev 0 fu
nction 0 not configured
ppb3 at pci0 dev 3 function 1: VIA Technologies product 0xd238 (rev. 0x00)
pci4 at ppb3 bus 5
pci4: memory space enabled, rd/line, wr/inv ok
ppb4 at pci0 dev 3 function 2: VIA Technologies product 0xe238 (rev. 0x00)
pci5 at ppb4 bus 4
pci5: memory space enabled, rd/line, wr/inv ok
unknown vendor 0x1969 product 0x1048 (ethernet network, revision 0xb0) at pci5 dev 0 funct
ion 0 not configured
ppb5 at pci0 dev 3 function 3: VIA Technologies product 0xf238 (rev. 0x00)
pci6 at ppb5 bus 3
pci6: memory space enabled, rd/line, wr/inv ok
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237A SATA Controller (rev. 0x80)
viaide0: bus-master DMA support present
viaide0: primary channel configured to native-PCI mode
viaide0: using ioapic0 pin 21 (irq 10) for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to native-PCI mode
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies VT8237A ATA133 controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus2 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus3 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0xa0)
uhci0: interrupting at ioapic0 pin 20 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies 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 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 0xa0)
uhci1: interrupting at ioapic0 pin 22 (irq 10)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies 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 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 0xa0)
uhci2: interrupting at ioapic0 pin 21 (irq 5)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologies 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 16 function 3: VIA Technologies VT83C572 USB Controller (rev. 0xa0)
uhci3: interrupting at ioapic0 pin 23 (irq 3)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4: VIA Technologies VT8237 EHCI USB Controller (rev. 0x86)
ehci0: interrupting at ioapic0 pin 21 (irq 5)
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: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
==========
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8237A/VT82C586A PCI-ISA Bridge (rev. 0x00)
pchb7 at pci0 dev 17 function 7
pchb7: VIA Technologies product 0x287e (rev. 0x00)
ppb6 at pci0 dev 19 function 0: VIA Technologies product 0x337b (rev. 0x00)
pci7 at ppb6 bus 8
pci7: memory space enabled
azalia0 at pci7 dev 1 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 17 (irq 10)
azalia0: host: VIA Technologies VT8237A/VT8251 High Definition Audio Controller (rev. 16)
azalia0: host: High Definition Audio rev. 1.0
ppb7 at pci0 dev 19 function 1: VIA Technologies product 0x337a (rev. 0x00)
pci8 at ppb7 bus 7
pci8: i/o space, memory space enabled
Marvell Libertas 88W8335 (ethernet network, revision 0x03) at pci8 dev 8 function 0 not co
nfigured
rtk0 at pci8 dev 9 function 0: Realtek 8139 10/100BaseTX (rev. 0x10)
rtk0: interrupting at ioapic0 pin 19 (irq 3)
rtk0: Ethernet address 00:06:4f:46:b2:b1
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pchb8 at pci0 dev 24 function 0
pchb8: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb9 at pci0 dev 24 function 1
pchb9: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb10 at pci0 dev 24 function 2
pchb10: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb11 at pci0 dev 24 function 3
pchb11: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
ioapic0: enabling
ioapic1: enabling
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: 0x10ec/0x0660 (rev. 0.1)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM formats=e0160<24bit,20bit,16bit,96kHz,48kHz,44.1kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM formats=60160<20bit,16bit,96kHz,48kHz,44.1kHz>
audio0 at azalia0: full duplex, independent
Kernelized RAIDframe activated
viaide0 port 0: device present, speed: 1.5Gb/s
viaide0 port 1: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0: <Hitachi HDS721616PLA380>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus1 drive 0: <Hitachi HDS721616PLA380>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus2: 2 targets
cd0 at atapibus0 drive 0: <ASUS    DRW-1608P3S, 6AD0AA352896, 1.24> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
umass0 at uhub4 port 5 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.26, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB SD Reader, 1.00> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, USB CF Reader, 1.01> disk removable
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <Generic, USB SM Reader, 1.02> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, USB MS Reader, 1.03> disk removable
sd3: drive offline
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
umass1 at uhub4 port 8 configuration 1 interface 0
umass1: Pen Drive USB DISK 12X, rev 2.00/0.02, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd4 at scsibus1 target 0 lun 0: <, USB DISK 12X, PMAP> disk removable
sd4: 124 MB, 992 cyl, 8 head, 32 sec, 512 bytes/sect x 253952 sectors
sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

findroot: unable to read block 49158901
sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
 COMMAND INFO:  11162944 (0xaa5540)
     ASC/ASCQ:  Medium Not Present

boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

>How-To-Repeat:
Install NetBSD-4.0_RC5/amd64 on the same hardware
>Fix:
upgrade kernel to current (200712080002Z)

>Release-Note:

>Audit-Trail:
From: Etienne <etienne.pub@magickarpet.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/37514: Crash-and-reboot during first boot after install
Date: Mon, 17 Dec 2007 23:22:42 +0100

 After updating the system to the new NetBSD-4.0 release today, the problem
 appearing again. :-(

 -- 
 Etienne

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 12 Jun 2016 01:16:37 +0000
State-Changed-Why:
problem actually affected only the -4 branch, which is long EOL


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.