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: Fri, 19 Sep 2008 16:27:39 -0400

 --pgp-sign-Multipart_Fri_Sep_19_16:26:58_2008-1
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 FYI, a straight 'dd if=3D/dev/rld0a of=3D/dev/null bs=3D2m' eventually
 (after about 10-20 seconds) triggers what looks like the same panic:
 
 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  :                  1 last held:                  1
 current lwp  : 0x00000000d1f01d20 last held: 0x00000000d1f01d20
 last locked  : 0x00000000c05dffe6 unlocked : 0x00000000c05dffb5
 owner field  : 0x0000000000010600 wait/spin:                0/1
 
 panic: LOCKDEBUG
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c05ae40c cs 8 eflags 246 cr2 80537c8 ilevel 6
 Stopped in pid 578.1 (dd) at    netbsd:breakpoint+0x4:  popl    %ebp
 db{1}> x/I 0x00000000c05dffe6
 netbsd:cbufpool_ctor+0x46:      addl    $0x14,%esp
 db{1}> x/I 0x00000000c05dffb5
 netbsd:cbufpool_ctor+0x15:      movl    $0x1,0(%esp)
 db{1}> trace
 breakpoint(c0b09eef,d1cfb548,c3247800,c04e51cf,6,1,0,0,d1cfb548,8) at netbs=
 d:breakpoint+0x4
 panic(c0aabc9c,c0aa7493,c08872d0,c0aabcb5,b5dc,1000001,6,0,0,c0bd81b4) at n=
 etbsd:panic+0x1b8
 lockdebug_abort1(c0aabcb5,1,0,0,c0bf5080,c0bf508c,d1cfb5ac,c0848b06,c0bf508=
 0,c0bd5a54) at netbsd:lockdebug_abort1+0xbb
 mutex_vector_enter(c0bd81b4,c04e3a2c,0,c0bd80c0,c0bd80c0,20,d1cfb65c,c04e38=
 dc,c0bd80c0,0) at netbsd:mutex_vector_enter+0x437
 pool_cache_invalidate(c0bd80c0,0,d1cfb65c,c04dea35,fc,bd2928,c0bd5a54,0,c04=
 d776f,d1f01d20) at netbsd:pool_cache_invalidate+0x20
 pool_reclaim(c0bd80c0,c04d776f,0,0,c0bd819c,c0bd2928,d1cfb6ac,c04d7798,c0bd=
 819c,c0bd80c0) at netbsd:pool_reclaim+0x4c
 pool_reclaim_callback(c0bd819c,c0bd80c0,0,c04b2672,c0bd288e,34,0,0,c8aca2b4=
 ,c0bd2880) at netbsd:pool_reclaim_callback+0x25
 callback_run_roundrobin(c0bd2928,0,20000,d1cfb708,0,ffffffff,ffffffff,20000=
 ,e01727,2) at netbsd:callback_run_roundrobin+0x48
 uvm_map_prepare(c0bd2880,c31da000,20000,0,ffffffff,ffffffff,20000,e01727,d1=
 cfb740,c0bd29c4) at netbsd:uvm_map_prepare+0x19b
 uvm_map(c0bd2880,d1cfb7a4,20000,0,ffffffff,ffffffff,20000,e01727,c0bd29c6,c=
 04e0e5c) at netbsd:uvm_map+0xbd
 km_vacache_alloc(c0bd2950,2,d1cfb7dc,c0848b06,2,cc4cc074,d1cfb7ec,c3247918,=
 0,c0bd29c4) at netbsd:km_vacache_alloc+0x64
 pool_grow(c0bd29c4,cc4cc074,d1cfb81c,c0848b06,d1832d80,c0bd29c4,6,c3247918,=
 cc4cc074,0) at netbsd:pool_grow+0x2b
 pool_get(c0bd2950,2,6,cc4cc074,0,cc4cc000,cc4cc074,c04b2672,cc4cc076,c04e0e=
 5c) at netbsd:pool_get+0x5b
 uvm_km_alloc_poolpage_cache(c0bd2880,0,d1cfb89c,c0848b06,2,cc4cc0f4,d1cfb8b=
 c,c3247918,cc4cc0f4,cc4cc074) at netbsd:uvm_km_alloc_poolpage_cache+0x4c
 pool_grow(cc4cc074,d1f01d20,6,cc4cc0f4,0,cc4cc074,cc4cc0f4,c04b2672,cc4cc0f=
 6,c04e1ab3) at netbsd:pool_grow+0x2b
 pool_get(cc4cc000,2,0,0,0,cc4cc000,96,d1cfb95c,6,cc4daf00) at netbsd:pool_g=
 et+0x5b
 pool_cache_get_slow(0,2,10,0,1,0,6,c084ac09,0,0) at netbsd:pool_cache_get_s=
 low+0x1ed
 pool_cache_get_paddr(cc4cc000,2,0,0,49f000,0,0,0,0,0) at netbsd:pool_cache_=
 get_paddr+0x180
 ld_ataraid_make_cbuf(49f000,0,cc4e0000,0,0,f0000049,d1870744,c32d5f64,d1870=
 6ae,0) at netbsd:ld_ataraid_make_cbuf+0x38
 ld_ataraid_start_raid0(d187064c,c3443564,d1cfba5c,10000,c32dda00,d18706ac,d=
 1870650,0,c3443564,d187064c) at netbsd:ld_ataraid_start_raid0+0x1be
 ldstart(6,c3443564,0,0,c04b51db,101,0,d1870db8,0,c32dda00) at netbsd:ldstar=
 t+0x62
 ldstrategy(c3443564,10000,10000,2,0,d1870da4,d1870db8,d1870dbc,8065000,d1f0=
 1d20) at netbsd:ldstrategy+0x165
 physio(c01f4b50,0,4500,100000,c01f3950,d1cfbc7c,d1cfbb5c,c04d8200,4500,d1cf=
 bc7c) at netbsd:physio+0x251
 ldread(4500,d1cfbc7c,0,c0524964,0,d1cfbc7c,6,d1cfbc04,20001,d1b0a680) at ne=
 tbsd:ldread+0x38
 cdev_read(4500,d1cfbc7c,0,1,d1f01d20,10,6,1,d1b0a720,d180d000) at netbsd:cd=
 ev_read+0x70
 spec_read(d1cfbc04,d1f01d20,c0888a80,d1b0a680,1,20001,d1cfbc1c,c052fd28,c08=
 88540,d1b0a680) at netbsd:spec_read+0x234
 VOP_READ(d1b0a680,d1cfbc7c,0,cc4c6c00,cc4c4700,0,d1cfbc6c,16,200000,8065000=
 ) at netbsd:VOP_READ+0x6c
 vn_read(d1e1ea80,d1e1ea80,d1cfbc7c,cc4c6c00,1,d1e76524,cc4c4700,c04b26fa,8,=
 c04f7839) at netbsd:vn_read+0x93
 dofileread(3,d1e1ea80,8065000,200000,d1e1ea80,1,d1cfbd28,d1cfbd48,0,d1f01d2=
 0) at netbsd:dofileread+0x75
 sys_read(d1f01d20,d1cfbd00,d1cfbd28,d1cfbd40,c059ccef,d1841120,1,3,8065000,=
 200000) at netbsd:sys_read+0x6f
 syscall(d1cfbd48,b3,2000ab,bfbf001f,bfbf001f,0,200000,bfbfe418,0,0) at netb=
 sd:syscall+0xab
 db{1}> ps /l
  PID         LID S     FLAGS       STRUCT LWP *               NAME WAIT
 >578       >   1 7         4           d1f01d20                 dd
  730           1 3        84           d1e74380                ksh pause
  310           1 3        84           d1e745e0                ksh pause
  315           1 7         4           d1e74840              xterm
  281           1 3        84           d1e74aa0               rshd select
  299           1 3        84           d1e74d00              getty ttyraw
  297           1 3        84           d1e17100              getty ttyraw
  291           1 3        84           d1e17360              getty ttyraw
  304           1 3        84           d1e175c0              getty ttyraw
  287           1 3        84           d1e17820              getty ttyraw
  293           1 3        84           d1e17a80              getty ttyraw
  280           1 3        84           d1e17ce0              getty ttyraw
  296           1 3        84           d1847580              getty ttyraw
  302           1 3        84           d18477e0              getty ttyraw
  268           1 3        84           d19310e0               cron nanoslp
  279           1 3        84           d1847320              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 1       204           cc4d29c0          softclk/1
               14 1       204           cc4d2c20          softbio/1
               13 1       204           cc4ca020          softnet/1
               12 1       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 7       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           c0b359e0            swapper schedule
 db{1}>=20
 
 
 (since this was just a read operation there was nothing dirty in the
 buffer cache, and so a reboot did _not_ hang on syncing disks)
 
 
 --=20
                                                Greg A. Woods
                                                Planix, Inc.
 
 <woods%planix.com@localhost>     +1 416 489-5852 x122     
http://www.planix.com/
 
 --pgp-sign-Multipart_Fri_Sep_19_16:26:58_2008-1
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: PGPfreeware 5.0i for non-commercial use
 MessageID: pmUWCtzEd5ke94uK3VCNmspsYQYz7Mmd
 
 iQA/AwUBSNQLO2Z9cbd4v/R/EQIJKACgq3mv/VyQQWlrJlx6dZ/zaXKueHUAoP3C
 XyZToNwhZFh33zNix8OwQKSA
 =Yrou
 -----END PGP SIGNATURE-----
 
 --pgp-sign-Multipart_Fri_Sep_19_16:26:58_2008-1--
 


Home | Main Index | Thread Index | Old Index