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 RP <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 14:38:05 -0400
--pgp-sign-Multipart_Wed_Sep_17_14:38:04_2008-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
At Wed, 17 Sep 2008 15:00:08 +0000 (UTC), Juan RP wrote:
Subject: Re: kern/38273 panic: LOCKDEBUG, "lockdebug_barrier: spin lock hel=
d", from ld_ataraid_start_raid0()
>=20
> please try this patch. I've built a NetBSD/amd64 full release with
> src on RAID0 and obj/destdir/tools on RAID1 with ataraid(4)
> successfully with all debugging options enabled.
Well now at least it immediately dumps during boot:
ataraid0: found 1 RAID volume
ld0 at ataraid0 vendtype 1 unit 0: Adaptec ATA RAID-1 array
ld0: ld_ataraid_attach(): ld unit 0 (ld->sc_dv =3D 0xd187064c)
ld0: ldattach(): unit 0
ld0: 186 GB, 24321 cyl, 255 head, 63 sec, 512 bytes/sect x 390721536 sectors
rnd: ld0 attached as an entropy source (collecting)
Mutex error: mutex_vector_exit: exiting unheld spin mutex
lock address : 0x00000000d18706ac type : spin
initialized : 0x00000000c01f46f9
shared holds : 0 exclusive: 0
shares wanted: 0 exclusive: 0
current cpu : 1 last held: 1
current lwp : 0x00000000c0b349e0 last held: 000000000000000000
last locked : 0x00000000c01f411b unlocked : 0x00000000c01f4160
owner field : 0x0000000000000600 wait/spin: 0/1
panic: LOCKDEBUG
Begin traceback...
copyright(d1832202,0,0,c0bf4350,d1832200,d1832198,d18706ac,c0b34724,0,c01f4=
11b) at 0xc0aa6f11
?(d18321c1,0,0,c0b34c2c,d1832280,d1832218,d187068c,c0b34730,c0b349e0,c01f43=
82) at 0
End traceback...
fatal breakpoint trap in supervisor mode
trap type 1 code 0 eip c05ae38c cs 8 eflags 246 cr2 0 ilevel 6
Stopped in pid 0.1 (system) at netbsd:breakpoint+0x4: popl %ebp
db{1}>=20
db{1}> trace
breakpoint(c0aac84e,1,fffe,c0b09d65,c04e4e50,1,0,0,c0d296f4,8) at netbsd:br=
eakpoint+0x4
panic(c0aab734,c0aa6f2b,c0886a15,c0aa6f11,c0aa6f11,1886a15,6,d18706ac,0,cc4=
cc000) at netbsd:panic+0x1b8
lockdebug_abort1(c0aa6f11,1,c0886a15,c0aa6f11,cc4cc0ec,c31f7e8c,c0d29758,c0=
4b2754,d18706ac,c0886a15) at netbsd:lockdebug_abort1+0xbb
mutex_abort(d18706ac,c0886a15,c0aa6f11,c04b25c2,d18706ac,0,c0d29768,c05dff3=
5,d18706ac,c31f7e8c) at netbsd:mutex_abort+0x2e
mutex_vector_exit(d18706ac,c31f7e8c,c0d297a8,c04e1a48,d187064c,c31f7e8c,2,0=
,d0e80328,c0bd1e00) at netbsd:mutex_vector_exit+0x1c4
cbufpool_ctor(d187064c,c31f7e8c,2,0,d0e80328,c0bd1e00,c0d297a8,c0d297d8,6,c=
c4daf00) at netbsd:cbufpool_ctor+0x15
pool_cache_get_slow(0,2,c0d297d8,0,1,0,6,c084a799,0,0) at netbsd:pool_cache=
_get_slow+0x218
pool_cache_get_paddr(cc4cc000,2,0,0,0,0,0,0,200,0) at netbsd:pool_cache_get=
_paddr+0x180
ld_ataraid_make_cbuf(0,0,d078e000,200,8,cc4c3df4,d1870744,c32d4f64,d18321c0=
,d18706ac) at netbsd:ld_ataraid_make_cbuf+0x38
ld_ataraid_start_raid0(d187064c,c31e7a14,c0d298d8,c0848696,c0bf85c0,d18706a=
c,d1870650,0,c31e7a14,d187064c) at netbsd:ld_ataraid_start_raid0+0x1be
ldstart(6,0,c0d29918,c04ddfda,8,1,0,c051cd51,0,c32dca00) at netbsd:ldstart+=
0x6d
ldstrategy(c31e7a14,c0b349e0,c0d29958,c0848696,0,c0d29a24,c0d29968,c05b1579=
,c01f4b70,c32dca00) at netbsd:ldstrategy+0x165
disk_read_sectors(c01f4b70,c32dca00,c31e7a14,0,1,c32dca00,c0d299f8,c05b15bb=
,c051cd7d,c0b349e0) at netbsd:disk_read_sectors+0x4b
read_sector(c051cd7d,c0b349e0,0,c0bfc320,0,400,c0bfc320,c04b264a,8,c05b1d20=
) at netbsd:read_sector+0x29
scan_mbr(400,0,c04d848d,0,0,0,c0d29a38,0,d0874340,c32dca00) at netbsd:scan_=
mbr+0x2b
readdisklabel(3,c01f4b70,c32dca00,c32dc800,d187068c,3,0,c086d800,1303,c0b34=
9e0) at netbsd:readdisklabel+0xdf
ldopen(1303,1,6000,c0b349e0,6000,1,6,d1843a10,d0ce8e20,0) at netbsd:ldopen+=
0x15a
bdev_open(1303,1,6000,c0b349e0,0,0,c0bfc460,c04b264a,c0b349e0,1303) at netb=
sd:bdev_open+0x99
spec_open(c0d29b24,20002,c0d29b38,c052fcb8,d1843a10,c0887fa0,d1843a10,1,fff=
fffff,0) at netbsd:spec_open+0x2c8
VOP_OPEN(d1843a10,1,ffffffff,c04b607d,d180de10,0,1303,d1843a10,0,0) at netb=
sd:VOP_OPEN+0x6c
dkwedge_discover(d1870650,c01f4b50,1,c01f4af0,ff,3f,200,1749f000,0,2) at ne=
tbsd:dkwedge_discover+0xfc
ldattach(d187064c,c05df630,0,d187064c,c0ac6514,0,6,c05dff20,c05dff10,d18706=
4c) at netbsd:ldattach+0x333
ld_ataraid_attach(cc4bd6b4,d180de10,c32d4f00,c0d29c74,c32d4f00,d180dc20,d18=
0de10,c32d4f00,c0d29c74,cc4bd6b4) at netbsd:ld_ataraid_attach+0x25f
config_attach_loc(cc4bd6b4,c0b20ec8,c0d29c74,c32d4f00,c05dcba0,c04d4180,c0d=
29c7a,615872de,cc4bd6b4,1) at netbsd:config_attach_loc+0x173
ataraid_attach(0,cc4bd6b4,0,d0e80938,0,d0e80938,c0d29cc8,c05dce3c,c0b38dac,=
c0b38d80) at netbsd:ataraid_attach+0x87
config_attach_pseudo(c0b38dac,c0b38d80,0,28,2a,c0490920,c0d29ce8,c04d4759,0=
,c0bd3eb0) at netbsd:config_attach_pseudo+0x35
ata_raid_finalize(0,c0bd3eb0,0,0,0,c0490920,c0d29d38,c0490fb1,0,0) at netbs=
d:ata_raid_finalize+0x4c
config_finalize(0,0,14,0,0,c0490920,0,0,c0bf13c4,0) at netbsd:config_finali=
ze+0x99
main(0,c01002cd,0,0,0,0,0,0,0,0) at netbsd:main+0x271
db{1}>=20
db{1}> x/I 0x00000000c01f411b
netbsd:ldstart+0x1b: testl %esi,%esi
db{1}> x/I 0x00000000c01f4160
netbsd:ldstart+0x60: movl %esi,0x4(%esp)
db{1}>=20
=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_14:38:04_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: JsfNEbL2eM6MzzgvB30VL6IL0/wHwt3j
iQA/AwUBSNFOjGZ9cbd4v/R/EQJfSACgtqJ2tXPxFHU9UK2LYNSaMJjKHh0AoMc0
C3CuTldkbucaSIbOfb/z6cAp
=9cdV
-----END PGP SIGNATURE-----
--pgp-sign-Multipart_Wed_Sep_17_14:38:04_2008-1--
Home |
Main Index |
Thread Index |
Old Index