Machine is a new PC Engines apu.1d with / on the a 4GB SD card.
Was yanked off the table and had its power pulled. When rebooting / was
deemed uncheckable and when doing so myself the kernel paniced.
# cat /etc/fstab
85ee1fbed3aff0b6.a / ffs ro,noatime 1 0
85ee1fbed3aff0b6.d /usr ffs ro,softdep,noatime,nodev 1 0
2bd0427459dce093.a /altroot ffs xx 1 0
2bd0427459dce093.d /tmp ffs rw,softdep,noatime,nodev,nosuid 1 2
2bd0427459dce093.e /var ffs rw,softdep,noatime,nodev,nosuid 1 2
2bd0427459dce093.b none swap sw
swap /dev mfs rw,nosuid,noexec,-P=/proto/dev,-b=4096,-f=512,-i=512,-s=2048 0 0
Console output follows from start to crash. Let me know if anything's
missing. fsck reported the filesystem as modified but I've yet to boot
from or reformat the card which caused the failure (except for boot -s
to grab the fstab above).
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/bsd: 6882804+2174256+267272+0+647168 [72+577368+384321]=0xa6ef68
entry point at 0x1001000 [7205c766, 34000004, 24448b12, 20a304]
[ using 962408 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2016 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST 2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error
ff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>
real mem = 4245995520 (4049MB)
avail mem = 4113113088 (3922MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf16d820 (7 entries)
bios0: vendor coreboot version "4.0" date 09/08/2014
bios0: PC Engines APU
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4)
PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3) UOH3(S3)
UOH4(S3) UOH5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD G-T40E Processor, 1000.13 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD G-T40E Processor, 1000.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line
16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
acpiprt0 at acpi0: bus -1 (AGPB)
acpiprt1 at acpi0: bus -1 (HDMI)
acpiprt2 at acpi0: bus 1 (PBR4)
acpiprt3 at acpi0: bus 2 (PBR5)
acpiprt4 at acpi0: bus 3 (PBR6)
acpiprt5 at acpi0: bus 4 (PBR7)
acpiprt6 at acpi0: bus 6 (PE20)
acpiprt7 at acpi0: bus -1 (PE21)
acpiprt8 at acpi0: bus -1 (PE22)
acpiprt9 at acpi0: bus -1 (PE23)
acpiprt10 at acpi0: bus 0 (PCI0)
acpiprt11 at acpi0: bus 5 (PIBR)
acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
cpu0: 1000 MHz: speeds: 1000 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E (0x2c00),
msi, address 00:0d:b9:40:0a:88
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E (0x2c00),
msi, address 00:0d:b9:40:0a:89
rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
re2 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E (0x2c00),
msi, address 00:0d:b9:40:0a:8a
rgephy2 at re2 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb3 at pci0 dev 7 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 19
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:17:45:95
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int 19, AHCI
1.2
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SATA SSD, S9FM> SCSI3 0/direct fixed
t10.ATA_SATA_SSD_4D4507550C2700395718
sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb4 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci5 at ppb4 bus 5
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ppb5 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 6
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x52
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
umass0 at uhub2 port 1 configuration 1 interface 0 "Generic Flash Card
Reader/Writer" rev 2.01/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <Multiple, Card Reader, 1.00> SCSI2 0/direct
removable serial.058f6366058F63666485
sd1: 3796MB, 512 bytes/sector, 7774208 sectors
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd1a (85ee1fbed3aff0b6.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
swapctl: adding 2bd0427459dce093.b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/sd0d (2bd0427459dce093.d): 4 files, 3 used, 1034196 free (28 frags, 129271
blocks, 0.0% fragmentation)
/dev/sd0d (2bd0427459dce093.d): MARKING FILE SYSTEM CLEAN
/dev/sd0e (2bd0427459dce093.e): 169 files, 1842 used, 4460333 free (205 frags,
557516 blocks, 0.0% fragmentation)
/dev/sd0e (2bd0427459dce093.e): MARKING FILE SYSTEM CLEAN
WARNING: R/W mount of / denied. Filesystem is not clean - run fsck
mount_ffs: /dev/sd1a on /: filesystem must be mounted read-only; you may need
to run fsck
setting tty flags
pf enabled
net.inet.ip.forwarding: 0 -> 1
starting network
DHCPREQUEST on re1 to 255.255.255.255
DHCPREQUEST on re1 to 255.255.255.255
DHCPDISCOVER on re1 - interval 3
DHCPDISCOVER on re1 - interval 5
DHCPDISCOVER on re1 - interval 9
DHCPDISCOVER on re1 - interval 11
DHCPDISCOVER on re1 - interval 14
DHCPDISCOVER on re1 - interval 17
DHCPDISCOVER on re1 - interval 2
No acceptable DHCPOFFERS received.
Trying recorded lease 192.0.1.64
bound to 192.0.1.64 -- renewal in 300 seconds.
starting early daemons: syslogd pflogd unbound ntpd.
starting RPC daemons:.
savecore: /dev/sd1b: Device not configured
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd dhcpd smtpd sndiod.
starting local daemons: cron.
Sat Jun 18 18:33:01 UTC 2016
OpenBSD/amd64 (toy.datum) (tty00)
login:
...
# mount -uw /
WARNING: R/W mount of / denied. Filesystem is not clean - run fsck
mount_ffs: /dev/sd1a on /: filesystem must be mounted read-only; you may need
to run fsck
# fsck /
** /dev/sd1a (85ee1fbed3aff0b6.a)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
2951 files, 26388 used, 103443 free (67 frags, 12922 blocks, 0.1% fragmentation)
MARK FILE SYSTEM CLEAN? [Fyn?] y
***** FILE SYSTEM WAS MODIFIED *****
panic: softdep_deallocate_dependencies: dangling deps
Stopped at Debugger+0x9: leave
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*20643 20643 0 0x3 0 0 fsck_ffs
Debugger() at Debugger+0x9
panic() at panic+0xfe
softdep_deallocate_dependencies() at softdep_deallocate_dependencies+0x1f
brelse() at brelse+0x65
vinvalbuf() at vinvalbuf+0x160
ffs_reload_vnode() at ffs_reload_vnode+0x91
vfs_mount_foreach_vnode() at vfs_mount_foreach_vnode+0x35
ffs_reload() at ffs_reload+0x301
ffs_mount() at ffs_mount+0x24f
sys_mount() at sys_mount+0x353
syscall() at syscall+0x368
--- syscall (number 21) ---
end of kernel
end trace frame: 0x5, count: 4
0x837a5810dfa:
http://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}> trace
Debugger() at Debugger+0x9
panic() at panic+0xfe
softdep_deallocate_dependencies() at softdep_deallocate_dependencies+0x1f
brelse() at brelse+0x65
vinvalbuf() at vinvalbuf+0x160
ffs_reload_vnode() at ffs_reload_vnode+0x91
vfs_mount_foreach_vnode() at vfs_mount_foreach_vnode+0x35
ffs_reload() at ffs_reload+0x301
ffs_mount() at ffs_mount+0x24f
sys_mount() at sys_mount+0x353
syscall() at syscall+0x368
--- syscall (number 21) ---
end of kernel
end trace frame: 0x5, count: -11
0x837a5810dfa:
ddb{0}> mach ddbcpu 1
Stopped at Debugger+0x9: leave
Debugger() at Debugger+0x9
x86_ipi_handler() at x86_ipi_handler+0x76
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x1c
--- interrupt ---
acpicpu_idle() at acpicpu_idle+0x13c
cpu_idle_cycle() at cpu_idle_cycle+0x10
end trace frame: 0x0, count: 10
ddb{1}> trace
Debugger() at Debugger+0x9
x86_ipi_handler() at x86_ipi_handler+0x76
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x1c
--- interrupt ---
acpicpu_idle() at acpicpu_idle+0x13c
cpu_idle_cycle() at cpu_idle_cycle+0x10
end trace frame: 0x0, count: -5
ddb{1}> ps
TID PPID PGRP UID S FLAGS WAIT COMMAND
20643 28201 28201 0 7 0x3 fsck_ffs
28201 12792 28201 0 3 0x100083 wait fsck
12792 1 12792 0 3 0x10008b pause ksh
31761 1 31761 0 3 0x100098 poll cron
8023 1 8023 99 3 0x100090 poll sndiod
26255 1 26255 110 3 0x100090 poll sndiod
20914 24167 24167 95 3 0x100090 kqread smtpd
5147 24167 24167 95 3 0x100090 kqread smtpd
24002 24167 24167 95 3 0x100090 kqread smtpd
32668 24167 24167 95 3 0x100090 kqread smtpd
25530 24167 24167 95 3 0x100090 kqread smtpd
22196 24167 24167 103 3 0x100090 kqread smtpd
24167 1 24167 0 3 0x100080 kqread smtpd
9181 1 9181 77 3 0x100090 poll dhcpd
30687 1 30687 0 3 0x80 select sshd
2613 5605 3697 83 3 0x100090 poll ntpd
5605 3697 3697 83 3 0x100090 poll ntpd
3697 1 3697 0 3 0x100080 poll ntpd
2832 1 2832 53 3 0x90 kqread unbound
18444 29081 29081 74 3 0x100090 bpf pflogd
29081 1 29081 0 3 0x80 netio pflogd
11455 7723 7723 73 3 0x100090 kqread syslogd
7723 1 7723 0 3 0x100080 netio syslogd
13430 1 13430 77 3 0x100090 poll dhclient
19379 1 19379 0 3 0x80 poll dhclient
19993 1 19993 0 3 0x80 mfsidl mount_mfs
20082 0 0 0 3 0x14200 pgzero zerothread
11728 0 0 0 3 0x14200 aiodoned aiodoned
3117 0 0 0 3 0x14200 syncer update
19681 0 0 0 3 0x14200 cleaner cleaner
20746 0 0 0 3 0x14200 reaper reaper
22845 0 0 0 3 0x14200 pgdaemon pagedaemon
3335 0 0 0 3 0x14200 bored crypto
20989 0 0 0 3 0x14200 pftm pfpurge
18217 0 0 0 3 0x14200 bored sensors
30478 0 0 0 3 0x14200 usbtsk usbtask
18060 0 0 0 3 0x14200 usbatsk usbatsk
3441 0 0 0 3 0x40014200 acpi0 acpi0
* 5257 0 0 0 7 0x40014200 idle1
20486 0 0 0 3 0x14200 bored softnet
32017 0 0 0 3 0x14200 bored systqmp
20812 0 0 0 3 0x14200 bored systq
17375 0 0 0 3 0x40014200 idle0
26023 0 0 0 3 0x14200 bored sbar
1 0 1 0 3 0x82 wait init
0 -1 0 0 3 0x10200 scheduler swapper
ddb{1}> show uvm
Current UVM status:
pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
1006250 VM pages: 5813 active, 598 inactive, 1 wired, 989022 free (123638 zer
o)
min 10% (25) anon, 10% (25) vnode, 5% (12) vtext
pages 0 anon, 0 vnode, 0 vtext
freemin=33541, free-target=44721, inactive-target=0, wired-max=335416
faults=69589, traps=65482, intrs=9463, ctxswitch=12981 fpuswitch=7
softint=22575, syscalls=116281, kmapent=17
fault counts:
noram=0, noanon=0, pgwait=0, pgrele=0
ok relocks(total)=2481(2482), anget(retries)=42359(0), amapcopy=34046
neighbor anon/obj pg=3639/30923, gets(lock/unlock)=12492/2482
cases: anon=34851, anoncow=7508, obj=10806, prcopy=1685, przero=14739
daemon and swap counts:
woke=0, revs=0, scans=0, obscans=0, anscans=0
busy=0, freed=0, reactivate=0, deactivate=0
pageouts=0, pending=0, nswget=0
nswapdev=1, nanon=0, nanonneeded=0 nfreeanon=0
swpages=1048240, swpginuse=0, swpgonly=0 paging=0
kernel pointers:
objs(kern)=0xffffffff819098a0
ddb{1}> show bcstats
Current Buffer Cache status:
numbufs 839 busymapped 1, delwri 0
kvaslots 6553 avail kva slots 6552
bufpages 3188, dirtypages 0
pendingreads 0, pendingwrites 0