Hi,
On my sparc64 machine regress/lib/libpthread triggers a panic. It
happend with Feb 1 and Jan 31 snapshot. Jan 29 snapshot paniced
somewhere else. Test and console output below.
*cpu1: pmap_enter: access_type exceeds prot
bluhm
===> dlopen
==== run-regress-dlopen ====
cc -O2 -pipe -Wall -DSRCDIR='"/usr/src/regress/lib/libpthread/dlopen"'
-I/usr/src/regress/lib/libpthread/dlopen/../include -MD -MP -c
/usr/src/regress/lib/libpthread/dlopen/dlopen.c
cc -o dlopen dlopen.o
./dlopen
Timeout, server ot21 not responding.
OpenBSD 7.0-current (GENERIC.MP) #1176: Tue Feb 1 10:14:31 MST 2022
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 2147483648 (2048MB)
avail mem = 2092711936 (1995MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Sun Enterprise 220R (2 X UltraSPARC-II 450MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-II (rev 10.0) @ 450.036 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 4096K external (64
b/l)
cpu1 at mainbus0: SUNW,UltraSPARC-II (rev 10.0) @ 450.036 MHz
cpu1: physical 16K instruction (32 b/l), 16K data (32 b/l), 4096K external (64
b/l)
psycho0 at mainbus0 addr 0xfffb4000: SUNW,psycho, impl 0, version 4, ign 7c0
psycho0: bus range 0-0, PCI bus 0
psycho0: dvma map fe000000-ffffffff, STC0 enabled
pci0 at psycho0
ebus0 at pci0 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003
"SUNW,pll" at ebus0 addr 504000-504002 not configured
uperf0 at ebus0 addr 500000-500007: model SUNW,sc-qp (0/1) ports 9
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0: console
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 300398-300399, 700000-70000f ivec 0x22: polled
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
hme0 at pci0 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
08:00:20:c8:d9:25
luphy0 at hme0 phy 1: LU6612 10/100 PHY, rev. 1
siop0 at pci0 dev 3 function 0 "Symbios Logic 53c875" rev 0x14: ivec 0x7e0,
using 4K of on-board RAM
scsibus1 at siop0: 16 targets, initiator 7
sd0 at scsibus1 targ 0 lun 0: <IBM, DDYST3695SUN36G, S96H> naa.5005076507ca32bc
sd0: 34732MB, 512 bytes/sector, 71132959 sectors
sym0 at scsibus1 targ 1 lun 0: <FUJITSU, MAB3091S SUN9.0G, 2107>
serial.FUJITSU_MAB3091S_SUN9.0G00D86741_
sd1 at scsibus0 targ 0 lun 0: <FUJITSU, MAB3091S SUN9.0G, 2107>
serial.FUJITSU_MAB3091S_SUN9.0G00D86741_
sd1: 8637MB, 512 bytes/sector, 17689267 sectors
cd0 at scsibus1 targ 6 lun 0: <TOSHIBA, DVD-ROM SD-M1401, 1007> removable
siop1 at pci0 dev 3 function 1 "Symbios Logic 53c875" rev 0x14: ivec 0x7e6,
using 4K of on-board RAM
scsibus2 at siop1: 16 targets, initiator 7
psycho1 at mainbus0 addr 0xfffc6000: SUNW,psycho, impl 0, version 4, ign 7c0
psycho1: bus range 128-128, PCI bus 128
psycho1: dvma map fe000000-ffffffff, STC0 enabled, STC1 enabled
pci1 at psycho1
em0 at pci1 dev 1 function 0 "Intel 82546GB" rev 0x03: ivec 0x7c0, address
00:1b:21:55:ee:f2
em1 at pci1 dev 1 function 1 "Intel 82546GB" rev 0x03: ivec 0x7c1, address
00:1b:21:55:ee:f3
"counter-timer" at mainbus0 addr 0xfff9fc00 not configured
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
siop0: target 1 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
bootpath: /pci@1f,4000/scsi@3,0/disk@0,0
root on sd0a (7d8d67b5cb601172.a) swap on sd0b dump on sd0b
Automatic boot in progress: starting file system checks.
/dev/sd0a (7d8d67b5cb601172.a): file system is clean; not checking
/dev/sd0k (7d8d67b5cb601172.k): file system is clean; not checking
/dev/sd0d (7d8d67b5cb601172.d): file system is clean; not checking
/dev/sd0f (7d8d67b5cb601172.f): file system is clean; not checking
/dev/sd0g (7d8d67b5cb601172.g): file system is clean; not checking
/dev/sd0h (7d8d67b5cb601172.h): file system is clean; not checking
/dev/sd0j (7d8d67b5cb601172.j): file system is clean; not checking
/dev/sd0i (7d8d67b5cb601172.i): file system is clean; not checking
/dev/sd0e (7d8d67b5cb601172.e): file system is clean; not checking
pf enabled
ddb.console: 0 -> 1
ddb.log: 1 -> 0
ddb.max_line: 24 -> 0
ddb.max_width: 80 -> 0
kern.allowdt: 0 -> 1
kern.allowkmem: 0 -> 1
kern.pool_debug: 1 -> 1
kern.splassert: 1 -> 2
sysctl: kern.witnesswatch: value is not available
net.inet.etherip.allow: 0 -> 1
net.inet.ip.forwarding: 0 -> 1
net.inet.ipcomp.enable: 0 -> 1
net.inet.ipip.allow: 0 -> 1
net.inet6.ip6.forwarding: 0 -> 1
vm.malloc_conf: -> CFGJU
starting network
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
turning on accounting
creating runtime link editor directory cache.
preserving editor files.
running rc.sysmerge
starting network daemons: sshd snmpd smtpd sndiod.
running rc.firsttime
starting local daemons: cron.
Wed Feb 2 11:38:15 CET 2022
OpenBSD/sparc64 (ot21.obsd-lab.genua.de) (console)
login: [-- MARK -- Wed Feb 2 11:40:00 2022]
...
[-- MARK -- Wed Feb 2 15:00:00 2022]
papniacn:ipc:m kaep_neeln dteir:a agcncoesstisc_ t p c ed ro sStopped at
db_enter+0x8: nop
TID PID UID PRFLAGS PFLAGS CPU COMMAND
343494 43729 0 0 0 0 dlopen
*205347 42454 0 0x2 0x4000000 1 dlopen
pmap_enter(400042f8940, b298a1c000, 9823e000, 1, 23, 1c00) at pmap_enter+0x4ec
uvm_fault_upper(400266e9cd0, 400266e9d08, 400035359c0, 0, 1c14000, 1cab210) at
uvm_fault_upper+0x148
uvm_fault(0, 400266e9cd0, 0, 3, 113a3a0, 1) at uvm_fault+0x1e8
data_access_fault(400266e9ed0, 6c, b29869c4e8, b298a1d9d0, b298a1c4c8, 800005)
at data_access_fault+0x184
Ldatafault_internal(b298a1c4c8, 0, 0, 0, 0, 0) at Ldatafault_internal+0xcc
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{1}> show panic
cpu0: kernel diagnostic assertion "amap == NULL ||
rw_write_held(amap->am_lock)" failed: file "/usr/src/sys/uvm/uvm_fault.c", line
837
*cpu1: pmap_enter: access_type exceeds prot
ddb{1}> show register
tstate 0x80000604
pc 0x1479028 db_enter+0x8
npc 0x147902c db_enter+0xc
ipl 0xc
y 0
g0 0
g1 0x1c05000 urtwn_cd+0x18
g2 0x1
g3 0
g4 0
g5 0x4002a7f8000
g6 0
g7 0xe0018000
o0 0x2c
o1 0x4002a7f8964
o2 0x19073b8 __func__.8631+0x628
o3 0x400266e99f8
o4 0x4c11f
o5 0
o6 0x400266e8fd1
o7 0x111fb2c panic+0xcc
l0 0x4002a7f8140
l1 0x19d0
l2 0
l3 0x1cb84a8 kernel_pmap_
l4 0x1cb8000 wg_ratelimit_pool+0x110
l5 0x1cb8000 wg_ratelimit_pool+0x110
l6 0x1
l7 0x1cb8000 wg_ratelimit_pool+0x110
i0 0
i1 0
i2 0
i3 0
i4 0
i5 0
i6 0
i7 0
f0 0
f2 0
f4 0
f6 0
f8 0
f10 0
f12 0
f14 0
f16 0
f18 0
f20 0
f22 0
f24 0
f26 0
f28 0
f30 0
f32 0
f34 0
f36 0
f38 0
f40 0
f42 0
f44 0
f46 0
f48 0
f50 0
f52 0
f54 0
f56 0
f58 0
f60 0
f62 0
fsr 0
gsr 0
db_enter+0x8: nop
ddb{1}> trace
pmap_enter(400042f8940, b298a1c000, 9823e000, 1, 23, 1c00) at pmap_enter+0x4ec
uvm_fault_upper(400266e9cd0, 400266e9d08, 400035359c0, 0, 1c14000, 1cab210) at
uvm_fault_upper+0x148
uvm_fault(0, 400266e9cd0, 0, 3, 113a3a0, 1) at uvm_fault+0x1e8
data_access_fault(400266e9ed0, 6c, b29869c4e8, b298a1d9d0, b298a1c4c8, 800005)
at data_access_fault+0x184
Ldatafault_internal(b298a1c4c8, 0, 0, 0, 0, 0) at Ldatafault_internal+0xcc
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
43729 343494 42454 0 7 0 dlopen
42454 516455 16144 0 3 0x82 fsleep dlopen
*42454 205347 16144 0 7 0x4000002 dlopen
16144 303961 25041 0 3 0x10008a sigsusp make
25041 403696 28074 0 3 0x10008a sigsusp sh
28074 221215 72819 0 3 0x10008a sigsusp make
72819 28532 94819 0 3 0x10008a sigsusp sh
94819 170189 82889 0 3 0x10008a sigsusp make
84731 408318 79255 0 3 0x100082 piperd gzip
79255 465145 82889 0 3 0x100082 piperd pax
82889 452610 73100 0 2 0x82 perl
73100 91941 48778 0 3 0x10008a sigsusp ksh
48778 323997 21189 0 3 0x9a kqread sshd
52436 201574 1 0 3 0x100083 ttyin getty
11564 438340 1 0 2 0x100498 cron
58311 281840 1 99 3 0x100090 kqread sndiod
50413 190414 1 110 3 0x100090 kqread sndiod
31324 295797 77342 95 3 0x100092 kqread smtpd
60137 466718 77342 103 3 0x100092 kqread smtpd
33393 462706 77342 95 3 0x100092 kqread smtpd
7711 203137 77342 95 3 0x100092 kqread smtpd
4130 146206 77342 95 3 0x100092 kqread smtpd
15247 286466 77342 95 3 0x100092 kqread smtpd
77342 395234 1 0 3 0x100080 kqread smtpd
65165 113907 1 0 3 0x100080 kqread snmpd
46420 88151 1 91 2 0x492 snmpd
21189 200549 1 0 3 0x88 kqread sshd
25219 104098 0 0 2 0x14600 acct
73370 475458 0 0 3 0x14280 nfsidl nfsio
64244 117270 0 0 3 0x14280 nfsidl nfsio
57547 254178 0 0 3 0x14280 nfsidl nfsio
36040 346380 0 0 3 0x14280 nfsidl nfsio
84681 88677 1 0 3 0x100080 kqread ntpd
93174 416471 67953 83 3 0x100092 kqread ntpd
67953 66903 1 83 2 0x100492 ntpd
48176 153687 11854 74 2 0x100492 pflogd
11854 132560 1 0 3 0x80 netio pflogd
53387 19414 47012 73 2 0x100490 syslogd
47012 374565 1 0 3 0x100082 netio syslogd
82603 174515 1 0 3 0x100080 kqread resolvd
20769 361391 2998 77 3 0x100092 kqread dhcpleased
96493 231010 2998 77 3 0x100092 kqread dhcpleased
2998 334768 1 0 3 0x80 kqread dhcpleased
81199 274903 50462 115 3 0x100092 kqread slaacd
15597 456166 50462 115 3 0x100092 kqread slaacd
50462 422651 1 0 3 0x100080 kqread slaacd
37859 503455 0 0 3 0x14200 bored smr
96399 127240 0 0 3 0x14200 pgzero zerothread
8922 295261 0 0 3 0x14200 aiodoned aiodoned
2683 45173 0 0 2 0x14600 update
12713 362309 0 0 3 0x14200 cleaner cleaner
64226 64813 0 0 3 0x14200 reaper reaper
44606 217118 0 0 3 0x14200 pgdaemon pagedaemon
69933 168949 0 0 3 0x40014200 idle1
85830 43818 0 0 2 0x14200 softnet
27776 310304 0 0 2 0x14200 systqmp
30465 505485 0 0 2 0x14200 systq
60675 227831 0 0 2 0x40014200 softclock
24238 336618 0 0 3 0x40014200 idle0
4057 210847 0 0 3 0x14200 kmalloc kmthread
1 [-- MARK -- Wed Feb 2 18:00:00 2022]
80735 0 0 3 0x82 wait init
0 0 -1 0 2 0x10200 swapper
ddb{1}> mach ddbcpu 0
Stopped at sabtty_tec_wait+0x40: bne,pt sabtty_tec_wait+0x10
cnputc(73, 30, b29865bd98, b298a199d3, b298a18b98, 800801) at cnputc+0x30
db_putchar(73, 10, 1, 0, 40026cd5930, 0) at db_putchar+0x140
kprintf(1b, 10, 0, 0, 0, 73) at kprintf+0xab0
db_printf(17d8cf0, 2018964, 17d8db8, 40026cd59f8, 4, 4002a7f8964) at
db_printf+0x40
panic(17d8db8, 17753b0, 17865f8, 17864a0, 104, 2018964) at panic+0xa8
__assert(17753b0, 17864a0, 345, 17865f8, 1c15000, 0) at __assert+0x20
uvm_fault_upper_lookup(40026cd5cd0, 40026cd5d08, 40026cd5c50, 40026cd5bd0,
b204b7b750, 11001f) at uvm_fault_upper_lookup+0x2a4
uvm_fault(0, 40026cd5cd0, 0, 1, 113a3a0, 0) at uvm_fault+0x110
data_access_fault(40026cd5ed0, 30, b29865bd98, b298a199d3, b298a18b98, 800801)
at data_access_fault+0x184
Ldatafault_internal(40026cd5ed0, ffffffffffffffff, b29865bfc0, 82, 0,
1fe01801000) at Ldatafault_internal+0xcc
ddb{0}> show register
tstate 0x1180000606
pc 0x1718de0 sabtty_tec_wait+0x40
npc 0x1718de4 sabtty_tec_wait+0x44
ipl 0
y 0
g0 0
g1 0x80
g2 0x4a
g3 0x40004325300
g4 0x45
g5 0x40026cd57b7
g6 0
g7 0xe0018000
o0 0xfffffffffffffffc
o1 0x50b45c55c2a
o2 0x50b45c55c30
o3 0x6
o4 0xfffffffffffffffc
o5 0x11001f
o6 0x40026cd4c31
o7 0x1718dbc sabtty_tec_wait+0x1c
l0 0x30d3c
l1 0x40026cd5bd0
l2 0x40026cd5d30
l3 0x40026cd5c50
l4 0x198f480 __guard_local
l5 0x2000
l6 0x40026cd5af0
l7 0
i0 0
i1 0
i2 0
i3 0
i4 0
i5 0
i6 0
i7 0
f0 0
f2 0
f4 0
f6 0
f8 0
f10 0
f12 0
f14 0
f16 0
f18 0
f20 0
f22 0
f24 0
f26 0
f28 0
f30 0
f32 0
f34 0
f36 0
f38 0
f40 0
f42 0
f44 0
f46 0
f48 0
f50 0
f52 0
f54 0
f56 0
f58 0
f60 0
f62 0
fsr 0
gsr 0
sabtty_tec_wait+0x40: bne,pt sabtty_tec_wait+0x10
ddb{0}> trace
cnputc(73, 30, b29865bd98, b298a199d3, b298a18b98, 800801) at cnputc+0x30
db_putchar(73, 10, 1, 0, 40026cd5930, 0) at db_putchar+0x140
kprintf(1b, 10, 0, 0, 0, 73) at kprintf+0xab0
db_printf(17d8cf0, 2018964, 17d8db8, 40026cd59f8, 4, 4002a7f8964) at
db_printf+0x40
panic(17d8db8, 17753b0, 17865f8, 17864a0, 104, 2018964) at panic+0xa8
__assert(17753b0, 17864a0, 345, 17865f8, 1c15000, 0) at __assert+0x20
uvm_fault_upper_lookup(40026cd5cd0, 40026cd5d08, 40026cd5c50, 40026cd5bd0,
b204b7b750, 11001f) at uvm_fault_upper_lookup+0x2a4
uvm_fault(0, 40026cd5cd0, 0, 1, 113a3a0, 0) at uvm_fault+0x110
data_access_fault(40026cd5ed0, 30, b29865bd98, b298a199d3, b298a18b98, 800801)
at data_access_fault+0x184
Ldatafault_internal(40026cd5ed0, ffffffffffffffff, b29865bfc0, 82, 0,
1fe01801000) at Ldatafault_internal+0xcc
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
*43729 343494 42454 0 7 0 dlopen
42454 516455 16144 0 3 0x82 fsleep dlopen
42454 205347 16144 0 7 0x4000002 dlopen
16144 303961 25041 0 3 0x10008a sigsusp make
25041 403696 28074 0 3 0x10008a sigsusp sh
28074 221215 72819 0 3 0x10008a sigsusp make
72819 28532 94819 0 3 0x10008a sigsusp sh
94819 170189 82889 0 3 0x10008a sigsusp make
84731 408318 79255 0 3 0x100082 piperd gzip
79255 465145 82889 0 3 0x100082 piperd pax
82889 452610 73100 0 2 0x82 perl
73100 91941 48778 0 3 0x10008a sigsusp ksh
48778 323997 21189 0 3 0x9a kqread sshd
52436 201574 1 0 3 0x100083 ttyin getty
11564 438340 1 0 2 0x100498 cron
58311 281840 1 99 3 0x100090 kqread sndiod
50413 190414 1 110 3 0x100090 kqread sndiod
31324 295797 77342 95 3 0x100092 kqread smtpd
60137 466718 77342 103 3 0x100092 kqread smtpd
33393 462706 77342 95 3 0x100092 kqread smtpd
7711 203137 77342 95 3 0x100092 kqread smtpd
4130 146206 77342 95 3 0x100092 kqread smtpd
15247 286466 77342 95 3 0x100092 kqread smtpd
77342 395234 1 0 3 0x100080 kqread smtpd
65165 113907 1 0 3 0x100080 kqread snmpd
46420 88151 1 91 2 0x492 snmpd
21189 200549 1 0 3 0x88 kqread sshd
25219 104098 0 0 2 0x14600 acct
73370 475458 0 0 3 0x14280 nfsidl nfsio
64244 117270 0 0 3 0x14280 nfsidl nfsio
57547 254178 0 0 3 0x14280 nfsidl nfsio
36040 346380 0 0 3 0x14280 nfsidl nfsio
84681 88677 1 0 3 0x100080 kqread ntpd
93174 416471 67953 83 3 0x100092 kqread ntpd
67953 66903 1 83 2 0x100492 ntpd
48176 153687 11854 74 2 0x100492 pflogd
11854 132560 1 0 3 0x80 netio pflogd
53387 19414 47012 73 2 0x100490 syslogd
47012 374565 1 0 3 0x100082 netio syslogd
82603 174515 1 0 3 0x100080 kqread resolvd
20769 361391 2998 77 3 0x100092 kqread dhcpleased
96493 231010 2998 77 3 0x100092 kqread dhcpleased
2998 334768 1 0 3 0x80 kqread dhcpleased
81199 274903 50462 115 3 0x100092 kqread slaacd
15597 456166 50462 115 3 0x100092 kqread slaacd
50462 422651 1 0 3 0x100080 kqread slaacd
37859 503455 0 0 3 0x14200 bored smr
96399 127240 0 0 3 0x14200 pgzero zerothread
8922 295261 0 0 3 0x14200 aiodoned aiodoned
2683 45173 0 0 2 0x14600 update
12713 362309 0 0 3 0x14200 cleaner cleaner
64226 64813 0 0 3 0x14200 reaper reaper
44606 217118 0 0 3 0x14200 pgdaemon pagedaemon
69933 168949 0 0 3 0x40014200 idle1
85830 43818 0 0 2 0x14200 softnet
27776 310304 0 0 2 0x14200 systqmp
30465 505485 0 0 2 0x14200 systq
60675 227831 0 0 2 0x40014200 softclock
24238 336618 0 0 3 0x40014200 idle0
4057 210847 0 0 3 0x14200 kmalloc kmthread
1 80735 0 0 3 0x82 wait init
0 0 -1 0 2 0x10200 swapper
ddb{0}> show uvm
Current UVM status:
pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
255550 VM pages: 8152 active, 9700 inactive, 1 wired, 178405 free (22329 zero)
min 10% (25) anon, 10% (25) vnode, 5% (12) vtext
freemin=8518, free-target=11357, inactive-target=0, wired-max=85183
faults=31790572, traps=32128691, intrs=11399600, ctxswitch=10014062
fpuswitch=34024
softint=168041, syscalls=27158426, kmapent=14
fault counts:
noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
ok relocks(total)=25013(25013), anget(retries)=10899368(0), amapcopy=7342027
neighbor anon/obj pg=2909318/5557919, gets(lock/unlock)=3418503/25020
cases: anon=9731832, anoncow=1167536, obj=3026446, prcopy=392050,
przero=17472653
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=295038, swpginuse=0, swpgonly=0 paging=0
kernel pointers:
objs(kern)=0x1c2dc30
ddb{0}>