Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 12:57:18 +0200
From:      des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=)
To:        current@freebsd.org
Subject:   panic: lockmgr: locking against myself
Message-ID:  <86slb8zecx.fsf@dwp.des.no>

next in thread | raw e-mail | index | archive | help
I've been getting quite a few of these lately:

kgdb: kvm_nlist(_stopped_cpus):
kgdb: kvm_nlist(_stoppcbs):
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:=
 Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
Ready to go.  Enter 'tr' to connect to the remote target
with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port
or 'trf portno' to connect to the remote target with the firewire
interface.  portno defaults to 5556.

Type 'getsyms' after connection to load kld symbols.

If you're debugging a local system, you can use 'kldsyms' instead
to load the kld symbols.  That's a less obnoxious interface.

Unread portion of the kernel message buffer:
panic: lockmgr: locking against myself
Uptime: 42m41s
Physical memory: 2039 MB
Dumping 327 MB: 312 296 280 264 248 232 216 200 184 168 152 136 120 104 88 =
72 56 40 24 8

#0  doadump () at pcpu.h:172
172     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) getsyms
During symbol reading, Incomplete CFI data; unspecified registers at 0xc053=
01f7.
Id Refs Address    Size     Name
 1   13 0xc0400000 3f7698   kernel
 2    1 0xc07f8000 68b0     geom_label.ko
 3    1 0xc07ff000 1728c    geom_mirror.ko
 4    1 0xc0817000 7d1c     geom_stripe.ko
 5    1 0xc081f000 bdd8     if_sk.ko
 6    1 0xc513d000 a0000    zfs.ko
 7    1 0xc8015000 3000     pflog.ko
 8    1 0xc8018000 35000    pf.ko
 9    1 0xc8682000 36000    nfsclient.ko
10    1 0xc86ca000 1f000    nfsserver.ko
Select the list above with the mouse, paste into the screen
and then press ^D.  Yes, this is annoying.
 1   13 0xc0400000 3f7698   kernel
 2    1 0xc07f8000 68b0     geom_label.ko
 3    1 0xc07ff000 1728c    geom_mirror.ko
 4    1 0xc0817000 7d1c     geom_stripe.ko
 5    1 0xc081f000 bdd8     if_sk.ko
 6    1 0xc513d000 a0000    zfs.ko
 7    1 0xc8015000 3000     pflog.ko
 8    1 0xc8018000 35000    pf.ko
 9    1 0xc8682000 36000    nfsclient.ko
10    1 0xc86ca000 1f000    nfsserver.ko
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/sk/if_sk.ko.debug" at
        .text_addr =3D 0xc08216c4
        .data_addr =3D 0xc0829000
        .bss_addr =3D 0xc082936c
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/pflog/pflog.ko.debug" at
        .text_addr =3D 0xc8015bec
        .data_addr =3D 0xc8017360
        .bss_addr =3D 0xc8017518
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/geom/geom_mirror/geom_mirror.ko.debug" at
        .text_addr =3D 0xc0805e70
        .data_addr =3D 0xc0814000
        .bss_addr =3D 0xc08143c4
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/geom/geom_label/geom_label.ko.debug" at
        .text_addr =3D 0xc07f9d0c
        .data_addr =3D 0xc07fd940
        .bss_addr =3D 0xc07fdb10
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/geom/geom_stripe/geom_stripe.ko.debug" at
        .text_addr =3D 0xc0819194
        .data_addr =3D 0xc081d6a0
        .bss_addr =3D 0xc081d9b8
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/nfsserver/nfsserver.ko.debug" at
        .text_addr =3D 0xc86cf048
        .data_addr =3D 0xc86e3000
        .bss_addr =3D 0xc86e3600
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/zfs/zfs.ko.debug" at
        .text_addr =3D 0xc5150b10
        .data_addr =3D 0xc51cf000
        .bss_addr =3D 0xc51d1680
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/nfsclient/nfsclient.ko.debug" at
        .text_addr =3D 0xc868cc20
        .data_addr =3D 0xc86b5660
        .bss_addr =3D 0xc86b6cc0
add symbol table from file "/usr/obj/usr/src/sys/dwp/modules/usr/src/sys/mo=
dules/pf/pf.ko.debug" at
        .text_addr =3D 0xc801f31c
        .data_addr =3D 0xc8049000
        .bss_addr =3D 0xc80491e0
(kgdb) where
#0  doadump () at pcpu.h:172
During symbol reading, Incomplete CFI data; unspecified registers at 0xc053=
01f7.
#1  0xc053096e in boot (howto=3D0x104) at /usr/src/sys/kern/kern_shutdown.c=
:409
#2  0xc053043b in panic (fmt=3D0x0) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc05225fb in _lockmgr (lkp=3D0xcf55e278, flags=3D0x3002, interlkp=3D0x=
cf55e278, td=3D0xc5235870,
    file=3D0xc86e248a "/usr/src/sys/modules/nfsserver/../../nfsserver/nfs_s=
erv.c", line=3D0xac9)
    at /usr/src/sys/kern/kern_lock.c:448
#4  0xc0594392 in vop_stdlock (ap=3D0x0) at /usr/src/sys/kern/vfs_default.c=
:266
#5  0xc06a70df in _VOP_LOCK_APV (vop=3D0x0, a=3D0xf4643860) at vnode_if.c:1=
617
#6  0xc05abb06 in _vn_lock (vp=3D0xcf55e220, flags=3D0x1002, td=3D0xc523587=
0,
    file=3D0xc86e248a "/usr/src/sys/modules/nfsserver/../../nfsserver/nfs_s=
erv.c", line=3D0xac9)
    at vnode_if.h:850
#7  0xc86d33df in nfsrv_symlink (nfsd=3D0xcfd7fb00, slp=3D0x0, td=3D0xc5235=
870, mrq=3D0xf4643bfc)
    at /usr/src/sys/modules/nfsserver/../../nfsserver/nfs_serv.c:2761
#8  0xc86e10a8 in nfssvc (td=3D0xc5235870, uap=3D0xca2f6b80)
    at /usr/src/sys/modules/nfsserver/../../nfsserver/nfs_syscalls.c:477
#9  0xc069437f in syscall (frame=3D0xf4643d38) at /usr/src/sys/i386/i386/tr=
ap.c:1008
#10 0xc067f1c0 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s=
:196
#11 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86slb8zecx.fsf>