NetBSD Problem Report #56912
From martin@aprisoft.de Tue Jul 5 10:13:20 2022
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id AEBCD1A921F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 5 Jul 2022 10:13:20 +0000 (UTC)
Message-Id: <20220705101310.025935CC847@emmas.aprisoft.de>
Date: Tue, 5 Jul 2022 12:13:10 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: curthread broken on macppc?
X-Send-Pr-Version: 3.95
>Number: 56912
>Category: port-macppc
>Synopsis: curthread broken on macppc?
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-macppc-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 05 10:15:00 +0000 2022
>Closed-Date: Tue Jan 10 11:29:37 +0000 2023
>Last-Modified: Tue Jan 10 11:29:37 +0000 2023
>Originator: Martin Husemann
>Release: NetBSD 9.99.98
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD gethsemane.aprisoft.de 9.99.98 NetBSD 9.99.98 (GETHSEMANE) #203: Tue Jul 5 10:20:25 CEST 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/macppc/compile/GETHSEMANE macppc
Architecture: powerpc
Machine: macppc
>Description:
Doing an atf run with todays current and a kernel that has fast softints
disabled I got this panic:
[ 2124.0967046] panic: lock error: Mutex: mutex_vector_exit,755: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread: lock 0x1d240f40 cpu 1 lwp 0x18973340
[ 2124.1267194] cpu1: Begin traceback...
[ 2124.1267194] 0x1d13bd70: at vpanic+0x158
[ 2124.1467307] 0x1d13bda0: at panic+0x50
[ 2124.1467307] 0x1d13bde0: at lockdebug_abort+0xe4
[ 2124.1567349] 0x1d13be00: at mutex_spin_exit+0x104
[ 2124.1767447] 0x1d13be10: at pipe_write+0x280
[ 2124.1867495] 0x1d13be60: at dofilewrite+0x8c
[ 2124.1967549] 0x1d13beb0: at syscall+0x350
db{1}> ps
PID LID S CPU FLAGS STRUCT LWP * NAME WAIT
29992 29992 3 0 40180 1d76b100 dd pipe_rd
2808 > 2808 7 1 1040100 18973340 h_intr
15790 15790 3 1 180 1f231640 sh wait
10309 10309 3 1 180 1b75e700 tail kqueue
[..]
0 4 1 0 200 5fb29640 softbio/0
0 3 1 0 200 5fb29340 softnet/0
0 > 2 1 0 201 5fb29040 idle/0
0 0 3 1 200 c19d40 swapper uvm
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/56912: curthread broken on macppc?
Date: Tue, 3 Jan 2023 16:33:24 +0100
Not sure this is the same, but it looks very similar.
Martin
[ 7140.5609835] Reader / writer lock error: rw_vector_exit,462: assertion failed: RW_OWNER(rw) == curthread
[ 7140.5810024] lock address : 5fbec840
[ 7140.5810024] current cpu : 1
[ 7140.5909978] current lwp : 0x0000000028610cc0
[ 7140.6009996] owner/count : 000000000000000000 flags : 000000000000000000
[ 7140.6210077] panic: lock error: Reader / writer lock: rw_vector_exit,462: assertion failed: RW_OWNER(rw) == curthread: lock 0x5fbec840 cpu 1 lwp 0x28610cc0
[ 7140.6410200] cpu1: Begin traceback...
[ 7140.6510252] 0x1fefbb80: at vpanic+0x158
[ 7140.6610287] 0x1fefbbb0: at panic+0x50
[ 7140.6710416] 0x1fefbbf0: at lockdebug_abort+0xf8
[ 7140.6810396] 0x1fefbc90: at rw_exit+0x224
[ 7140.6910439] 0x1fefbcc0: at uvm_fault_lower_enter+0x3bc
[ 7140.7010494] 0x1fefbd10: at uvm_fault_internal+0xd68
[ 7140.7110536] 0x1fefbe60: at trap+0x164
[ 7140.7110536] 0x1fefbf20: user ISI trap by 0xfdcb2cbc: srr1=0x4000d032
[ 7140.7410689] r1=0xffffcbb0 cr=0x22024222 xer=0x20000000 ctr=0xfdc02de8
[ 7140.7510747] cpu1: End traceback...
[ 7140.7610815] Failed to pause: cpu0
Stopped in pid 11650.11650 (sh) at netbsd:vpanic+0x15c: or r3, r26,
r26
db{1}> ps
PID LID S CPU FLAGS STRUCT LWP * NAME WAIT
11650>11650 7 1 0 28610cc0 sh
15338 15338 3 0 180 287a4c80 rump.ifconfig kqueue
29756 29756 3 1 180 284e66c0 sh wait
20640 10607 3 1 180 23a24400 shmif parked
20640 2410 3 1 180 287e3c40 rump_server parked
20640 22374 3 1 180 1fe253c0 rump_server poll
20640 959 3 0 180 295d8d00 vmem_rehash parked
20640 19752 5 0 0 287a4680 (zombie)
20640 17251 5 1 100 281e6380 (zombie)
20640 7493 3 0 180 1d6fe340 pmfsuspend parked
20640 29151 3 0 180 1a3ad3c0 pmfevent parked
20640 13815 3 0 180 28cf6640 rt_free parked
20640 8768 3 0 180 27831640 carp6_wqinput/0 parked
20640 4246 3 0 180 28824d00 carp6_wqinput/1 parked
20640 1590 3 1 180 243e7680 carp_wqinput/0 parked
20640 6510 3 1 180 28342700 carp_wqinput/1 parked
20640 4272 3 1 180 28463640 icmp_wqinput/0 parked
20640 12631 3 0 180 289b0980 icmp_wqinput/1 parked
20640 22568 3 1 180 29518400 rt_timer parked
20640 15317 3 0 180 1620c380 ipflow_slowtimo parked
20640 28260 3 1 180 28c6c040 ifwdog parked
20640 16313 3 0 180 243e7380 iflnkst parked
20640 3532 3 1 180 25370100 ioflush nanoslp
20640 8828 3 0 180 292df940 vdrain parked
20640 11676 3 1 180 287e3040 pdaemon parked
20640 7607 3 0 180 25620080 entbutler parked
20640 3139 3 1 180 28577640 xcall/1 parked
20640 3403 3 1 180 23e63640 sipbnc parked
20640 285 3 1 180 28463040 rumpclk1 nanoslp
20640 22437 3 0 180 28af2640 xcall/0 parked
20640 23014 3 1 180 285d1700 rsi1/0 parked
20640 10889 3 0 180 28650380 rsi0/0 parked
20640 18597 3 1 180 2968ed00 rsi1/3 parked
20640 20953 3 0 180 23a24d00 rsi0/3 parked
20640 12954 3 1 180 292aac80 rsi1/2 parked
20640 13050 3 0 180 285d1a00 rsi0/2 parked
20640 20944 3 1 180 1fe60680 sipbnc parked
20640 2105 3 1 180 21d539c0 rumpclk0 nanoslp
20640 26170 3 0 180 25566640 rsi1/1 parked
20640 8442 3 0 180 1fe250c0 rsi0/1 parked
20640 20640 3 1 180 28bd8100 rump_server psem
11410 1114 3 0 180 28cb5380 shmif parked
11410 8571 3 1 180 1e793080 shmif parked
11410 2385 3 0 180 111c5a00 rump_server parked
11410 9455 3 0 180 289740c0 rump_server poll
11410 10947 3 1 180 29518100 vmem_rehash parked
11410 2841 5 0 100 28ab1080 (zombie)
11410 12724 5 1 100 1f5a9080 (zombie)
11410 20517 3 1 180 287e3940 pmfsuspend parked
11410 10649 3 1 180 25620c80 pmfevent parked
11410 9029 3 0 180 25620680 rt_free parked
11410 26155 3 0 180 288649c0 key_timehandler parked
11410 13746 3 1 180 25696700 carp6_wqinput/0 parked
11410 9071 3 1 180 28bc2c80 carp6_wqinput/1 parked
11410 21697 3 1 180 28824700 carp_wqinput/0 parked
11410 12637 3 1 180 19d0d340 carp_wqinput/1 parked
11410 11674 3 1 180 287a4380 icmp_wqinput/0 parked
11410 13781 3 1 180 286d0940 icmp_wqinput/1 parked
11410 12928 3 1 180 253e7380 rt_timer parked
11410 25553 3 1 180 28415980 ipflow_slowtimo parked
11410 6507 3 1 180 28342a00 ifwdog parked
11410 29012 3 1 180 295d8a00 iflnkst parked
11410 314 3 1 180 289743c0 ioflush nanoslp
11410 23840 3 1 180 1620c680 vdrain parked
11410 6923 3 1 180 1a64e100 pdaemon parked
11410 10782 3 1 180 289b0680 entbutler parked
11410 26833 3 0 180 28bd8700 xcall/1 parked
11410 5963 3 1 180 28723d00 sipbnc parked
11410 12834 3 1 180 28136c80 rumpclk1 nanoslp
11410 25918 3 1 180 1a5ee640 xcall/0 parked
11410 12491 3 1 180 27831c40 rsi1/0 parked
11410 9714 3 0 180 1f5a9680 rsi0/0 parked
11410 24408 3 1 180 1d6fe040 rsi1/3 parked
11410 12187 3 1 180 252f1680 rsi0/3 parked
11410 22717 3 1 180 283c2d00 rsi1/2 parked
11410 8027 3 0 180 1fe60980 rsi0/2 parked
11410 14315 3 0 180 28ab1380 sipbnc parked
11410 1287 3 1 180 123a9940 rumpclk0 nanoslp
11410 1737 3 0 180 1fe60080 rsi1/1 parked
11410 5889 3 0 180 23e63340 rsi0/1 parked
11410 11410 3 0 180 28ab1980 rump_server psem
17471 6069 3 0 180 28c6c640 rump_server parked
17471 20044 3 0 180 23e63940 shmif kqueue
17471 28937 3 1 180 28342d00 shmif kqueue
17471 10432 2 1 100 2954a0c0 rump_server
17471 27597 3 0 180 292aa980 rump_server poll
17471 8345 3 1 180 1fe60c80 vmem_rehash parked
17471 23510 5 1 100 289b0080 (zombie)
17471 28234 5 0 100 289749c0 (zombie)
17471 29608 3 1 180 287a4080 pmfsuspend parked
17471 16768 3 0 180 294cf040 pmfevent parked
17471 3784 3 1 180 1f7a0080 rt_free parked
17471 740 3 1 180 28577940 key_timehandler parked
17471 26344 3 0 180 125889c0 carp6_wqinput/0 parked
17471 29977 3 0 180 28bd8d00 carp6_wqinput/1 parked
17471 698 3 0 180 2962a680 carp_wqinput/0 parked
17471 14260 3 0 180 22a03a00 carp_wqinput/1 parked
17471 7689 3 0 180 224356c0 icmp_wqinput/0 parked
17471 7019 3 0 180 28ab1c80 icmp_wqinput/1 parked
17471 2308 3 0 180 288f4040 rt_timer parked
17471 29560 3 1 180 28bc2980 ipflow_slowtimo parked
17471 25930 3 0 180 285d1100 ifwdog parked
17471 17028 3 0 180 28415c80 iflnkst parked
17471>8417 7 0 140 28d753c0 ioflush
17471 13281 3 0 180 28c01040 vdrain parked
17471 12068 3 0 180 22bd1340 pdaemon parked
17471 9829 3 0 180 28577c40 entbutler parked
17471 11142 3 0 180 25331cc0 xcall/1 parked
17471 26311 3 0 180 28650c80 sipbnc parked
17471 6741 3 1 180 284e60c0 rumpclk1 nanoslp
17471 12939 3 0 180 25471a00 xcall/0 parked
17471 25041 3 0 180 25822d00 rsi1/0 parked
17471 17838 3 0 180 28c6c940 rsi0/0 parked
17471 8618 3 0 180 29518700 rsi1/3 parked
17471 27068 3 0 180 1e9e10c0 rsi0/3 parked
17471 11665 3 0 180 28650980 rsi1/2 parked
17471 12447 3 1 180 28d43400 rsi0/2 parked
17471 7542 3 1 180 28a35700 sipbnc parked
17471 6661 3 1 180 28577040 rumpclk0 nanoslp
17471 4022 3 0 180 28577340 rsi1/1 parked
17471 484 3 0 180 1e9e13c0 rsi0/1 parked
17471 17471 3 0 180 28c42a00 rump_server psem
24781 277 3 1 180 28c829c0 shmif kqueue
24781 5773 3 1 180 28b830c0 rump_server parked
24781 27732 3 0 180 295d8100 rump_server poll
24781 8822 3 0 180 256e53c0 vmem_rehash parked
24781 14993 5 1 0 23a24a00 (zombie)
24781 29485 5 0 100 27831940 (zombie)
24781 11502 3 0 180 286a1c40 pmfsuspend parked
24781 8969 3 1 180 1620cc80 pmfevent parked
24781 16739 3 1 180 25566340 rt_free parked
24781 29005 3 1 180 2963dc40 carp6_wqinput/0 parked
24781 14841 3 0 180 23e63040 carp6_wqinput/1 parked
24781 6771 3 1 180 1d6fec40 carp_wqinput/0 parked
24781 22751 3 1 180 296afcc0 carp_wqinput/1 parked
24781 14077 3 1 180 1e9e1cc0 icmp_wqinput/0 parked
24781 15398 3 0 180 1620c980 icmp_wqinput/1 parked
24781 14947 3 0 180 1f5a9380 rt_timer parked
24781 16265 3 0 180 28bc2080 ipflow_slowtimo parked
24781 12133 3 0 180 1f5a9980 ifwdog parked
24781 28348 3 1 180 2956f080 iflnkst parked
24781 830 3 0 180 28c3a380 ioflush nanoslp
24781 12104 3 1 180 28cb5980 vdrain parked
24781 10493 3 0 180 1fe60380 pdaemon parked
24781 9716 3 1 180 28bfd6c0 entbutler parked
24781 27216 3 0 180 22bd1c40 xcall/1 parked
24781 5935 3 1 180 28a35100 sipbnc parked
24781 26447 3 1 180 28d43d00 rumpclk1 nanoslp
24781 10081 3 1 180 284b3a00 xcall/0 parked
24781 4974 3 1 180 256e50c0 rsi1/0 parked
24781 11554 3 1 180 1e9e16c0 rsi0/0 parked
24781 29366 3 1 180 232d5700 rsi1/3 parked
24781 9393 3 0 180 28ab1680 rsi0/3 parked
24781 7688 3 1 180 295adc40 rsi1/2 parked
24781 4370 3 1 180 28c820c0 rsi0/2 parked
24781 10224 3 1 180 253316c0 sipbnc parked
24781 4877 3 0 180 1a5ee940 rumpclk0 nanoslp
24781 13004 3 0 180 253b0040 rsi1/1 parked
24781 6657 3 0 180 28a35400 rsi0/1 parked
24781 24781 3 1 10000180 28934a00 rump_server psem
25177 25177 3 0 180 295ad940 sh pipe_rd
4129 4129 3 0 180 1a3ad0c0 tail kqueue
3555 3555 3 1 180 19d0d640 tcsh pause
3276 3276 3 1 1c0 19d0d040 rxvt select
2985 2985 3 0 180 1777b700 tcsh pause
2903 2903 3 1 180 10c8e0c0 sshd poll
1603 1603 3 1 180 1081a640 sshd poll
450 450 3 0 180 12348680 tee pipe_rd
1605 1605 3 0 180 104bed00 atf-report pipe_rd
1762 1762 3 1 180 125880c0 tee pipe_rd
1593 1593 3 1 180 12348080 atf-run poll
1604 1604 3 0 180 10c8e9c0 sh wait
1627 1627 3 1 180 1081a040 sh wait
1592 1592 3 1 180 125883c0 upsmon nanoslp
1344 1344 3 1 180 111c5100 upsmon pipe_rd
1606 1606 3 0 180 1081a940 upsd poll
1480 1480 3 0 180 10b77980 usbhid-ups select
1365 1365 3 1 180 10c8ecc0 getty ttyraw
1370 1370 3 0 180 111c5400 getty nanoslp
1211 1211 3 0 180 123a9c40 getty nanoslp
1381 1381 3 1 180 111c5d00 getty nanoslp
951 951 3 0 180 10437cc0 getty nanoslp
1194 1194 3 0 180 12348980 cron nanoslp
1244 1244 3 0 180 12348c80 inetd kqueue
1245 1245 3 0 180 12348380 sshd poll
1074 1074 3 0 180 123a9040 powerd kqueue
1076 1076 3 0 180 10b77c80 ntpd pause
587 587 3 1 180 10c8e6c0 syslogd kqueue
307 307 3 0 180 1081ac40 dhcpcd poll
303 303 3 1 180 10b77680 dhcpcd poll
305 305 3 1 180 10b77080 dhcpcd poll
304 304 3 1 180 10b77380 dhcpcd poll
206 206 3 1 180 1081a340 wdogctl nanoslp
1 1 3 1 180 104373c0 init wait
0 19600 5 1 200 1a73cc40 (zombie)
0 210 3 0 200 104be100 physiod physiod
0 164 3 0 200 104bea00 pooldrain pooldrain
0 163 3 0 200 104be700 ioflush syncer
0 162 3 1 200 104be400 pgdaemon pgdaemon
0 167 3 1 200 103c8100 swwreboot swwreboot
0 31 3 0 200 104379c0 atapibus0 sccomp
0 126 3 1 200 104376c0 npfgc0 npfgcw
0 125 3 0 200 104370c0 rt_free rt_free
0 124 3 0 200 1042ac80 unpgc unpgc
0 123 3 1 200 1042a980 key_timehandler key_timehandler
0 122 3 1 200 1042a680 icmp6_wqinput/1 icmp6_wqinput
0 121 3 0 200 103c8400 icmp6_wqinput/0 icmp6_wqinput
0 119 3 1 200 5f7e7cc0 usb4 usbevt
0 118 3 1 200 5f7e79c0 usb3 usbevt
0 117 3 1 200 5f7e76c0 usb2 usbevt
0 116 3 1 200 5f7e73c0 usb1 usbevt
0 115 3 1 200 103c8700 usb0 usbevt
0 114 3 1 200 1042a380 nd6_timer nd6_timer
0 113 3 1 200 1042a080 carp6_wqinput/1 carp6_wqinput
0 112 3 0 200 10409c40 carp6_wqinput/0 carp6_wqinput
0 111 3 1 200 10409940 carp_wqinput/1 carp_wqinput
0 110 3 0 200 10409640 carp_wqinput/0 carp_wqinput
0 109 3 1 200 10409340 icmp_wqinput/1 icmp_wqinput
0 108 3 0 200 10409040 icmp_wqinput/0 icmp_wqinput
0 107 3 1 200 103c8a00 rt_timer rt_timer
0 106 3 1 200 103c8d00 vmem_rehash vmem_rehash
0 97 3 1 200 5f7e70c0 entbutler entropy
0 96 3 0 380 5f866c80 fw1probe ieee1394
0 30 3 0 200 5f866980 cardslot0 evexit
0 29 3 0 200 5f866680 atabus2 atath
0 28 3 1 240 5f866380 atabus1 atath
0 27 3 1 240 5f866080 atabus0 atath
0 26 3 1 200 5f8f1c40 pmu wait
0 25 3 0 380 5f8f1940 fw0probe ieee1394
0 24 3 0 200 5f8f1640 usbtask-dr usbtsk
0 23 3 0 200 5f8f1340 usbtask-hc usbtsk
0 22 3 1 200 5f8f1040 xcall/1 xcall
0 21 1 1 200 5f901d00 softser/1
0 20 1 1 40200 5f901a00 softclk/1
0 19 1 1 200 5f901700 softbio/1
0 18 1 1 200 5f901400 softnet/1
0 17 1 1 201 5f901100 idle/1
0 16 3 0 200 5f90fcc0 sysmon smtaskq
0 15 3 0 200 5f90f9c0 pmfsuspend pmfsuspend
0 14 3 0 200 5f90f6c0 pmfevent pmfevent
0 13 3 0 200 5f90f3c0 sopendfree sopendfr
0 12 3 0 200 5f90f0c0 ifwdog ifwdog
0 11 3 0 200 5fb1ec80 iflnkst iflnkst
0 10 3 0 200 5fb1e980 nfssilly nfssilly
0 9 3 0 200 5fb1e680 vdrain vdrain
0 8 3 0 200 5fb1e380 modunload mod_unld
0 7 3 0 200 5fb1e080 xcall/0 xcall
0 6 1 0 200 5fb28c40 softser/0
0 5 1 0 40200 5fb28940 softclk/0
0 4 1 0 200 5fb28640 softbio/0
0 3 1 0 200 5fb28340 softnet/0
0 2 1 0 201 5fb28040 idle/0
0 0 3 1 200 c22ec0 swapper uvm
db{1}> show lock 0x5fbec840
WARNING: lock print is unreliable without LOCKDEBUG
5fbec840: possible owner: 0x0, bits: 0x0
db{1}> x 0x5fbec840
5fbec840: 0
db{1}>
5fbec844: 85d3c85d
db{1}>
5fbec848: 1
db{1}>
5fbec84c: 4feea70e
db{1}>
5fbec850: 450f8f08
db{1}>
5fbec854: 110b678b
db{1}>
5fbec858: f0e2d8f
db{1}>
5fbec85c: f0f6e46
db{1}>
5fbec860: 3f2f3b8f
db{1}>
5fbec864: 8f3f0b06
db{1}>
5fbec868: d0f0e0f
db{1}>
5fbec86c: bb0f0fef
db{1}>
5fbec870: 4fcf0d1f
db{1}>
5fbec874: 3e0e4f1f
db{1}>
5fbec878: f0f0f4b
db{1}>
5fbec87c: 4f3d1dce
db{1}>
5fbec880: 0
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Tue, 10 Jan 2023 11:29:37 +0000
State-Changed-Why:
Probably duplicate of 56413
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.