NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/56517: dual G4 macppc locks up during atf test run
The following reply was made to PR kern/56517; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/56517: dual G4 macppc locks up during atf test run
Date: Wed, 22 Dec 2021 08:41:34 +0100
I got a lockup with a non-DIAGNOSTIC but LOCKDEBUG kernel
and am confused by the ddb output. Especially this part I don't understand:
****** LWP 21308.21308 (ifconfig) @ 0x3878e400, l_stat=3
db{0}> bt/a0x3878e400
0x10003de0: at zsc_intr_hard+0x74
0x10003e00: at zshard+0x18
0x10003e10: at intr_deliver+0xe0
0x10003e50: at pic_do_pending_int+0x1ac
0x10003ea0: at splx+0x5c
0x10003eb0: at lockdebug_barrier+0x188
0x10003ed0: at idle_loop+0x140
0x10003f20: at cpu_lwp_bootstrap+0xc
*** Locks held:
* Lock 0 (initialized at ifinit1)
lock address : 0x0000000000c477c0 type : sleep/adaptive
initialized : 0x000000000085ec24
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 0
relevant cpu : 0 last held: 0
relevant lwp : 0x000000003878e400 last held: 0x000000003878e400
last locked* : 0x0000000000864a3c unlocked : 0x0000000000864ae8
owner field : 0x000000003878e400 wait/spin: 0/0
Turnstile: no active turnstile for this lock.
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000003878e400 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
Maybe I misread something, so full ouptut below.
Martin
db{0}> show all locks
[Locks tracked through LWPs]
****** LWP 18222.18222 (cron) @ 0x3868e680, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000003868e680 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 3263.3263 (cron) @ 0x38708cc0, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x0000000038708cc0 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 17952.17952 (cron) @ 0x307bb080, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x00000000307bb080 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 10799.10799 (cron) @ 0x19ede680, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x0000000019ede680 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 14823.14823 (cron) @ 0x2d4a20c0, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000002d4a20c0 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 10200.10200 (cron) @ 0x1aa9b3c0, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000001aa9b3c0 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 8920.8920 (cron) @ 0x38f5a100, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x0000000038f5a100 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 20422.20422 (cron) @ 0x3894b080, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000003894b080 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 18414.18414 (cron) @ 0x11521100, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x0000000011521100 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 10196.10196 (cron) @ 0x388eba00, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x00000000388eba00 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 21308.21308 (ifconfig) @ 0x3878e400, l_stat=3
*** Locks held:
* Lock 0 (initialized at ifinit1)
lock address : 0x0000000000c477c0 type : sleep/adaptive
initialized : 0x000000000085ec24
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 0
relevant cpu : 0 last held: 0
relevant lwp : 0x000000003878e400 last held: 0x000000003878e400
last locked* : 0x0000000000864a3c unlocked : 0x0000000000864ae8
owner field : 0x000000003878e400 wait/spin: 0/0
Turnstile: no active turnstile for this lock.
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x000000003878e400 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 1359.1359 (login) @ 0x132df640, l_stat=3
*** Locks held: none
*** Locks wanted:
* Lock 0 (initialized at sysctl_init)
lock address : 0x0000000000c38620 type : sleep/adaptive
initialized : 0x0000000000765340
shared holds : 1 exclusive: 0
shares wanted: 11 exclusive: 1
relevant cpu : 0 last held: 65535
relevant lwp : 0x00000000132df640 last held: 000000000000000000
last locked : 0x0000000000765474 unlocked*: 0x0000000000765b78
owner/count : 0x0000000000000020 flags : 0x0000000000000003
Turnstile:
=> 11 waiting readers: 0x388eba00 0x11521100 0x3894b080 0x38f5a100 0x1aa9b3c0 0x2d4a20c0 0x19ede680 0x307bb080 0x38708cc0 0x3868e680 0x132df640
=> 1 waiting writers: 0x3878e400
****** LWP 0.19 (softclk/1) @ 0x5f8f0700, l_stat=7
*** Locks held:
* Lock 0 (initialized at soinit)
lock address : 0x000000005fbcb080 type : sleep/adaptive
initialized : 0x00000000007e9f20
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 0
relevant cpu : 1 last held: 1
relevant lwp : 0x000000005f8f0700 last held: 0x000000005f8f0700
last locked* : 0x0000000000490fc8 unlocked : 0x00000000007db3e8
owner field : 0x000000005f8f0700 wait/spin: 0/0
Turnstile: no active turnstile for this lock.
*** Locks wanted:
* Lock 0 (initialized at main)
lock address : 0x0000000000c05d80 type : spin
initialized : 0x0000000000920228
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 1
relevant cpu : 1 last held: 0
relevant lwp : 0x000000005f8f0700 last held: 0x000000005fb22040
last locked* : 0x000000000013cb1c unlocked : 0x0000000000490fe8
curcpu holds : 1 wanted by: 000000000000000000
[Locks tracked through CPUs]
******* Locks held on cpu0:
* Lock 0 (initialized at main)
lock address : 0x0000000000c05d80 type : spin
initialized : 0x0000000000920228
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 1
relevant cpu : 0 last held: 0
relevant lwp : 0x000000005fb22040 last held: 0x000000005fb22040
last locked* : 0x000000000013cb1c unlocked : 0x0000000000490fe8
curcpu holds : 1 wanted by: 000000000000000000
db{0}> bt/a 0x11521100
trace: pid 18414 lid 18414 at 0x1dd53cc0
0x1dd53d20: at cpu_switchto+0x28
0x1dd53d30: at mi_switch+0x284
0x1dd53d70: at sleepq_block+0xd4
0x1dd53d90: at turnstile_block+0x3c4
0x1dd53de0: at rw_enter+0x16c
0x1dd53e30: at sysctl_lock+0x50
0x1dd53e40: at sys___sysctl+0xa8
0x1dd53eb0: at syscall+0x368
0x1dd53f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x132df640
trace: pid 1359 lid 1359 at 0x17f77cc0
0x17f77d20: at cpu_switchto+0x28
0x17f77d30: at mi_switch+0x284
0x17f77d70: at sleepq_block+0xd4
0x17f77d90: at turnstile_block+0x3c4
0x17f77de0: at rw_enter+0x16c
0x17f77e30: at sysctl_lock+0x50
0x17f77e40: at sys___sysctl+0xa8
0x17f77eb0: at syscall+0x368
0x17f77f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe990 cr=0x24004004 xer=0x20000000 ctr=0xfdda0178
db{0}> bt/a 0x19ede680
trace: pid 10799 lid 10799 at 0x20773cc0
0x20773d20: at cpu_switchto+0x28
0x20773d30: at mi_switch+0x284
0x20773d70: at sleepq_block+0xd4
0x20773d90: at turnstile_block+0x3c4
0x20773de0: at rw_enter+0x16c
0x20773e30: at sysctl_lock+0x50
0x20773e40: at sys___sysctl+0xa8
0x20773eb0: at syscall+0x368
0x20773f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a0x1aa9b3c0
0x10003de0: at zsc_intr_hard+0x74
0x10003e00: at zshard+0x18
0x10003e10: at intr_deliver+0xe0
0x10003e50: at pic_do_pending_int+0x1ac
0x10003ea0: at splx+0x5c
0x10003eb0: at lockdebug_barrier+0x188
0x10003ed0: at idle_loop+0x140
0x10003f20: at cpu_lwp_bootstrap+0xc
saved LR(0xfb3f6279) is invalid.
db{0}> bt/a 0x2d4a20c0
trace: pid 14823 lid 14823 at 0x19643cc0
0x19643d20: at cpu_switchto+0x28
0x19643d30: at mi_switch+0x284
0x19643d70: at sleepq_block+0xd4
0x19643d90: at turnstile_block+0x3c4
0x19643de0: at rw_enter+0x16c
0x19643e30: at sysctl_lock+0x50
0x19643e40: at sys___sysctl+0xa8
0x19643eb0: at syscall+0x368
0x19643f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x307bb080
trace: pid 17952 lid 17952 at 0x198c7cc0
0x198c7d20: at cpu_switchto+0x28
0x198c7d30: at mi_switch+0x284
0x198c7d70: at sleepq_block+0xd4
0x198c7d90: at turnstile_block+0x3c4
0x198c7de0: at rw_enter+0x16c
0x198c7e30: at sysctl_lock+0x50
0x198c7e40: at sys___sysctl+0xa8
0x198c7eb0: at syscall+0x368
0x198c7f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x3868e680
trace: pid 18222 lid 18222 at 0x20ceecc0
0x20ceed20: at cpu_switchto+0x28
0x20ceed30: at mi_switch+0x284
0x20ceed70: at sleepq_block+0xd4
0x20ceed90: at turnstile_block+0x3c4
0x20ceede0: at rw_enter+0x16c
0x20ceee30: at sysctl_lock+0x50
0x20ceee40: at sys___sysctl+0xa8
0x20ceeeb0: at syscall+0x368
0x20ceef20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x38708cc0
trace: pid 3263 lid 3263 at 0x20197cc0
0x20197d20: at cpu_switchto+0x28
0x20197d30: at mi_switch+0x284
0x20197d70: at sleepq_block+0xd4
0x20197d90: at turnstile_block+0x3c4
0x20197de0: at rw_enter+0x16c
0x20197e30: at sysctl_lock+0x50
0x20197e40: at sys___sysctl+0xa8
0x20197eb0: at syscall+0x368
0x20197f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a0x3878e400
0x10003de0: at zsc_intr_hard+0x74
0x10003e00: at zshard+0x18
0x10003e10: at intr_deliver+0xe0
0x10003e50: at pic_do_pending_int+0x1ac
0x10003ea0: at splx+0x5c
0x10003eb0: at lockdebug_barrier+0x188
0x10003ed0: at idle_loop+0x140
0x10003f20: at cpu_lwp_bootstrap+0xc
saved LR(0xfb3f6279) is invalid.
db{0}> bt/a 0x388eba00
trace: pid 10196 lid 10196 at 0x208b9cc0
0x208b9d20: at cpu_switchto+0x28
0x208b9d30: at mi_switch+0x284
0x208b9d70: at sleepq_block+0xd4
0x208b9d90: at turnstile_block+0x3c4
0x208b9de0: at rw_enter+0x16c
0x208b9e30: at sysctl_lock+0x50
0x208b9e40: at sys___sysctl+0xa8
0x208b9eb0: at syscall+0x368
0x208b9f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x3894b080
trace: pid 20422 lid 20422 at 0x20b2acc0
0x20b2ad20: at cpu_switchto+0x28
0x20b2ad30: at mi_switch+0x284
0x20b2ad70: at sleepq_block+0xd4
0x20b2ad90: at turnstile_block+0x3c4
0x20b2ade0: at rw_enter+0x16c
0x20b2ae30: at sysctl_lock+0x50
0x20b2ae40: at sys___sysctl+0xa8
0x20b2aeb0: at syscall+0x368
0x20b2af20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x38f5a100
trace: pid 8920 lid 8920 at 0x20a52cc0
0x20a52d20: at cpu_switchto+0x28
0x20a52d30: at mi_switch+0x284
0x20a52d70: at sleepq_block+0xd4
0x20a52d90: at turnstile_block+0x3c4
0x20a52de0: at rw_enter+0x16c
0x20a52e30: at sysctl_lock+0x50
0x20a52e40: at sys___sysctl+0xa8
0x20a52eb0: at syscall+0x368
0x20a52f20: user SC trap #202 by 0xfdda0180: srr1=0xd032
r1=0xffffe770 cr=0x84000488 xer=0 ctr=0xfdda0178
db{0}> bt/a 0x5f8f0700
trace: pid 0 lid 19 at 0x10047e00
0x10047e40: at frag6_fasttimo+0x2c
0x10047e50: at pffasttimo+0x60
0x10047e70: at callout_softclock+0x10c
0x10047eb0: at softint_dispatch+0x140
0x10047f20: at softint_fast_dispatch+0xdc
saved LR(0xff3ffb79) is invalid.
db{0}>
Home |
Main Index |
Thread Index |
Old Index