NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38273: "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: 
Subject: Re: kern/38273: "lockdebug_barrier: spin lock held" from 
ld_ataraid_start_raid0()
Date: Thu, 27 Mar 2008 13:48:43 -0400

 It doesn't look like there's been any change in this with 4.99.58 as of
 yesterday's sources (2008/03/26):
 
 Mutex error: lockdebug_barrier: spin lock held
 
 lock address : 0x00000000c381cce0 type     :               spin
 shared holds :                  0 exclusive:                  1
 shares wanted:                  0 exclusive:                  0
 current cpu  :                  0 last held:                  0
 current lwp  : 0x00000000cdf08680 last held: 0x00000000cdf08680
 last locked  : 0x00000000c01f0b41 unlocked : 0x00000000c01f0ca8
 initialized  : 0x00000000c01ef4f5
 owner field  : 0x0000000000010500 wait/spin:                0/1
 
 panic: LOCKDEBUG
 Stopped in pid 1428.1 (newfs) at        netbsd:breakpoint+0x4:  popl    %ebp
 db{0}> x/I 0x00000000c01f0b41
 netbsd:ldstart+0x16:    cmpl    $0,0xc(%ebp)
 db{0}> x/I 0x00000000c01ef4f5
 netbsd:ldattach+0x29:   movl    0x8(%ebp),%eax
 db{0}> x/I 0x00000000c381cce0
 0xc381cce0:     addl    $-0x1ffffefb,%eax
 db{0}> whatis 0x00000000c381cce0
 0xc381cce0 is 0xc316c000+7015648 from VMMAP 0xc0d346e0
 0xc381cce0 is 0xc3749000+867552 from VMMAP 0xc0d35e60
 db{0}> trace
 breakpoint(c0a2d30f,cdf4b848,c0c9b5c0,c05855cb,5) at netbsd:breakpoint+0x5
 panic(c0a2c4d0,c058556a,c0a2c2ee,c0a2c300,0) at netbsd:panic+0x164
 lockdebug_abort1(cda389c0,c0d63660,c0a2c2ee,c0a2c300,1) at 
netbsd:lockdebug_abort1+0x8d
 lockdebug_barrier(c0d56a00,1,0,c0c9b5c0,5) at netbsd:lockdebug_barrier+0x103
 mutex_vector_enter(cc875b88,c31881d4,1,1749efff,0) at 
netbsd:mutex_vector_enter+0x2d1
 ld_ataraid_start_raid0(c381cc00,c31881d4,cdf4b9fc,c01ef8c4,cdf4b905) at 
netbsd:ld_ataraid_start_raid0+0x50a
 ldstart(c381cc00,c31881d4,0,c054edde,0) at netbsd:ldstart+0x98
 ldstrategy(c31881d4,0,200,1,cdf4ba6c) at netbsd:ldstrategy+0x256
 physio(c01f08a9,0,4500,0,c01f14cc) at netbsd:physio+0x3c2
 ldwrite(4500,cdf4bc50,10,c054edde,0) at netbsd:ldwrite+0x38
 cdev_write(4500,cdf4bc50,10,c054eb4d,2) at netbsd:cdev_write+0x63
 spec_write(cdf4bbd0,0,0,cdf61180,cdeb6530) at netbsd:spec_write+0xd0
 ufsspec_write(cdf4bbd0,1864840,cdf4bbec,c05da0b9,cdc0f5ec) at 
netbsd:ufsspec_write+0x62
 VOP_WRITE(cdc0f5ec,cdf4bc50,10,cc864840,3) at netbsd:VOP_WRITE+0x70
 vn_write(cdea2580,cdf4bcbc,cdf4bc50,cc864840,0) at netbsd:vn_write+0x10b
 dofilewrite(4,cdea2580,bbbb5000,200,cdf4bcbc) at netbsd:dofilewrite+0x86
 sys_pwrite(cdf08680,cdf4bd04,cdf4bcfc,c082fc7d,cdf4bd07) at 
netbsd:sys_pwrite+0x109
 syscall(cdf4bd48,b3,ab,1f,1f) at netbsd:syscall+0x17b
 db{0}> ps
  PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
 >1428          1256     1428          0 2  0x4000    1            newfs
  1256           624     1256          0 2  0x4000    1              ksh     tty
  624            614      624       1000 2  0x4000    1              ksh   pause
  614            619      614       1000 2  0x4000    1            xterm  select
  619            261      261          0 2  0x4100    1             rshd  select
  285              1      285          0 2  0x4000    1            getty     tty
  280              1      280          0 2  0x4000    1            getty     tty
  287              1      287          0 2  0x4000    1            getty     tty
  268              1      268          0 2  0x4000    1            getty     tty
  275              1      275          0 2  0x4000    1            getty     tty
  292              1      292          0 2  0x4000    1            getty     tty
  277              1      277          0 2  0x4000    1            getty     tty
  283              1      283          0 2  0x4000    1            getty     tty
  286              1      286          0 2  0x4000    1            getty     tty
  282              1      282          0 2       0    1             cron nanoslp
  261              1      261          0 2       0    1            inetd  kqueue
  217              1      217         15 2   0x100    1             ntpd   pause
  156              1      156          0 2       0    1        mount_mfs  mfsidl
  114              1      114          0 2       0    1          syslogd  kqueue
  1                0        1          0 2  0x4001    1             init    wait
  0               -1        0          0 2 0x20002   36           system       *
 db{0}> reboot
 syncing disks... done
 rebooting...
 
 -- 
                                                Greg A. Woods
                                                Planix, Inc.
 
 <woods%planix.com@localhost>     +1 416 489-5852 x122     
http://www.planix.com/
 


Home | Main Index | Thread Index | Old Index