NetBSD-Bugs archive

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

Re: kern/38375: LOCKDEBUG panic with 4.99.58 SMP kernels



The following reply was made to PR kern/38375; it has been noted by GNATS.

From: Havard Eidnes <he%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, ad%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/38375: LOCKDEBUG panic with 4.99.58 SMP kernels
Date: Sun, 06 Apr 2008 18:26:02 +0200 (CEST)

 Hi,
 
 here's another instance of the problem, FWIW.
 
 BTW, I don't quite understand why systat would want to read from
 the console -- it wasn't run on the console, but rather on a pty
 in an xterm.
 
 
 NetBSD/sparc64 (torbidinsu.urc.uninett.no) (console)
 
 login: Kernel lock error: _kernel_unlock: assertion failed: nlocks <= 0
 
 lock address : 0x00000000018d3a00 type     :               spin
 shared holds :                  0 exclusive:                  0
 shares wanted:                  0 exclusive:                  0
 current cpu  :                  3 last held:                  0
 current lwp  : 0x00000000111a7540 last held: 000000000000000000
 last locked  : 0x000000000143e364 unlocked : 0x000000000143e380
 initialized  : 0x00000000012b1800
 curcpu holds :                  0 wanted by: 000000000000000000
 
 panic: LOCKDEBUG
 Stopped in pid 497.1 (systat) at        netbsd:cpu_Debugger+0x4:        nop
 db{3}> x/i 0x000000000143e364
 netbsd:intr_biglock_wrapper+0x4:        call            netbsd:_kernel_lock
 db{3}> x/i 0x000000000143e380
 netbsd:intr_biglock_wrapper+0x20:       call            netbsd:_kernel_unlock
 db{3}> ps/l
  PID         LID S     FLAGS       STRUCT LWP *               NAME WAIT
  479           1 3        84            f9ea720             pickup select
 >497       >   1 7  a0000004           111a7540             systat
  403           1 3        80           111a78c0               tcsh pause
  408           1 3        84            f9e8a80              xterm select
  447           1 3        80           10fbc020               tcsh pause
  430           1 3        84           10fbce20               sshd select
  427           1 3        80           10fbcaa0               sshd netio
  333           1 3        84           10fbc3a0           rtorrent select
  377           1 3        80           10fbc720               tcsh pause
  411           1 2         4           10fbd8a0       screen-4.0.2
  394           1 3        80           10fbd520               tcsh tty
  387           1 3        84           10fbdc20              xterm select
  304           1 3        80           10d56e00               tcsh pause
  393           1 3        80           10d56000               sshd select
  399           1 3        80            f9eaaa0               sshd netio
  378           1 3        84           10d56380               qmgr select
  388           1 3        80           10d57180              getty tty
  375           1 3        84           10d57500               cron nanoslp
  358           1 3        80           10d57880              inetd kqueue
  349           1 3        84            f9e8e00             master select
  263           1 3        80            f9ea020               sshd select
  246           1 3        84            f9e8000               ntpd pause
  165           1 3        84           10d57c00       lfs_cleanerd segment
  156           1 3        80           10b06040          mount_mfs mfsidl
  114           1 3        84           10b07c40            syslogd kqueue
  1             1 3        80            f9ebc20               init wait
  0            46 3       204           10b063c0         lfs_writer lfswriter
               45 3       204           10b07540            physiod physiod
               44 3       204            f9eae20        vmem_rehash vmem_rehash
               43 3       204            f9eb1a0           aiodoned aiodoned
               42 3       204            f9eb520            ioflush syncer
               41 3       204            f9eb8a0           pgdaemon pgdaemon
               40 3       204            f9e9180          cryptoret crypto_wait
               31 3       204            f9e9500           scsibus1 sccomp
               30 3       204            f9e9880           scsibus0 sccomp
               29 2       204            f9e9c00            envctrl
               28 3       204            f9dc040             sysmon smtaskq
               27 3  80000204            f9dc3c0            xcall/3 xcall
               26 1  80000204            f9dc740          softser/3
               25 1  80000204            f9dcac0          softclk/3
               24 1  80000204            f9dce40          softbio/3
               23 1  80000204            f9dd1c0          softnet/3
               22 1  80000205            f9dd540             idle/3
               21 3  80000204            f9dd8c0            xcall/2 xcall
               20 1  80000204            f9ddc40          softser/2
               19 1  80000204            f9d8020          softclk/2
               18 1  80000204            f9d83a0          softbio/2
               17 1  80000204            f9d8720          softnet/2
               16 7  a0000205            f9d8aa0             idle/2
               15 3  80000204            f9d8e20            xcall/1 xcall
               14 1  80000204            f9d91a0          softser/1
               13 1  80000204            f9d9520          softclk/1
               12 1  80000204            f9d98a0          softbio/1
               11 1  80000204            f9d9c20          softnet/1
               10 7  a0000205            f9ca000             idle/1
                9 3       204            f9ca380           pmfevent pmfevent
                8 3       204            f9ca700              vrele vrele
                7 3  80000204            f9caa80            xcall/0 xcall
                6 1  80000204            f9cae00          softser/0
                5 1  80000204            f9cb180          softclk/0
                4 1  80000204            f9cb500          softbio/0
                3 1  80000204            f9cb880          softnet/0
                2 7  a0000205            f9cbc00             idle/0
                1 3       204            181bce0            swapper schedule
 db{3}> tra
 lockdebug_abort1(18eb928, 18eb928, 151c730, 1686530, 1, 1) at 
netbsd:lockdebug_abort1+0x7c
 lockdebug_abort(18d3a00, 181b280, 151c730, 1686530, 1f4, 111aba70) at 
netbsd:lockdebug_abort+0x7c
 _kernel_unlock(1, 0, 0, fffffff, 18d3800, 111a7540) at 
netbsd:_kernel_unlock+0x78
 cdev_read(0, 11223bf0, 0, badcafe, badcafe, badcafe) at netbsd:cdev_read+0x60
 spec_read(11223a48, 1346228, 151cc00, 111a7540, 10b1ae30, badcafe) at 
netbsd:spec_read+0x1e0
 ufsspec_read(11223a48, 10001, badcafe, 0, 0, 0) at netbsd:ufsspec_read+0x48
 VOP_READ(10b1ae30, 11223bf0, 0, 10f9eac0, b8, 17) at netbsd:VOP_READ+0x6c
 vn_read(10fa5f00, 10fa5f00, 11223bf0, 10f9eac0, 1, 23e400) at 
netbsd:vn_read+0x88
 dofileread(16, 10fa5f00, 262000, 10000, 0, 1) at netbsd:dofileread+0x60
 sys_read(0, 11223dc0, 11223e00, 11220000, 9600, 798) at netbsd:sys_read+0x60
 syscall_plain(11223ed0, 3, 40d39594, 67b, 40d39594, 800) at 
netbsd:syscall_plain+0x12c
 ?(0, 262000, 10000, badcafe, badcafe, badcafe) at 0x10093e4
 db{3}> machine cpu 0
 db{0}> tra
 lwp_trampoline(f0075a4c, 0, 10fc00, fff7fd00, 10e9d8, fff7fe00) at 
netbsd:lwp_tr
 ampoline+0x8
 db{0}> machine prom
 Type  'go' to resume
 {0} ok 
 


Home | Main Index | Thread Index | Old Index