From geniusj@phreebsd.org  Thu Jul 27 22:35:12 2000
Return-Path: <geniusj@phreebsd.org>
Received: from phreebsd.org (edslppp251.dnvr.uswest.net [216.160.165.251])
	by hub.freebsd.org (Postfix) with ESMTP id 139FE37B643
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Jul 2000 22:35:07 -0700 (PDT)
	(envelope-from geniusj@phreebsd.org)
Received: (from geniusj@localhost)
	by phreebsd.org (8.9.3/8.9.3) id XAA00488;
	Thu, 27 Jul 2000 23:36:19 GMT
	(envelope-from geniusj)
Message-Id: <200007272336.XAA00488@phreebsd.org>
Date: Thu, 27 Jul 2000 23:36:19 GMT
From: geniusj@ods.org
Sender: geniusj@phreebsd.org
Reply-To: geniusj@ods.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: <Synopsis of the problem (one line)> panic(): lockmgr: pid 259, not exclusive lock holder 0 unlocking
X-Send-Pr-Version: 3.2

>Number:         20234
>Category:       kern
>Synopsis:       panic(): lockmgr: pid 259, not exclusive lock holder 0 unlocking
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    andre
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 27 22:40:01 PDT 2000
>Closed-Date:    Sat Dec 27 07:04:21 PST 2003
>Last-Modified:  Sat Dec 27 07:04:21 PST 2003
>Originator:     Jason DiCioccio
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

Running 5.0-CURRENT from July 27th
(approx 2am on the 27th)

FreeBSD 5.0-CURRENT #2: Thu Jul 27 11:23:26 GMT 2000
    root@phreebsd.org:/usr/src/sys/compile/FREEBSD
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 501138746 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,XMM>
real memory  = 134217728 (131072K bytes)
avail memory = 127258624 (124276K bytes)
Preloaded elf kernel "kernel" at 0xc0357000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc035709c.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Intel 82443BX (440 BX) host to PCI bridge> at 0.0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
pci0: <Intel 82371AB Power management controller> at 7.3
pcm0: <Creative EMU10K1> port 0xe400-0xe41f irq 5 at device 13.0 on pci0
pci0: <3Dfx Voodoo 3 graphics accelerator> at 15.0 irq 10
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ed0 at port 0x240-0x25f iomem 0xd8000-0xd9fff irq 3 drq 0 on isa0
ed0: address 00:e0:29:16:cb:72, type SMC8416T (16 bit) 
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
IP Filter: v3.4.8 initialized.  Default = pass all, Logging = enabled
ad0: 9671MB <WDC AC310100B> [19650/16/63] at ata0-master using UDMA33
acd0: CD-RW <PLEXTOR CD-R PX-W8432T> at ata1-master using WDMA2
acd1: CDROM <FX001DE> at ata1-slave using PIO3
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
	

>Description:

when rebooting the system, machine panics with the following message:
lockmgr: pid 259, not exclusive lock holder 0 unlocking

here is my kernel config file (if you need hints file, lemme know):

machine		i386
cpu		I686_CPU
ident		FREEBSD
maxusers	32

hints		"FREEBSD.hints"		#Default places to look for devices.

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

options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	RANDOMDEV		#entropy device
options         IPFIREWALL              #firewall
options		IPFIREWALL_VERBOSE	#print information about
					# dropped packets
options		IPFIREWALL_FORWARD	#enable transparent proxy support
options		IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options		IPDIVERT		#divert sockets
options		IPFILTER		#kernel ipfilter support
options		IPFILTER_LOG		#ipfilter logging

device		isa
device		eisa
device		pci
device		pcm

# 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
options 	ATA_ENABLE_ATAPI_DMA	#Enable DMA on ATAPI devices

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

device		vga

# splash screen/screen saver
device		splash

# syscons is the default console driver, resembling an SCO console
device		sc	1

# Floating point support - do not disable.
device		npx

# Serial (COM) ports
device		sio

# ISA Ethernet NICs.
device		ed

# Pseudo devices - the number indicates how many units to allocated.
device		loop		# Network loopback
device		ether		# Ethernet support
device		pty		# Pseudo-ttys (telnet etc)
device		vn		# VNode
device		snp	3	# Snoop

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

-- Here is gdb -k output from vmcore.0 on kernel.debug:
#0  boot (howto=256) at ../../kern/kern_shutdown.c:303
#1  0xc014be14 in poweroff_wait (junk=0xc026ffc0, howto=259)
    at ../../kern/kern_shutdown.c:553
#2  0xc0146bdc in lockmgr (lkp=0xc0bc3800, flags=6, interlkp=0xc89feaac,
    p=0xc8012d40) at ../../kern/kern_lock.c:382
#3  0xc0179dc7 in vop_stdunlock (ap=0xc8a42e48) at ../../kern/vfs_default.c:255
#4  0xc0220371 in ufs_vnoperate (ap=0xc8a42e48)
    at ../../ufs/ufs/ufs_vnops.c:2291
#5  0xc021b2d3 in ufs_inactive (ap=0xc8a42e78) at vnode_if.h:865
#6  0xc0220371 in ufs_vnoperate (ap=0xc8a42e78)
    at ../../ufs/ufs/ufs_vnops.c:2291
#7  0xc017cb42 in vput (vp=0xc89fea40) at vnode_if.h:794
#8  0xc0217c5b in ffs_sync (mp=0xc0add200, waitfor=2, cred=0xc0721080,
    p=0xc02f9200) at ../../ufs/ffs/ffs_vfsops.c:955
#9  0xc017ea21 in sync (p=0xc02f9200, uap=0x0) at ../../kern/vfs_syscalls.c:551
#10 0xc014b863 in boot (howto=0) at ../../kern/kern_shutdown.c:225
#11 0xc014b664 in reboot (p=0xc8012d40, uap=0xc8a42f80)
    at ../../kern/kern_shutdown.c:146
#12 0xc025a14d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
      tf_edi = 0, tf_esi = 0, tf_ebp = -1077937628, tf_isp = -928763948,
      tf_ebx = 2, tf_edx = -1, tf_ecx = 3, tf_eax = 55, tf_trapno = 7,
      tf_err = 2, tf_eip = 134515340, tf_cs = 31, tf_eflags = 663,
      tf_esp = -1077937672, tf_ss = 47}) at ../../i386/i386/trap.c:1128
#13 0xc024f875 in Xint0x80_syscall ()
---Type <return> to continue, or q <return> to quit---Jul 27 23:28:03 phreebsd s
avecore: reboot after panic: lockmgr: pid 259, not exclusive lock holder 0 unloc
king
#14 0x8048139 in ?? ()                                                          


	

>How-To-Repeat:

do a shutdown -r now on 5.0-CURRENT build on July 27th
	

>Fix:

Wish I knew.. that should be enough information though.. Thanks!
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: jedgar 
Responsible-Changed-When: Sat Jul 29 09:58:33 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20234 
Responsible-Changed-From-To: freebsd-bugs->green 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 31 01:48:16 PDT 2000 
Responsible-Changed-Why:  
Brian's investigating this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20234 
State-Changed-From-To: open->closed 
State-Changed-By: andre 
State-Changed-When: Sat Dec 27 07:01:00 PST 2003 
State-Changed-Why:  
Close this PR.  It has been idle for far too long and the 
ffs/ufs implementation has changed in significant ways (UFS2, 
softupdates, locking).  Also there have been fixes for 
shutdown race conditions some time ago.  I don't thing it 
makes sense to try to reproduce this kind of transitory 
problem conditions which emerge during the pre-beta phase 
of a new code branch (this is before 5.0R after all). 


Responsible-Changed-From-To: green->andre 
Responsible-Changed-By: andre 
Responsible-Changed-When: Sat Dec 27 07:01:00 PST 2003 
Responsible-Changed-Why:  
Close this PR.  It has been idle for far too long and the 
ffs/ufs implementation has changed in significant ways (UFS2, 
softupdates, locking).  Also there have been fixes for 
shutdown race conditions some time ago.  I don't thing it 
makes sense to try to reproduce this kind of transitory 
problem conditions which emerge during the pre-beta phase 
of a new code branch (this is before 5.0R after all). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20234 
>Unformatted:
