Hi,
While building clang, my powerpc64 crashed. I did not panic,
don't know why it went to ddb. Console output:
[-- MARK -- Wed Mar 9 08:05:00 2022]
dar 0xfffffffffd7f0020 dsisr 0x40000000
trap type 300 srr1 9000000000009032 at 1411eb8 lr 1411e94
Stopped at pool_do_get+0xa8: ld r4,32(r27)
ddb{1}> show panic
the kernel did not panic
ddb{1}> x/s version
version: OpenBSD 7.1-beta (GENERIC.MP) #0: Tue Mar 8 14:28:42 CET
2022\012
[email protected]:/usr/src/sys/arch/powerpc64/compile/GENERIC.MP\012
ddb{1}> trace
pool_do_get+0xa8
pool_get+0xd4
uvm_mapent_alloc+0x22c
uvm_map_clip_start+0xa0
uvm_map_protect+0x3b4
sys_mprotect+0x1a0
syscall+0x384
trap+0x5dc
trapagain+0x4
--- syscall (number 74) ---
End of kernel: 0xbffffffffffc9520 lr 0x46b8295c0
ddb{1}> show register
r0 0x1411e94 pool_do_get+0x84
r1 0xc00000007d4157f0
r2 0x1aa0000 .TOC.
r3 0xfffffffffd7f0000
r4 0xfffffffffd7f0000
r5 0x7
r6 0x1aacdb8 cpu_info+0xd08
r7 0x1aacdb8 cpu_info+0xd08
r8 0x1b837e8 db_active
r9 0x9000000000001032
r10 0x1032900000000000
r11 0
r12 0
r13 0x4366a6ab8
r14 0x19
r15 0x18
r16 0x14
r17 0x3ffffffffffffff
r18 0x7ffffffffffffff
r19 0
r20 0x7
r21 0xfffffffffffffffd
r22 0xc
r23 0
r24 0
r25 0xc00000007cdd6600
r26 0xc00000007cdd6640
r27 0xfffffffffd7f0000
r28 0x1
r29 0xc00000007d415934
r30 0x1b58aa0 uvm_map_entry_pool
r31 0x900000000200f932
lr 0x1411e94 pool_do_get+0x84
cr 0x442c8208
xer 0x20040000
ctr 0x1415850 pool_lock_mtx_assert_locked
iar 0x1411eb8 pool_do_get+0xa8
msr 0x9000000000009032
dar 0xfffffffffd7f0020
dsisr 0x40000000
pool_do_get+0xa8: ld r4,32(r27)
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
69905 86556 38626 21 3 0x100002 biowait rm
*19486 99871 89486 21 7 0x2 c++
89486 373818 38626 21 3 0x10008a sigsusp sh
70042 457393 98642 21 7 0x2 c++
98642 215955 38626 21 3 0x10008a sigsusp sh
38626 487218 25201 21 3 0x10008a sigsusp make
25201 233884 11747 21 3 0x10008a sigsusp sh
11747 289720 54644 21 3 0x10008a sigsusp make
54644 320707 86612 21 3 0x10008a sigsusp sh
86612 470459 70954 21 3 0x10008a sigsusp make
70954 360477 98614 21 3 0x10008a sigsusp sh
98614 102871 46607 21 3 0x10008a sigsusp make
46607 82897 4326 21 3 0x10008a sigsusp sh
4326 521564 39944 21 3 0x10008a sigsusp make
39944 29261 23064 0 3 0x10008a sigsusp sh
23064 114995 42774 0 3 0x10008a sigsusp make
42774 513573 49356 0 3 0x10008a sigsusp make
49356 29591 44445 0 3 0x10008a sigsusp ksh
44445 444122 84159 0 3 0x9a kqread sshd
16291 124821 1 0 3 0x80 mfsidl mount_mfs
68319 151430 1 0 3 0x100083 ttyin getty
57451 206235 1 0 3 0x100098 kqread cron
65588 388973 1 99 3 0x1100090 kqread sndiod
12015 62286 1 110 3 0x100090 kqread sndiod
26835 364696 10259 95 3 0x1100092 kqread smtpd
65551 247250 10259 103 3 0x1100092 kqread smtpd
18616 340759 10259 95 3 0x1100092 kqread smtpd
52969 252069 10259 95 3 0x100092 kqread smtpd
27831 226020 10259 95 3 0x1100092 kqread smtpd
58802 371304 10259 95 3 0x1100092 kqread smtpd
10259 488733 1 0 3 0x100080 kqread smtpd
12484 116374 1 0 3 0x100080 kqread snmpd
9232 457646 1 91 3 0x1000092 kqread snmpd
84159 39944 1 0 3 0x88 kqread sshd
51456 375803 0 0 3 0x14200 acct acct
97156 54633 0 0 3 0x14280 nfsidl nfsio
48723 506570 0 0 3 0x14280 nfsidl nfsio
30975 421108 0 0 3 0x14280 nfsidl nfsio
90267 105214 0 0 3 0x14280 nfsidl nfsio
27263 151640 1 0 3 0x100080 kqread ntpd
63152 283724 32327 83 3 0x100092 kqread ntpd
32327 140471 1 83 3 0x1100092 kqread ntpd
54008 381788 22603 74 3 0x1100092 bpf pflogd
22603 374643 1 0 3 0x80 netio pflogd
85619 165539 58643 73 3 0x1100090 kqread syslogd
58643 211158 1 0 3 0x100082 netio syslogd
14745 227636 1 0 3 0x100080 kqread resolvd
94178 75480 67736 77 3 0x100092 kqread dhcpleased
19570 2813 67736 77 3 0x100092 kqread dhcpleased
67736 172009 1 0 3 0x80 kqread dhcpleased
7616 381321 58851 115 3 0x100092 kqread slaacd
62367 10202 58851 115 3 0x100092 kqread slaacd
58851 459700 1 0 3 0x100080 kqread slaacd
73378 369394 0 0 3 0x14200 bored smr
95107 128127 0 0 3 0x14200 pgzero zerothread
99078 87882 0 0 3 0x14200 aiodoned aiodoned
68522 414492 0 0 3 0x14200 syncer update
36962 34571 0 0 3 0x14200 cleaner cleaner
74663 371255 0 0 3 0x14200 reaper reaper
51507 233417 0 0 3 0x14200 pgdaemon pagedaemon
92369 300837 0 0 3 0x14200 usbtsk usbtask
10430 435738 0 0 3 0x14200 usbatsk usbatsk
35244 3335 0 0 3 0x14200 bored ipmicmd
4119 152991 0 0 3 0x14200 ipmi_poll ipmi0
61329 53989 0 0 3 0x14200 bored sensors
88633 39216 0 0 7 0x40014200 idle3
98441 15427 0 0 7 0x40014200 idle2
83024 411659 0 0 3 0x40014200 idle1
12909 61450 0 0 3 0x14200 bored softnet
90496 509687 0 0 3 0x14200 bored systqmp
34656 281810 0 0 3 0x14200 bored systq
35036 360741 0 0 3 0x40014200 bored softclock
24365 164383 0 0 3 0x40014200 idle0
70604 194952 0 0 3 0x14200 kmalloc kmthread
1 402520 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show uvm
Current UVM status:
pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
1913800 VM pages: 347018 active, 415964 inactive, 1 wired, 711897 free (88989
zero)
min 10% (25) anon, 10% (25) vnode, 5% (12) vtext
freemin=63793, free-target=85057, inactive-target=0, wired-max=637933
faults=-820973748, traps=-801244336, intrs=104945314, ctxswitch=61608210
fpuswitch=0
softint=13953263, syscalls=-177700565, kmapent=18
fault counts:
noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
ok relocks(total)=1891816(1926198), anget(retries)=-1374498926(0),
amapcopy=188970681
neighbor anon/obj pg=557832795/316376028,
gets(lock/unlock)=112083057/1926396
cases: anon=-1380029845, anoncow=5530919, obj=92007258, prcopy=20041219,
przero=441476700
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
swpages=2162687, swpginuse=0, swpgonly=0 paging=0
kernel pointers:
objs(kern)=0x1b8fef0
ddb{1}> mach ddbcpu 0
hangs the machine