NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/51233: kernel panic when host pc connected to serial console turned off
>Number: 51233
>Category: kern
>Synopsis: kernel panic when host pc connected to serial console turned off
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 11 11:35:00 +0000 2016
>Originator: Michael Taylor
>Release: NetBSD 7.0.1 (GENERIC.201605221355Z) i386
>Organization:
>Environment:
NetBSD blue.home.net 7.0.1 NetBSD 7.0.1 (GENERIC.201605221355Z) i386
>Description:
NetBSD running on an APU connected to a PC via serial cable panics when PC is turned off.
APU is an apu1d4 (http://www.pcengines.ch/apu1d4.htm) with a 16GB mSATA disk.
Fresh install of NetBSD 7.0.1 (kernel GENERIC.201605221355Z).
Console is set as:
````
# installboot -v -e /dev/rwd0a
File system: /dev/rwd0a
Boot options: timeout 5, flags 0, speed 115200, ioaddr 0, console com0
````
PC is a HP dc7900 running Windows 10 Pro (32-bit).
APU and PC connected via serial cable.
Console monitored with PuTTY.
Shutting down PC whilst connected with serial cable to APU causes the APU to panic and display a "db{0}>" prompt. Since this happens whilst the PC is shutting down no console output preceding "db{0}>" prompt is accessible.
Monitoring API via second PC using ping, I notice the pings stop returning just as the PC power goes off.
Trace available from "db{0}>" prompt:
````
db{0}> trace
breakpoint(c0f4cf20,3f8,5,c0f4d800,c067785b,c0ff1ac8,c539ef40,c539eeb8,c526e000,dc659ec6) at netbsd:breakpoint+0x4
comintr(c539ee00,dc659ee8,0,0,0,0,0,0,0,0) at netbsd:comintr+0x547
--- switch to interrupt stack ---
Xintr_ioapic_edge6() at netbsd:Xintr_ioapic_edge6+0xb1
--- interrupt ---
x86_stihlt(1,1,c53a1da8,c53a1800,c4d47d20,c53a1800,c53a1da8,c0f4d800,dc659f70,c011b978) at netbsd:x86_stihlt+0x5
acpicpu_cstate_idle_enter(c53a1da8,c1029240,dc659f70,c4d47d20,c4d44d40,dc659f8c,c06557a6,c4d47d20,0,c4d47d20) at netbsd:acpicpu_cstate_idle_enter+0xd1
acpicpu_cstate_idle(c4d47d20,0,c4d47d20,c06556b0,c4d47d20,0,c0100321,c4d47d20,1193000,119c000) at netbsd:acpicpu_cstate_idle+0x61
idle_loop(c4d47d20,1193000,119c000,0,c0100304,0,0,0,0,0) at netbsd:idle_loop+0xf6
db{0}> ps/l
PID LID S CPU FLAGS STRUCT LWP * NAME WAIT
8179 1 3 1 80 c58ca2c0 pickup kqueue
1553 1 3 0 80 c551f000 getty ttyraw
1690 1 3 1 80 c5d58d40 cron nanoslp
1735 1 3 1 80 c5b83540 inetd kqueue
1582 1 3 1 80 c5b83d20 qmgr kqueue
1670 1 3 0 80 c5d58aa0 master kqueue
1399 1 3 0 80 c58cad40 sshd select
1247 1 3 1 80 c58ca800 powerd kqueue
1231 1 3 1 80 c58caaa0 ntpd pause
566 1 2 1 0 c55697e0 syslogd
1 1 3 1 80 c54282c0 init wait
0 63 3 0 200 c551fa80 physiod physiod
0 62 3 0 200 c551f2a0 aiodoned aiodoned
0 61 3 0 200 c551f540 ioflush syncer
0 60 3 1 200 c551f7e0 pgdaemon pgdaemon
0 57 3 1 200 c5427000 scsibus0 sccomp
0 55 3 0 200 c54272a0 usb6 usbevt
0 54 3 1 200 c5427540 usb5 usbevt
0 53 3 0 200 c54277e0 usb4 usbevt
0 52 3 1 200 c5427a80 usb3 usbevt
0 51 3 0 200 c5427d20 usb2 usbevt
0 50 3 1 200 c538c020 usb1 usbevt
0 49 3 0 200 c5428d40 usb0 usbevt
0 48 3 1 200 c5428020 cryptoret crypto_w
0 47 3 1 200 c5428560 unpgc unpgc
0 46 3 0 200 c5428800 vmem_rehash vmem_rehash
0 45 3 1 200 c5428aa0 amdtemp0 amdtemp0
0 36 3 1 200 c538c2c0 iic3 iicintr
0 35 3 0 200 c538c560 iic2 iicintr
0 34 3 0 200 c538c800 iic1 iicintr
0 33 3 0 200 c538caa0 iic0 iicintr
0 32 3 0 200 c538cd40 usbtask-dr usbtsk
0 31 3 0 200 c5382000 usbtask-hc usbtsk
0 30 3 0 200 c53822a0 atabus5 atath
0 29 3 1 200 c5382540 atabus4 atath
0 28 3 0 200 c53827e0 atabus3 atath
0 27 3 0 200 c5382a80 atabus2 atath
0 26 3 1 200 c5382d20 atabus1 atath
0 25 3 1 200 c5075020 atabus0 atath
0 24 3 0 200 c50752c0 lnxsyswq lnxsyswq
0 23 3 0 200 c5075560 apm0 apmev
0 22 3 1 200 c5075800 xcall/1 xcall
0 21 1 1 200 c5075aa0 softser/1
0 20 1 1 200 c5075d40 softclk/1
0 19 1 1 200 c505d000 softbio/1
0 18 1 1 200 c505d2a0 softnet/1
0 > 17 7 1 201 c505d540 idle/1
0 16 3 0 200 c505d7e0 sysmon smtaskq
0 15 3 0 200 c505da80 pmfsuspend pmfsuspend
0 14 3 0 200 c505dd20 pmfevent pmfevent
0 13 3 0 200 c4d4f020 sopendfree sopendfr
0 12 3 0 200 c4d4f2c0 nfssilly nfssilly
0 11 3 0 200 c4d4f560 cachegc cachegc
0 10 3 1 200 c4d4f800 vrele vrele
0 9 3 0 200 c4d4faa0 vdrain vdrain
0 8 3 0 200 c4d4fd40 modunload mod_unld
0 7 3 0 200 c4d47000 xcall/0 xcall
0 6 1 0 200 c4d472a0 softser/0
0 5 1 0 200 c4d47540 softclk/0
0 4 1 0 200 c4d477e0 softbio/0
0 3 1 0 200 c4d47a80 softnet/0
0 > 2 7 0 201 c4d47d20 idle/0
0 1 3 0 200 c0fa69e0 swapper uvm
db{0}> sync
dumping to dev 0,1 offset 1831
dump 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 succeeded
rebooting...
````
Boot output after rebooting:
````
PC Engines APU BIOS build date: Apr 5 2014
Reading data from file [bootorder]
SeaBIOS (version ?-20140405_120742-frink)
SeaBIOS (version ?-20140405_120742-frink)
Found coreboot cbmem console @ df150400
Found mainboard PC Engines APU
Relocating init from 0x000e8e71 to 0xdf1065e0 (size 39259)
Found CBFS header at 0xfffffb90
found file "bootorder" in cbmem
CPU Mhz=1000
Found 27 PCI devices (max PCI bus is 05)
Copying PIR from 0xdf160400 to 0x000f27a0
Copying MPTABLE from 0xdf161400/df161410 to 0x000f25b0 with length 1ec
Copying ACPI RSDP from 0xdf162400 to 0x000f2590
Copying SMBIOS entry point from 0xdf16d800 to 0x000f2570
Using pmtimer, ioport 0x808
Scan for VGA option rom
EHCI init on dev 00:12.2 (regs=0xf7f04420)
Found 1 lpt ports
Found 2 serial ports
AHCI controller at 11.0, iobase f7f04000, irq 11
EHCI init on dev 00:13.2 (regs=0xf7f04520)
EHCI init on dev 00:16.2 (regs=0xf7f04620)
Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0
AHCI/0: registering: "AHCI/0: SATA SSD ATA-10 Hard-Disk (15272 MiBytes)"
Searching bootorder for: /rom@img/setup
Searching bootorder for: /rom@img/memtest
OHCI init on dev 00:12.0 (regs=0xf7f00000)
OHCI init on dev 00:13.0 (regs=0xf7f01000)
OHCI init on dev 00:14.5 (regs=0xf7f02000)
OHCI init on dev 00:16.0 (regs=0xf7f03000)
Searching bootorder for: /pci@i0cf8/usb@16,2/storage@1/*@0/*@0,0
Searching bootorder for: /pci@i0cf8/usb@16,2/usb-*@1
USB MSC vendor='Multiple' product='Card Reader' rev='1.00' type=0 removable=1
Device reports MEDIUM NOT PRESENT
scsi_is_ready returned -1
Unable to configure USB MSC drive.
Unable to configure USB MSC device.
All threads complete.
Scan for option roms
Running option rom at c000:0003
iPXE (http://ipxe.org) 00:00.0 C000 PCI2.10 PnP PMMpmm call arg1=1
pmm call arg1=0
+DF0E94B0pmm call arg1=1
pmm call arg1=0
+DF0494B0 C000
Searching bootorder for: /rom@genroms/pxeboot.rom
Build date: Apr 5 2014
System memory size: 4592 MB
Press F12 for boot menu.
Searching bootorder for: HALT
drive 0x000f2500: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=31277232
Space available for UMB: c1000-ee800, f0000-f2500
Returned 253952 bytes of ZoneHigh
e820 map has 7 items:
0: 0000000000000000 - 000000000009fc00 = 1 RAM
1: 000000000009fc00 - 00000000000a0000 = 2 RESERVED
2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
3: 0000000000100000 - 00000000df14e000 = 1 RAM
4: 00000000df14e000 - 00000000e0000000 = 2 RESERVED
5: 00000000f8000000 - 00000000f9000000 = 2 RESERVED
6: 0000000100000000 - 000000011f000000 = 1 RAM
enter handle_19:
NULL
Booting from Hard Disk...
Booting from 0000:7c00
NetBSD MBR boot
NetBSD/x86 ffsv2 Primary Bootstrap
>> NetBSD/x86 BIOS Boot, Revision 5.10 (from NetBSD 7.0.1)
>> Memory: 639/3653888 k
1. Boot normally
2. Boot single user
3. Disable ACPI
4. Disable ACPI and SMP
5. Drop to boot prompt
Choose an option; RETURN for default; SPACE to stop countdown.
Option 1 will be chosen in 0 seconds.
14891732+574748+437820 [718320+746656]=0x10924c4
WARNING: couldn't open /var/db/entropy-file
WARNING: 1 module failed to load
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
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 7.0.1 (GENERIC.201605221355Z)
total memory = 3568 MB
avail memory = 3493 MB
kern.module.path=/stand/i386/7.0/modules
mainbus0 (root)
ACPI: RSDP 0xf2590 000014 (v00 CORE )
ACPI: RSDT 0xdf162424 000044 (v01 CORE COREBOOT 00000000 CORE 00000000)
ACPI: FACP 0xdf164ce8 0000F4 (v04 CORE COREBOOT 00000000 CORE 00000000)
ACPI: DSDT 0xdf1624c8 0027DA (v02 PCENG COREBOOT 00010001 INTL 20121114)
ACPI: FACS 0xdf164ca8 000040
ACPI: SPCR 0xdf164ddc 000050 (v01 CORE COREBOOT 00000000 CORE 00000000)
ACPI: HPET 0xdf164e30 000038 (v01 CORE COREBOOT 00000000 CORE 00000000)
ACPI: APIC 0xdf164e68 00005C (v01 CORE COREBOOT 00000000 CORE 00000000)
ACPI: HEST 0xdf164ec8 000198 (v01 CORE COREBOOT 00000000 CORE 00000000)
ACPI: SSDT 0xdf165060 00168E (v02 AMD ALIB 00000001 MSFT 04000000)
ACPI: SSDT 0xdf1666f0 00030C (v01 AMD POWERNOW 00000001 AMD 00000001)
ACPI: SSDT 0xdf166a00 000045 (v02 CORE COREBOOT 0000002A CORE 0000002A)
ACPI: All ACPI Tables successfully acquired
ioapic0 at mainbus0 apid 2
cpu0 at mainbus0 apid 0: AMD G-T40E Processor, id 0x500f20
cpu1 at mainbus0 apid 1: AMD G-T40E Processor, id 0x500f20
acpi0 at mainbus0: Intel ACPICA 20131218
mpacpi: PCI bus 4 int routing already done!
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
COPR (PNP0C04) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 6 GPEs in block 00 to 1F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: vendor 0x1022 product 0x1510 (rev. 0x00)
ppb0 at pci0 dev 4 function 0: vendor 0x1022 product 0x1512 (rev. 0x00)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb0: link is x1 @ 2.5GT/s
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re0: interrupting at ioapic0 pin 16
re0: Ethernet address 00:0d:b9:3c:0c:90
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 5 function 0: vendor 0x1022 product 0x1513 (rev. 0x00)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
re1 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re1: interrupting at ioapic0 pin 17
re1: Ethernet address 00:0d:b9:3c:0c:91
rgephy1 at re1 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4
rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb2 at pci0 dev 6 function 0: vendor 0x1022 product 0x1514 (rev. 0x00)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
re2 at pci3 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x06)
re2: interrupting at ioapic0 pin 18
re2: Ethernet address 00:0d:b9:3c:0c:92
rgephy2 at re2 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 4
rgephy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ahcisata0 at pci0 dev 17 function 0: vendor 0x1002 product 0x4391 (rev. 0x40)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: AHCI revision 1.20, 6 ports, 32 slots, CAP 0xf332ff05<PSC,SSC,PMD,SPM,ISS=0x3=Gen3,SCLO,SAL,SMPS,SSNTF,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
atabus4 at ahcisata0 channel 4
atabus5 at ahcisata0 channel 5
ohci0 at pci0 dev 18 function 0: vendor 0x1002 product 0x4397 (rev. 0x00)
ohci0: interrupting at ioapic0 pin 18
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ehci0 at pci0 dev 18 function 2: vendor 0x1002 product 0x4396 (rev. 0x00)
ehci0: interrupting at ioapic0 pin 17
ehci0: dropped intr workaround enabled
ehci0: companion controller, 5 ports each: ohci0
usb1 at ehci0: USB revision 2.0
ohci1 at pci0 dev 19 function 0: vendor 0x1002 product 0x4397 (rev. 0x00)
ohci1: interrupting at ioapic0 pin 18
ohci1: OHCI version 1.0, legacy support
usb2 at ohci1: USB revision 1.0
ehci1 at pci0 dev 19 function 2: vendor 0x1002 product 0x4396 (rev. 0x00)
ehci1: interrupting at ioapic0 pin 17
ehci1: dropped intr workaround enabled
ehci1: companion controller, 5 ports each: ohci1
usb3 at ehci1: USB revision 2.0
piixpm0 at pci0 dev 20 function 0: vendor 0x1002 product 0x4385 (rev. 0x42)
piixpm0: polling (SB800)
iic0 at piixpm0: I2C bus
iic1 at piixpm0: I2C bus
iic2 at piixpm0: I2C bus
iic3 at piixpm0: I2C bus
pcib0 at pci0 dev 20 function 3: vendor 0x1002 product 0x439d (rev. 0x40)
ppb3 at pci0 dev 20 function 4: vendor 0x1002 product 0x4384 (rev. 0x40)
pci4 at ppb3 bus 4
ohci2 at pci0 dev 20 function 5: vendor 0x1002 product 0x4399 (rev. 0x00)
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb4 at ohci2: USB revision 1.0
ppb4 at pci0 dev 21 function 0: vendor 0x1002 product 0x43a0 (rev. 0x00)
ppb4: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 2.5GT/s
pci5 at ppb4 bus 5
ohci3 at pci0 dev 22 function 0: vendor 0x1002 product 0x4397 (rev. 0x00)
ohci3: interrupting at ioapic0 pin 18
ohci3: OHCI version 1.0, legacy support
usb5 at ohci3: USB revision 1.0
ehci2 at pci0 dev 22 function 2: vendor 0x1002 product 0x4396 (rev. 0x00)
ehci2: interrupting at ioapic0 pin 17
ehci2: dropped intr workaround enabled
ehci2: companion controller, 4 ports each: ohci3
usb6 at ehci2: USB revision 2.0
pchb1 at pci0 dev 24 function 0: vendor 0x1022 product 0x1700 (rev. 0x43)
pchb2 at pci0 dev 24 function 1: vendor 0x1022 product 0x1701 (rev. 0x00)
pchb3 at pci0 dev 24 function 2: vendor 0x1022 product 0x1702 (rev. 0x00)
amdnb_misc0 at pci0 dev 24 function 3: AMD NB Misc Configuration
amdtemp0 at amdnb_misc0: AMD CPU Temperature Sensors (Family14h)
pchb4 at pci0 dev 24 function 4: vendor 0x1022 product 0x1704 (rev. 0x00)
pchb5 at pci0 dev 24 function 5: vendor 0x1022 product 0x1718 (rev. 0x00)
pchb6 at pci0 dev 24 function 6: vendor 0x1022 product 0x1716 (rev. 0x00)
pchb7 at pci0 dev 24 function 7: vendor 0x1022 product 0x1719 (rev. 0x00)
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
isapnp0 at isa0 port 0x279
acpicpu0 at cpu0: ACPI CPU
acpicpu1 at cpu1: ACPI CPU
uhub0 at usb0: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: vendor 0x1002 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb2: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb3: vendor 0x1002 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4 at usb4: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub5 at usb5: vendor 0x1002 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub6 at usb6: vendor 0x1002 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
ahcisata0 port 0: device present, speed: 6.0Gb/s
wd0 at atabus0 drive 0
wd0: <SATA SSD>
wd0: 15272 MB, 31029 cyl, 16 head, 63 sec, 512 bytes/sect x 31277232 sectors
umass0 at uhub6 port 1 configuration 1 interface 0
umass0: Generic Flash Card Reader/Writer, rev 2.01/1.00, addr 2
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Multiple, Card Reader, 1.00> disk removable
sd0: drive offline
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
Sat Jun 11 11:21:47 AEST 2016
Starting root file system check:
/dev/rwd0a: 24793 files, 281994 used, 5526229 free (373 frags, 690732 blocks, 0.0% fragmentation)
/dev/rwd0a: MARKING FILE SYSTEM CLEAN
swapctl: setting dump device to /dev/wd0b
swapctl: adding /dev/wd0b as swap device at priority 0
Starting file system checks:
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: blue.home.net
IPv6 mode: host
Configuring network interfaces: re0.
Adding interface aliases:.
add net default: gateway 10.10.10.1
Waiting for DAD completion for statically configured addresses...
Building databases: dev, utmp, utmpx.
Starting syslogd.
Setting date via ntp.
Mounting all file systems...
Clearing temporary files.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
swapctl: setting dump device to /dev/wd0b
Starting virecover.
Checking for core dump...
Jun 11 11:22:01 blue savecore: reboot after panic: dump forced via kernel debugger
savecore: reboot after panic: dump forced via kernel debugger
savecore: system went down at Fri Jun 10 01:10:58 2016
savecore: /var/crash/bounds: No such file or directory
savecore: writing compressed core to /var/crash/netbsd.0.core.gz
savecore: writing compressed kernel to /var/crash/netbsd.0.gz
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting powerd.
Starting sshd.
Starting inetd.
Starting cron.
Sat Jun 11 11:22:16 AEST 2016
NetBSD/i386 (blue.home.net) (console)
login:
````
GDB dump of savecore:
````
blue# gdb --symbols=/netbsd --quiet --eval-command="file netbsd.0" --eval-command="target kvm netbsd.0.core" --eval-command "bt" --eval-command "list" --eval-command "info all-registers" 2>&1
Reading symbols from /netbsd...done.
Load new symbol table from "netbsd.0"? (y or n) y
Reading symbols from netbsd.0...(no debugging symbols found)...done.
0xc06ce0d6 in cpu_reboot ()
#0 0xc06ce0d6 in cpu_reboot ()
#1 0xc02be9ad in db_sync_cmd ()
#2 0xc02bf18d in db_command ()
#3 0xc02bf52f in db_command_loop ()
#4 0xc02c4f0c in db_trap ()
#5 0xc02c1c6b in kdb_trap ()
#6 0xc096a588 in trap ()
#7 0xc010ce78 in alltraps ()
#8 0xdc503eec in end ()
#9 0x00000010 in _KERNEL_OPT_BEEP_ONHALT_COUNT ()
#10 0x00000030 in _KERNEL_OPT_RASOPS_DEFAULT_HEIGHT ()
#11 0xc0670010 in sys_sa_yield ()
#12 0xc029366a in comintr ()
#13 0xc0103d11 in Xintr_ioapic_edge6 ()
#14 0xc539ee00 in end ()
#15 0xdc659ee8 in end ()
#16 0x00000000 in ?? ()
No symbol table is loaded. Use the "file" command.
eax <unavailable>
ecx <unavailable>
edx <unavailable>
ebx 0x100 256
esp 0xdc503cb0 0xdc503cb0 <end+458062168>
ebp 0xdc503cc8 0xdc503cc8 <end+458062192>
esi 0x8 8
edi 0x0 0
eip 0xc06ce0d6 0xc06ce0d6 <cpu_reboot+368>
eflags <unavailable>
cs <unavailable>
ss <unavailable>
ds <unavailable>
es <unavailable>
fs <unavailable>
gs <unavailable>
st0 <unavailable>
st1 <unavailable>
st2 <unavailable>
st3 <unavailable>
st4 <unavailable>
st5 <unavailable>
st6 <unavailable>
st7 <unavailable>
fctrl <unavailable>
fstat <unavailable>
ftag <unavailable>
fiseg <unavailable>
fioff <unavailable>
foseg <unavailable>
fooff <unavailable>
fop <unavailable>
xmm0 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm1 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm2 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm3 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm4 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm5 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm6 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
xmm7 {v4_float = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v2_double = {<unavailable>, <unavailable>}, v16_int8 = {
<unavailable> <repeats 16 times>}, v8_int16 = {<unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v4_int32 = {<unavailable>, <unavailable>,
<unavailable>, <unavailable>}, v2_int64 = {<unavailable>, <unavailable>},
uint128 = <unavailable>}
mxcsr <unavailable>
mm0 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm1 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm2 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm3 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm4 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm5 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm6 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
mm7 {uint64 = <unavailable>, v2_int32 = {<unavailable>,
<unavailable>}, v4_int16 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>}, v8_int8 = {<unavailable>, <unavailable>, <unavailable>,
<unavailable>, <unavailable>, <unavailable>, <unavailable>, <unavailable>}}
(gdb)
````
>How-To-Repeat:
Connect APU to PC "A" via serial cable.
Boot APU and PC "A".
Confirm APU is responsive via serial console.
>From PC "B" ping the APU, leave running.
Shut down PC "A".
Note that pings stop returning just as power leaves PC "A".
Restart PC "A".
Open serial console on PC "A" (PuTTY) and press enter key to see "db{0}>" prompt.
>Fix:
Unplug serial cable between APU and PC "A" before shutting down PC "A".
Home |
Main Index |
Thread Index |
Old Index