panic: lockmgr: locking against myself (current of 09-20th)

From: Andreas Klemm <andreas_at_freebsd.org>
Date: Mon, 22 Sep 2003 23:28:57 +0200
NFS Server:
FreeBSD titan.klemm.apsfilter.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Sep 21 13:16:17 CEST 2003     root_at_titan.klemm.apsfilter.org:/usr/src/sys/i386/compile/TITAN  i386

NFS Client:
FreeBSD aklemm.klemm.apsfilter.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 21:29:32 CEST 2003     root_at_aklemm.klemm.apsfilter.org:/usr/src/sys/i386/compile/AKLEMM  i386

Was checking out ports under /use. CVS repository resides on
NFS server, mounted via automounter.

My first checkout attempts failed with GENERIC kernel:
ep 22 20:40:25 aklemm kernel: Out of mbuf address space!
Sep 22 20:40:25 aklemm kernel: Consider increasing NMBCLUSTERS
Sep 22 20:40:25 aklemm kernel: All mbufs or mbuf clusters exhausted, please see tuning(7).

So I rebuild kernel with BMBCLUSTERS raised to 1024
Kernel profile in attachement.

With new kernel I get panics in different subsystems whenever
I checkout ports, in the middle I think 

BTW Checking out src tree went fine ...

The panic here is:

(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) core-file /var/crash/vmcore.0
No kernel exec file specified
(kgdb) exec-file kernel
(kgdb) core-file /var/crash/vmcore.0
panic: lockmgr: locking against myself
panic messages:
---
panic: lockmgr: locking against myself
panic: from debugger
Uptime: 10m26s
Dumping 191 MB
 16 32 48 64 80 96 112 128 144 160 176
---
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/acpi/acpi.ko.debug
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/msdosfs/msdosfs.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/msdosfs/msdosfs.ko.debug
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/nfsclient/nfsclient.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/nfsclient/nfsclient.ko.debug
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/nfsserver/nfsserver.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/nfsserver/nfsserver.ko.debug
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/usb/usb.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/usb/usb.ko.debug
Reading symbols from /boot/kernel/logo_saver.ko...done.
Loaded symbols for /boot/kernel/logo_saver.ko
Reading symbols from /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for /usr/src/sys/i386/compile/AKLEMM/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at ../../../kern/kern_shutdown.c:240
240             dumping++;

(kgdb) where
#0  doadump () at ../../../kern/kern_shutdown.c:240
#1  0xc01babc7 in boot (howto=260) at ../../../kern/kern_shutdown.c:372
#2  0xc01bafa8 in panic () at ../../../kern/kern_shutdown.c:550
#3  0xc01231e2 in db_panic () at ../../../ddb/db_command.c:450
#4  0xc0123142 in db_command (last_cmdp=0xc03438c0, cmd_table=0x0,
    aux_cmd_tablep=0xc031c550, aux_cmd_tablep_end=0xc031c554)
    at ../../../ddb/db_command.c:346
#5  0xc0123285 in db_command_loop () at ../../../ddb/db_command.c:472
#6  0xc01262a5 in db_trap (type=3, code=0) at ../../../ddb/db_trap.c:73
#7  0xc02c82cc in kdb_trap (type=3, code=0, regs=0xd323722c)
    at ../../../i386/i386/db_interface.c:171
#8  0xc02d9c7a in trap (frame=
      {tf_fs = -752680936, tf_es = -1070858224, tf_ds = 16, tf_edi = 1, tf_esi = -1070560517, tf_ebp = -752651656, tf_isp = -752651688, tf_ebx = 0, tf_edx = 0, tf_ecx = 32, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1070824060, tf_cs = 8, tf_eflags = 646, tf_esp = -1070500194, tf_ss = -1070555829})
    at ../../../i386/i386/trap.c:578
#9  0xc02c9cb8 in calltrap () at {standard input}:102
#10 0xc01baee5 in panic (fmt=0xc0308afb "lockmgr: locking against myself")
    at ../../../kern/kern_shutdown.c:534
#11 0xc01acffe in lockmgr (lkp=0xc54ecc64, flags=34144290, interlkp=0x2000020,
    td=0xc180cbe0) at ../../../kern/kern_lock.c:439
#12 0xc0208d6d in getblk (vp=0xc18a0c8c, blkno=4140064, size=16384, slpflag=0,
    slptimeo=0, flags=0) at ../../../sys/buf.h:313
#13 0xc0204742 in breadn (vp=0xc18a0c8c, blkno=0, size=0, rablkno=0x0,
    rabsize=0x0, cnt=0, cred=0x0, bpp=0x0) at ../../../kern/vfs_bio.c:696
#14 0xc02046ec in bread (vp=0x0, blkno=0, size=0, cred=0x0, bpp=0x0)
    at ../../../kern/vfs_bio.c:678
#15 0xc025b66c in ffs_alloccg (ip=0xc216b230, cg=11, bpref=1034976, size=16384)
    at ../../../ufs/ffs/ffs_alloc.c:1287
#16 0xc025b097 in ffs_hashalloc (ip=0xc216b230, cg=11, pref=0, size=16384,
    allocator=0xc025b580 <ffs_alloccg>) at ../../../ufs/ffs/ffs_alloc.c:1155
#17 0xc0258f77 in ffs_alloc (ip=0xc216b230, lbn=129614, bpref=1034976,
    size=16384, cred=0xc0d19e80, bnp=0xd323758c)
    at ../../../ufs/ffs/ffs_alloc.c:157
#18 0xc02605fe in ffs_balloc_ufs2 (vp=0xc2484124, startoffset=0, size=16384,
    cred=0xc0d19e80, flags=0, bpp=0xd32376a0)
    at ../../../ufs/ffs/ffs_balloc.c:774
#19 0xc02691b3 in ffs_copyonwrite (devvp=0xc18a0c8c, bp=0xc558b9a0)
    at ../../../ufs/ffs/ffs_snapshot.c:2010
#20 0xc017fdc2 in spec_xstrategy (vp=0xc18a0c8c, bp=0xc558b9a0)
    at ../../../fs/specfs/spec_vnops.c:469
#21 0xc017feeb in spec_specstrategy (ap=0x0)
    at ../../../fs/specfs/spec_vnops.c:529
#22 0xc017f058 in spec_vnoperate (ap=0x0)
    at ../../../fs/specfs/spec_vnops.c:122
#23 0xc0204efb in bwrite (bp=0xc558b9a0) at vnode_if.h:1141
#24 0xc020596c in bawrite (bp=0x0) at ../../../kern/vfs_bio.c:1139
#25 0xc025c55b in ffs_nodealloccg (ip=0xc18a2ec4, cg=11, ipref=15041,
    mode=33188) at ../../../ufs/ffs/ffs_alloc.c:1637
#26 0xc025b097 in ffs_hashalloc (ip=0xc18a2ec4, cg=11, pref=0, size=33188,
    allocator=0xc025c000 <ffs_nodealloccg>)
    at ../../../ufs/ffs/ffs_alloc.c:1155
#27 0xc025a7ae in ffs_valloc (pvp=0xc2435248, mode=33188, cred=0xc1b31f00,
    vpp=0xd32378b8) at ../../../ufs/ffs/ffs_alloc.c:857
#28 0xc0285429 in ufs_makeinode (mode=33188, dvp=0xc2435248, vpp=0xd3237be0,
    cnp=0xd3237bf4) at ../../../ufs/ufs/ufs_vnops.c:2357
#29 0xc0281949 in ufs_create (ap=0xd3237a40)
    at ../../../ufs/ufs/ufs_vnops.c:199
#30 0xc0285bf8 in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2792
#31 0xc0225abe in vn_open_cred (ndp=0xd3237bcc, flagp=0xd3237ccc, cmode=420,
    cred=0xc1b31f00, fdidx=0) at vnode_if.h:118
#32 0xc0225910 in vn_open (ndp=0x0, flagp=0x0, cmode=0, fdidx=0)
    at ../../../kern/vfs_vnops.c:93
#33 0xc021ead3 in kern_open (td=0xc180cbe0, path=0x0, pathseg=UIO_USERSPACE,
---Type <return> to continue, or q <return> to quit---
    flags=1538, mode=438) at ../../../kern/vfs_syscalls.c:688
#34 0xc021e960 in open (td=0x0, uap=0x0) at ../../../kern/vfs_syscalls.c:654
#35 0xc02da630 in syscall (frame=
      {tf_fs = 47, tf_es = 674758703, tf_ds = -1078001617, tf_edi = 8, tf_esi = 674821400, tf_ebp = -1077940296, tf_isp = -752648844, tf_ebx = 674746852, tf_edx = 1537, tf_ecx = 135025912, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip = 674241311, tf_cs = 31, tf_eflags = 518, tf_esp = -1077940340, tf_ss = 47})
    at ../../../i386/i386/trap.c:1006
#36 0xc02c9d0d in Xint0x80_syscall () at {standard input}:144
---Can't read userspace from dump, or kernel process---





-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/

Received on Mon Sep 22 2003 - 12:30:15 UTC

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