Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2003 23:28:57 +0200
From:      Andreas Klemm <andreas@freebsd.org>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   panic: lockmgr: locking against myself (current of 09-20th)
Message-ID:  <20030922212857.GA23087@titan.klemm.apsfilter.org>
In-Reply-To: <1064253832.19024.48.camel@tchoubou.scientiae.net>
References:  <1064253832.19024.48.camel@tchoubou.scientiae.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

NFS Server:
FreeBSD titan.klemm.apsfilter.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Sep 21 13:16:17 CEST 2003     root@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@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/

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=AKLEMM

machine		i386
cpu		I686_CPU
ident		AKLEMM
options 	INCLUDE_CONFIG_FILE     # Include this file in kernel

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	SCHED_4BSD		#4BSD scheduler
#options	SCHED_ULE

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	UFS_ACL			#Support for access control lists
options 	UFS_DIRHASH		#Improve performance on big directories
options 	MD_ROOT			#MD is a potential root device
options 	PROCFS			#Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		#Pseudo-filesystem framework
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		#Compatible with FreeBSD4
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

options		NMBCLUSTERS=4096	# Number of mbuf clusters
options		ZERO_COPY_SOCKETS
options 	RANDOM_IP_ID
#options 	DUMMYNET
options 	SHOW_BUSYBUFS	# List buffers that prevent root unmount

# Debugging for use in -current
options 	DDB			#Enable the kernel debugger

device		isa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
options 	ATA_STATIC_ID		#Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		vga		# VGA video card driver

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc
options 	MAXCONS=8
options 	SC_HISTORY_SIZE=512	# number of history buffer lines
options 	VESA			# support VGA VESA video modes

device		agp		# support several AGP chipsets

# Floating point support - do not disable.
device		npx

# Power management support (see NOTES for more options)
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# PCCARD (PCMCIA) support
# Pcmcia and cardbus bridge support
device		cbb			# cardbus (yenta) bridge
#device		pcic			# ExCA ISA and PCI bridges
device		pccard			# PC Card (16-bit) bus
device		cardbus			# CardBus (32-bit) bus

# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices - the number indicates how many units to allocate.
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter

device		snp		#Snoop device - to look at pty/vty/etc..

--nFreZHaLTZJo0R7j--



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