It happened again. I have:
$ sysctl kern.version
kern.version=OpenBSD 6.0-current (GENERIC.MP) #2325: Fri Aug 5 23:28:36 MDT
2016
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Command I issued before kernel panic still the same (by openbox menu):
$ sudo halt -p
Tail of dmesg under kernel debugger:
$ dmesg
Debugger() at Debugger+0x9
panic() at panic+0xfe
__assert() at assert+0x25
pf_state_key_unref() at pf_state_key_unref+0xc6
pf_pkt_unlink_state_key() at pf_pkt_unlink_state_key+0x15
m_free() at m_free+0xa0
sbdrop() at sbdrop+0x80
sbflush() at sbflush+0x2b
sbrelease() at sbrelease+0x11
sorflush() at sorflush+0x18b
sofree() at sofree+0xbc
soclose() at soclose+0x92
soo_close() at soo_close+0x1c
fdrop() at fdrop+0x2c
end trace frame: 0xffff800032d01da0, count: 0
after $ c it added line:
closef() at closef+0xcb
The same, what was printed above, was an output of $ machine ddbcpu 1
$ machine 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---
_mp_lock() at _mp_lock+0x48
intr_handler() at intr_handler+0xac
Xintr_ioapic_edge12() at Xintr_ioapic_edge12+0xc9
---interrupt---
Xspllower() at Xspllower+0xc
mtx_leave() at mtx_leave+0x34
m_gethdr() at m_gethdr+0x2b
m_clget() at m_clget+0xb7
bge_newbuf() at bge_newbuf+0x46
bge_fill_rx_ring_std() at bge_fill_rx_ring_std+0x78
bge_rxeof() at bge_rxeof+0x2d6
bge_intr() at bge_intr+0xe9
end trace frame: 0xffff800032ca0a40, count: 0
$ callout
ticks func
-3324 net_tick
-3324 rdrand
-3312 pffasttimo
-3302 pfslowtimo
-3094 i915_hangcheck_elapsed
-3111 sensor_task_tick
100 pckbc_pool
-3252 bge_tick
pool_gc_sched
nd6_timer
endtsleep
_delayed_work_tick
endtsleep
endtsleep
endtsleep
rt_timer_timer
schedcpu
if_slowtimo
endtsleep
sensor_task_tick
acpi_pool
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
tcp_timer_2msl
arptimer
nd6_slowtimo
$
COMMAND WAIT
halt nanosleep
at-spi-bus-launc poll
at-spi-bus-launc poll
at-spi-bus-launc poll
at-spi-bus-launc poll
sh pause
ksh
zerothread pgzero
aiodoned aiodoned
update
cleaner cleaner
reaper reaper
pagedaemon pgdaemon
srdis bored
crynlk bored
crypto bored
pfpurge pftm
mmctsk sdmmc0
usbtask usbtsk
usbatsk usbatsk
i915 bored
apci0 acpi0
idle1
sensors bored
softnet bored
systgmp bored
systq bored
swapper scheduler
idle0
sbar bored
init wait
userspace:
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr b8:88:e3:d3:08:70
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 10.7.1.13 netmask 0xffffffc0 broadcast 10.7.1.63
enc0: flags=0<>
index 2 priority 0 llprio 3
groups: enc
status: active
pair1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> rdomain 1 mtu 1500
lladdr fe:e1:ba:d0:43:fe
description: An isolated Ethernet
index 4 priority 0 llprio 3
patch: pair2
groups: pair
media: Ethernet autoselect
status: active
inet 172.10.0.1 netmask 0xffffff00 broadcast 172.10.0.255
pair2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr fe:e1:ba:d1:eb:cb
index 5 priority 0 llprio 3
patch: pair1
groups: pair
media: Ethernet autoselect
status: active
inet 172.10.0.2 netmask 0xffffff00 broadcast 172.10.0.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
index 6 priority 0 llprio 3
groups: pflog
# route -n show
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default 10.7.1.1 UGS 4 563 - 8 bge0
224/4 127.0.0.1 URS 0 0 32768 8 lo0
10.7.1.0/26 10.7.1.13 UC 1 582 - 4 bge0
10.7.1.1 d4:ca:6d:e1:cb:ba UHLc 2 785 - 4 bge0
10.7.1.13 b8:88:e3:d3:08:70 UHLl 0 106 - 1 bge0
10.7.1.63 10.7.1.13 UHb 0 393 - 1 bge0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHl 4 1749 32768 1 lo0
172.10.0/24 172.10.0.2 UC 0 0 - 4 pair2
172.10.0.2 fe:e1:ba:d1:ae:71 UHLl 0 0 - 1 pair2
172.10.0.255 172.10.0.2 UHb 0 0 - 1 pair2
Internet6:
Destination Gateway Flags Refs
Use Mtu Prio Iface
::/96 ::1 UGRS 0
0 32768 8 lo0
::/104 ::1 UGRS 0
0 32768 8 lo0
::1 ::1 UHl 14
14 32768 1 lo0
::127.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::224.0.0.0/100 ::1 UGRS 0
0 32768 8 lo0
::255.0.0.0/104 ::1 UGRS 0
0 32768 8 lo0
::ffff:0.0.0.0/96 ::1 UGRS 0
0 32768 8 lo0
2002::/24 ::1 UGRS 0
0 32768 8 lo0
2002:7f00::/24 ::1 UGRS 0
0 32768 8 lo0
2002:e000::/20 ::1 UGRS 0
0 32768 8 lo0
2002:ff00::/24 ::1 UGRS 0
0 32768 8 lo0
fe80::/10 ::1 UGRS 0
0 32768 8 lo0
fec0::/10 ::1 UGRS 0
0 32768 8 lo0
fe80::1%lo0 fe80::1%lo0 UHl 0
0 32768 1 lo0
ff01::/16 ::1 UGRS 1
1 32768 8 lo0
ff01::%lo0/32 ::1 Um 0
1 32768 4 lo0
ff02::/16 ::1 UGRS 1
1 32768 8 lo0
ff02::%lo0/32 ::1 Um 0
1 32768 4 lo0
# cat /etc/hostname.bge0
dhcp
# cat /etc/hostname.pair1
inet 172.10.0.1 255.255.255.0 172.10.0.255 rdomain 1 description "An isolated
Ethernet"
# cat /etc/hostname.pair2
inet 172.10.0.2 255.255.255.0 172.10.0.255
!route -T1 add default 172.10.0.2
!ifconfig pair1 patch pair2