NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/38273 panic: LOCKDEBUG, "lockdebug_barrier: spin lock held", from ld_ataraid_start_raid0()
The following reply was made to PR kern/38273; it has been noted by GNATS.
From: "Greg A. Woods" <woods%planix.com@localhost>
To: NetBSD GNATS <gnats-bugs%NetBSD.org@localhost>
Cc: Juan Romero Pardines <xtraeme%gmail.com@localhost>
Subject: Re: kern/38273 panic: LOCKDEBUG, "lockdebug_barrier: spin lock held",
from ld_ataraid_start_raid0()
Date: Wed, 17 Sep 2008 16:15:13 -0400
--pgp-sign-Multipart_Wed_Sep_17_16:15:13_2008-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
At Wed, 17 Sep 2008 19:25:02 +0000 (UTC), Juan Romero Pardines wrote:
Subject: Re: kern/38273 panic: LOCKDEBUG, "lockdebug_barrier: spin lock hel=
d", from ld_ataraid_start_raid0()
>=20
> Do you have any local changes in ld.c? I'd like to know why the mutex ha=
sn't
> been acquired in ldstart().
OK, after reverting Juergen's changes to ld.c and back to having just
your changes to ld_ataraid.c, I'm back to booting but then getting a
panic (the same one?) while running "newfs /dev/rld0a":
Mutex error: lockdebug_barrier: spin lock held
lock address : 0x00000000d18706ac type : spin
initialized : 0x00000000c01f46d9
shared holds : 0 exclusive: 1
shares wanted: 0 exclusive: 0
current cpu : 0 last held: 0
current lwp : 0x00000000d1f00d20 last held: 0x00000000d1f00d20
last locked : 0x00000000c05dff28 unlocked : 0x00000000c05dff15
owner field : 0x0000000000010600 wait/spin: 0/1
panic: LOCKDEBUG
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c05ae36c cs 8 eflags 246 cr2 d1c19000 ilevel 6
Stopped in pid 862.1 (newfs) at netbsd:breakpoint+0x4: popl %ebp
db{0}> trace
breakpoint(c0b097af,d1cfb538,c0b37940,c04e50ff,6,1,0,0,d1cfb538,8) at netbs=
d:breakpoint+0x4
panic(c0aab714,c0aa6f0b,c0886e50,c0aab72d,b5cc,1000001,6,0,0,c0bd71b4) at n=
etbsd:panic+0x1b8
lockdebug_abort1(c0aab72d,1,0,0,c0bf4080,c0bf408c,d1cfb59c,c0848676,c0bf408=
0,c0bd4a54) at netbsd:lockdebug_abort1+0xbb
mutex_vector_enter(c0bd71b4,c04e395c,0,c0bd70c0,c0bd70c0,20,d1cfb64c,c04e38=
0c,c0bd70c0,0) at netbsd:mutex_vector_enter+0x437
pool_cache_invalidate(c0bd70c0,0,d1cfb64c,c04de965,59,bd1928,c0bd4a54,0,c04=
d769f,d1f00d20) at netbsd:pool_cache_invalidate+0x20
pool_reclaim(c0bd70c0,c04d769f,0,0,c0bd719c,c0bd1928,d1cfb69c,c04d76c8,c0bd=
719c,c0bd70c0) at netbsd:pool_reclaim+0x4c
pool_reclaim_callback(c0bd719c,c0bd70c0,0,c04b25a2,c0bd188e,34,0,0,c90a8260=
,c0bd1880) at netbsd:pool_reclaim_callback+0x25
callback_run_roundrobin(c0bd1928,0,20000,d1cfb6f8,0,ffffffff,ffffffff,20000=
,e01727,2) at netbsd:callback_run_roundrobin+0x48
uvm_map_prepare(c0bd1880,c31d9000,20000,0,ffffffff,ffffffff,20000,e01727,d1=
cfb730,c0bd19c4) at netbsd:uvm_map_prepare+0x19b
uvm_map(c0bd1880,d1cfb794,20000,0,ffffffff,ffffffff,20000,e01727,c0bd19c6,c=
04e0d8c) at netbsd:uvm_map+0xbd
km_vacache_alloc(c0bd1950,2,d1cfb7cc,c0848676,2,cc4cc074,d1cfb7dc,c0b37a58,=
0,c0bd19c4) at netbsd:km_vacache_alloc+0x64
pool_grow(c0bd19c4,cc4cc074,d1cfb80c,c0848676,d1831d80,c0bd19c4,6,c0b37a58,=
cc4cc074,0) at netbsd:pool_grow+0x2b
pool_get(c0bd1950,2,6,cc4cc074,0,cc4cc000,cc4cc074,c04b25a2,cc4cc076,c04e0d=
8c) at netbsd:pool_get+0x5b
uvm_km_alloc_poolpage_cache(c0bd1880,0,d1cfb88c,c0848676,2,cc4cc0f4,d1cfb8a=
c,c0b37a58,cc4cc0f4,cc4cc074) at netbsd:uvm_km_alloc_poolpage_cache+0x4c
pool_grow(cc4cc074,d1f00d20,6,cc4cc0f4,0,cc4cc074,cc4cc0f4,c04b25a2,cc4cc0f=
6,c04e19e3) at netbsd:pool_grow+0x2b
pool_get(cc4cc000,2,0,0,cc4cc180,6,d1cfb94c,d1cfb94c,6,cc4cc180) at netbsd:=
pool_get+0x5b
pool_cache_get_slow(0,2,d1cf0010,0,1,0,6,c084a779,0,0) at netbsd:pool_cache=
_get_slow+0x1ed
pool_cache_get_paddr(cc4cc000,2,0,0,9c9f000,0,0,0,0,0) at netbsd:pool_cache=
_get_paddr+0x180
ld_ataraid_make_cbuf(9c9f000,0,cc504000,0,0,efe009c9,d1870744,c32d4f64,d187=
06ae,0) at netbsd:ld_ataraid_make_cbuf+0x38
ld_ataraid_start_raid0(d187064c,c31e84b4,d1cfba4c,10000,c32dca00,d18706ac,d=
1870650,0,c31e84b4,d187064c) at netbsd:ld_ataraid_start_raid0+0x1be
ldstart(6,c31e84b4,0,0,c04b510b,101,0,d1870db8,0,c32dca00) at netbsd:ldstar=
t+0x62
ldstrategy(c31e84b4,10000,10000,1,0,d1870da4,d1870db8,d1870dbc,bbbdd000,d1f=
00d20) at netbsd:ldstrategy+0x165
physio(c01f4b50,0,4500,0,c01f3950,d1cfbc5c,d1cfbb4c,c04d8090,4500,d1cfbc5c)=
at netbsd:physio+0x251
ldwrite(4500,d1cfbc5c,10,8,d1b0a720,d1cfbc5c,6,d1f00d20,d1cfbbe4,d1b0a680) =
at netbsd:ldwrite+0x35
cdev_write(4500,d1cfbc5c,10,2,d1b0a720,d180c000,d1cfbb8c,c0524857,d1b0a720,=
1) at netbsd:cdev_write+0x70
spec_write(d1cfbbe4,40000,c0888600,d1b0a680,2,20002,d1cfbbfc,c052fc98,c0888=
100,d1b0a680) at netbsd:spec_write+0xa0
VOP_WRITE(d1b0a680,d1cfbc5c,10,cc4c6b40,8,d1f00d20,0,16,40000,bbbbd000) at =
netbsd:VOP_WRITE+0x6c
vn_write(d1e1da00,d1cfbcc4,d1cfbc5c,cc4c6b40,0,1,d1cfbc8c,c0537f7c,d1cfbc6c=
,d1e1db00) at netbsd:vn_write+0xb1
dofilewrite(4,d1e1da00,bbbbd000,40000,d1cfbcc4,0,d1cfbd28,c04de072,0,0) at =
netbsd:dofilewrite+0x75
sys_pwrite(d1f00d20,d1cfbd00,d1cfbd28,d1cfbd40,c059cc5f,d1841120,1,4,bbbbd0=
00,40000) at netbsd:sys_pwrite+0xc7
syscall(d1cfbd48,b3,ab,45001f,bfbf001f,0,9c9eee0,bfbfc8b8,0,0) at netbsd:sy=
scall+0xab
db{0}> ps /l
PID LID S FLAGS STRUCT LWP * NAME WAIT
>862 > 1 7 4 d1f00d20 newfs
721 1 3 84 d1e74380 ksh pause
295 1 3 84 d1e745e0 ksh pause
296 1 3 84 d1e74840 xterm select
303 1 3 84 d1e74aa0 rshd select
299 1 3 84 d1e74d00 getty ttyraw
297 1 3 84 d1e63100 getty ttyraw
291 1 3 84 d1e63360 getty ttyraw
304 1 3 84 d1e635c0 getty ttyraw
302 1 3 84 d1e63820 getty ttyraw
293 1 3 84 d1e63a80 getty ttyraw
280 1 3 84 d1e63ce0 getty ttyraw
294 1 3 84 d1847580 getty ttyraw
287 1 3 84 d18477e0 getty ttyraw
268 1 3 84 d1931a60 cron nanoslp
279 1 3 84 d19310e0 inetd kqueue
237 1 3 84 d1931800 ntpd pause
156 1 3 84 d1931cc0 mount_mfs mfsidl
114 1 3 84 d18470c0 syslogd kqueue
1 1 3 84 cc4d97c0 init wait
0 45 3 204 d19315a0 physiod physiod
44 3 204 d1847a40 vmem_rehash vmem_reh=
ash
43 3 204 d1847ca0 aiodoned aiodoned
42 3 204 cc4d90a0 ioflush syncer
41 3 204 cc4d9300 pgdaemon pgdaemon
40 3 204 cc4d9560 cryptoret crypto_w=
ait
39 3 204 cc4d8a00 atapibus0 sccomp
38 3 204 cc4d8c60 usb2 usbevt
37 3 204 cc4d5060 usb1 usbevt
36 3 204 cc4d82e0 usbtask-dr usbtsk
35 3 204 cc4d8080 usbtask-hc usbtsk
34 3 204 cc4d9c80 usb0 usbevt
33 3 204 cc4d9a20 acpitz0 acpitz0
24 3 204 cc4d52c0 iic0 iicintr
23 3 204 cc4d5520 atabus3 atath
22 3 204 cc4d5780 atabus2 atath
21 3 204 cc4d59e0 atabus1 atath
20 3 204 cc4d5c40 atabus0 atath
19 3 204 cc4d2040 pms0 pmsreset
18 3 204 cc4d22a0 apm1 apmev
17 3 204 cc4d2500 xcall/1 xcall
16 1 204 cc4d2760 softser/1
15 7 204 cc4d29c0 softclk/1
14 1 204 cc4d2c20 softbio/1
13 1 204 cc4ca020 softnet/1
12 7 205 cc4ca280 idle/1
11 3 204 cc4ca4e0 sysmon smtaskq
10 3 204 cc4ca740 pmfevent pmfevent
9 3 204 cc4ca9a0 cachegc cachegc
8 3 204 cc4cac00 vrele vrele
7 3 204 cc4c7000 xcall/0 xcall
6 1 204 cc4c7260 softser/0
5 1 204 cc4c74c0 softclk/0
4 1 204 cc4c7720 softbio/0
3 1 204 cc4c7980 softnet/0
2 1 205 cc4c7be0 idle/0
1 3 204 c0b349e0 swapper schedule
db{0}> x /I 0x00000000c05dff28
netbsd:cbufpool_ctor+0x28: xorl %eax,%eax
db{0}> x /I 0x00000000d1f00d20
0xd1f00d20: addb %al,0(%eax)
db{0}> x /I 0x00000000c05dff15
netbsd:cbufpool_ctor+0x15: movl 0xc(%ebp),%eax
db{0}>=20
--=20
Greg A. Woods
Planix, Inc.
<woods%planix.com@localhost> +1 416 489-5852 x122
http://www.planix.com/
--pgp-sign-Multipart_Wed_Sep_17_16:15:13_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: SGfpa7pIspU5Nl55jDLMggx7kV4IcjlC
iQA/AwUBSNFlUWZ9cbd4v/R/EQINxwCg3ZLhhdVmcqQ0Yg+kBFWaJQnwbwQAn3Kw
A6xuGpYWrpJyfWxGE6JMDlNR
=Trrt
-----END PGP SIGNATURE-----
--pgp-sign-Multipart_Wed_Sep_17_16:15:13_2008-1--
Home |
Main Index |
Thread Index |
Old Index