getblk(): panic: lockmgr: locking against myself

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Sat, 20 Dec 2003 19:01:35 -0500 (EST)
This is using Sam's netperf+sockets branch, but the problem doesn't
actually appear to be his fault :-).  The box is dual-processor with 1gb
of memory, local scsi disks used for the build.  Given the lack of network
activity and trace, I think it's more likely to be a problem with -CURRENT
than a result of the local network locking changes.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert_at_fledge.watson.org      Senior Research Scientist, McAfee Research

login: panic: lockmgr: locking against myself
cpuid = 0; 
Debugger("panic")
Stopped at      Debugger+0x55:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c0851c3c,0,c0850715,e81e934c,100) at Debugger+0x55
panic(c0850715,0,c08506db,e7,c6e0a8c0) at panic+0x156
lockmgr(d31de934,2090022,c6c40678,c6e0a8c0,69726373) at lockmgr+0x49e
getblk(c6c40678,44ea40,0,4000,0) at getblk+0x170
breadn(c6c40678,44ea40,0,4000,0) at breadn+0x52
bread(c6c40678,44ea40,0,4000,0) at bread+0x4c
ffs_alloccg(c6c3f9d8,c,113a68,0,4000) at ffs_alloccg+0xec
ffs_hashalloc(c6c3f9d8,c,113a68,0,4000) at ffs_hashalloc+0x37
ffs_alloc(c6c3f9d8,2275e,0,113a68,0) at ffs_alloc+0x1b7
ffs_balloc_ufs2(c6c40450,89d78000,0,4000,c29a1200) at
ffs_balloc_ufs2+0x181e
ffs_copyonwrite(c6c40678,d328a820,c0683350,c6c2c128,0) at
ffs_copyonwrite+0x3c5
spec_xstrategy(c6c40678,d328a820,e81e9768,c0600cb8,e81e9794) at
spec_xstrategy+0
x112
spec_specstrategy(e81e9794,e81e97b4,c067e894,e81e9794,1) at
spec_specstrategy+0x
1b
spec_vnoperate(e81e9794,1,c0855664,360,e81e97a8) at spec_vnoperate+0x18
bwrite(d328a820,e81e9840,c076d0fe,d328a820,4000) at bwrite+0x424
bawrite(d328a820,4000,0,4000,0) at bawrite+0x1c
ffs_nodealloccg(c70c5230,c,45259,0,81a4) at ffs_nodealloccg+0x55e
ffs_hashalloc(c70c5230,c,45259,0,81a4) at ffs_hashalloc+0x37
ffs_valloc(c70c0000,81a4,c6e29c80,e81e98dc,3e8) at ffs_valloc+0xce
ufs_makeinode(81a4,c70c0000,e81e9bf0,e81e9c04,602) at ufs_makeinode+0x69
ufs_create(e81e9a64,e81e9b20,c069b9ae,e81e9a64,e81e9a60) at
ufs_create+0x39
ufs_vnoperate(e81e9a64,e81e9a60,2,100,c6e0a8c0) at ufs_vnoperate+0x18
vn_open_cred(e81e9bdc,e81e9cdc,1a4,c6e29c80,3) at vn_open_cred+0x19e
vn_open(e81e9bdc,e81e9cdc,1a4,3,c72d8378) at vn_open+0x33
kern_open(c6e0a8c0,806b6e4,0,602,1b6) at kern_open+0xce
open(c6e0a8c0,e81e9d14,c086ae1c,3ee,3) at open+0x30
syscall(2f,2f,2f,806b6e4,1) at syscall+0x2a0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (5, FreeBSD ELF32, open), eip = 0x2812c0ff, esp = 0xbfbfe24c,
ebp = 
0xbfbfe2d8 ---
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
 3036 c6e09af8 e81f9000 1000  3010   561 0004002 [CPU 0] sh
 3010 c6e0baf8 e8201000 1000  2542   561 0004002 [SLP]wait 0xc6e0baf8]
make
 2542 c6e0b1d4 e81fc000 1000  2541   561 0004002 [SLP]wait 0xc6e0b1d4] sh
 2541 c6e0b000 e81fb000 1000  2540   561 0004002 [SLP]wait 0xc6e0b000]
make
 2540 c710657c e82b1000 1000   561   561 0004002 [SLP]wait 0xc710657c] sh
  561 c6e4e1d4 e8204000 1000   539   561 0004002 [SLP]wait 0xc6e4e1d4]
make
  539 c6e5157c e8256000 1000   538   539 0004002 [SLP]pause 0xc6d43000]
tcsh
  538 c6ba9924 e5f82000 1000   536   536 0000100 [CV]select 0xc0919ad4]
sshd
  536 c6ba9750 e5f81000    0   444   536 0000100 [SLP]sbwait 0xc6c97350]
sshd
  532 c6e0b3a8 e81fd000    0     1   532 0004002 [SLP]ttyin 0xc6b9f410]
getty
  531 c6e0b57c e81fe000    0     1   531 0004002 [SLP]ttyin 0xc6b92c10]
getty
  530 c6c101d4 e819f000    0     1   530 0004002 [SLP]ttyin 0xc6ba0410]
getty
  529 c6badccc e5f8c000    0     1   529 0004002 [SLP]ttyin 0xc6b92e10]
getty
  528 c6c1057c e81a1000    0     1   528 0004002 [SLP]ttyin 0xc693a610]
getty
  527 c6ba93a8 e5f37000    0     1   527 0004002 [SLP]ttyin 0xc6980810]
getty
  526 c6c1557c e81a9000    0     1   526 0004002 [SLP]ttyin 0xc6b9f810]
getty
  525 c6badaf8 e5f8b000    0     1   525 0004002 [SLP]ttyin 0xc6b92810]
getty
  524 c6ba9af8 e5f83000    0     1   524 0004002 [SLP]ttyin 0xc696b810]
getty
  488 c694eccc e1ef8000   80   476   476 0000100 [SLP]accept 0xc6c97036]
httpd
  487 c6c10750 e81a2000   80   476   476 0000100 [SLP]accept 0xc6c97036]
httpd
  486 c6c15000 e81a6000   80   476   476 0000100 [SLP]accept 0xc6c97036]
httpd
  485 c6bad924 e5f8a000   80   476   476 0000100 [SLP]accept 0xc6c97036]
httpd
  484 c6c153a8 e81a8000   80   476   476 0000100 [SLP]accept 0xc6c97036]
httpd
  476 c6c10924 e81a3000    0     1   476 0000000 [CV]select 0xc0919ad4]
httpd
  451 c6ba957c e5f80000   25     1   451 0000100 [SLP]pause 0xc6bef000]
sendmail
  444 c6c10ccc e81a5000    0     1   444 0000100 [CV]select 0xc0919ad4]
sshd
  395 c6ba91d4 e5f36000    0     1   395 0000000 [CV]select 0xc0919ad4]
usbd
  291 c6c151d4 e81a7000    0     1   291 0000000 [CV]select 0xc0919ad4]
syslogd
  231 c6ba9000 e5f35000    0     1   231 0000000 [CV]select 0xc0919ad4]
dhclient
   61 c6ba9ccc e5f84000    0     0     0 0000204 [SLP]- 0xc0920fec] nfsiod
3
   60 c6bad000 e5f85000    0     0     0 0000204 [SLP]- 0xc0920fe8] nfsiod
2
   59 c6bad1d4 e5f86000    0     0     0 0000204 [SLP]- 0xc0920fe4] nfsiod
1
   58 c6bad3a8 e5f87000    0     0     0 0000204 [SLP]- 0xc0920fe0] nfsiod
0
   57 c6bad57c e5f88000    0     0     0 0000204 [SLP]vlruwt 0xc6bad57c]
vnlru
   56 c6bad750 e5f89000    0     0     0 0000204 [SLP]syncer 0xc09161e0]
syncer
   55 c68a93a8 e1ec3000    0     0     0 0000204 [SLP]psleep 0xc0919f8c]
bufdaem
on
   54 c68a957c e1ee8000    0     0     0 000020c [SLP]pgzero 0xc0927888]
pagezer
o
   53 c68a9750 e1ee9000    0     0     0 0000204 [SLP]psleep 0xc09278e0]
vmdaemo
n
   52 c68a9924 e1eea000    0     0     0 0000204 [SLP]psleep 0xc09278cc]
pagedae
mon
   51 c68a9af8 e1eeb000    0     0     0 0000204 [IWAIT] swi0: tty:sio
   50 c68a9ccc e1eec000    0     0     0 0000204 [SLP]usbtsk 0xc090326c]
usbtask
   49 c694e000 e1ef1000    0     0     0 0000204 [SLP]usbevt 0xc695f210]
usb0
   48 c694e1d4 e1ef2000    0     0     0 0000204 [SLP]idle 0xc696b000]
aic_recovery1
   47 c694e3a8 e1ef3000    0     0     0 0000204 [SLP]idle 0xc696b000]
aic_recovery1
   46 c694e57c e1ef4000    0     0     0 0000204 [SLP]idle 0xc6939800]
aic_recovery0
    9 c694e750 e1ef5000    0     0     0 0000204 [SLP]idle 0xc6939800]
aic_recovery0
    8 c694e924 e1ef6000    0     0     0 0000204 [SLP]actask 0xc0a4524c]
acpi_task2
    7 c694eaf8 e1ef7000    0     0     0 0000204 [SLP]actask 0xc0a4524c]
acpi_task1
    6 c689daf8 e1eb7000    0     0     0 0000204 [SLP]actask 0xc0a4524c]
acpi_task0
   45 c689dccc e1eb8000    0     0     0 0000204 new [IWAIT] swi5:+
   44 c68a7000 e1eb9000    0     0     0 0000204 [IWAIT] swi7: acpitaskq
    5 c68a71d4 e1eba000    0     0     0 0000204 [SLP]tqthr 0xc0917de8]
taskqueue
   43 c68a73a8 e1ebb000    0     0     0 0000204 new [IWAIT] swi6:+
   42 c68a757c e1ebc000    0     0     0 0000204 [IWAIT] swi7: task queue
   41 c68a7750 e1ebd000    0     0     0 0000204 [IWAIT] swi3: cambio
   40 c68a7924 e1ebe000    0     0     0 0000204 new [IWAIT] swi2: camnet
   39 c68a7af8 e1ebf000    0     0     0 0000204 [SLP]- 0xc0900e20] random
    4 c68a7ccc e1ec0000    0     0     0 0000204 [SLP]- 0xc0905900] g_down
    3 c68a9000 e1ec1000    0     0     0 0000204 [SLP]- 0xc09058fc] g_up
    2 c68a91d4 e1ec2000    0     0     0 0000204 [SLP]- 0xc09058f4]
g_event
   38 c688e57c e1e88000    0     0     0 0000204 new [IWAIT] swi4: vm
   37 c688e750 e1e89000    0     0     0 000020c [LOCK  Giant c69b3600]
swi8: tty:sio clock
   36 c688e924 e1e8a000    0     0     0 0000204 [IWAIT] swi1: net
   35 c688eaf8 e1e8b000    0     0     0 0000204 new [IWAIT] irq0: clk
   34 c688eccc e1e8c000    0     0     0 0000204 [IWAIT] irq23: fxp1
   33 c689d000 e1e8d000    0     0     0 0000204 new [IWAIT] irq22:
   32 c689d1d4 e1e8e000    0     0     0 0000204 [IWAIT] irq21: fxp2 uhci0
   31 c689d3a8 e1e8f000    0     0     0 0000204 new [IWAIT] irq20:
   30 c689d57c e1e90000    0     0     0 0000204 [IWAIT] irq19: ahc0 ahc1
   29 c689d750 e1eb5000    0     0     0 0000204 [IWAIT] irq18: fxp0
   28 c689d924 e1eb6000    0     0     0 0000204 new [IWAIT] irq17:
   27 c29ae1d4 e0458000    0     0     0 0000204 new [IWAIT] irq16:
   26 c29ae3a8 e0459000    0     0     0 0000204 [IWAIT] irq15: ata1
   25 c29ae57c e045a000    0     0     0 0000204 new [IWAIT] irq14: ata0
   24 c29ae750 e045b000    0     0     0 0000204 new [IWAIT] irq13:
   23 c29ae924 e045c000    0     0     0 0000204 new [IWAIT] irq12:
   22 c29aeaf8 e0481000    0     0     0 0000204 new [IWAIT] irq11:
   21 c29aeccc e0482000    0     0     0 0000204 new [IWAIT] irq10:
   20 c688e000 e1e85000    0     0     0 0000204 new [IWAIT] irq9: acpi0
   19 c688e1d4 e1e86000    0     0     0 0000204 new [IWAIT] irq8: rtc
   18 c688e3a8 e1e87000    0     0     0 0000204 new [IWAIT] irq7: ppc0
   17 c29a5000 e0407000    0     0     0 0000204 [IWAIT] irq6: fdc0
   16 c29a51d4 e0450000    0     0     0 0000204 new [IWAIT] irq5:
   15 c29a53a8 e0451000    0     0     0 0000204 new [IWAIT] irq4: sio0
   14 c29a557c e0452000    0     0     0 0000204 new [IWAIT] irq3: sio1
   13 c29a5750 e0453000    0     0     0 0000204 new [IWAIT] irq1:
   12 c29a5924 e0454000    0     0     0 000020c [Can run] idle: cpu0
   11 c29a5af8 e0455000    0     0     0 000020c [CPU 1] idle: cpu1
    1 c29a5ccc e0456000    0     0     1 0004200 [SLP]wait 0xc29a5ccc]
init
   10 c29ae000 e0457000    0     0     0 0000204 [CV]ktrace 0xc0908f14]
ktrace
    0 c0905a20 c0c1f000    0     0     0 0000200 [SLP]sched 0xc0905a20]
swapper
db> show lockedvnods
Locked vnodes
0xc6c40450: tag ufs, type VREG, usecount 1, writecount 0, refcount 259,
flags (VV_SYSTEM), lock type snaplk: EXCL (count 1) by thread 0xc6e0a8c0
        ino 282627, on dev da0s1e (4, 20)
0xc70c0000: tag ufs, type VDIR, usecount 3, writecount 0, refcount 2,
flags (VV_OBJBUF), lock type ufs: EXCL (count 1) by thread 0xc6e0a8c0
        ino 283225, on dev da0s1e (4, 20)
Received on Sat Dec 20 2003 - 15:02:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:35 UTC