From root@slip129-37-254-168.il.us.ibm.net  Sat Apr  5 21:53:46 1997
Received: from slip129-37-254-168.il.us.ibm.net (slip129-37-254-168.il.us.ibm.net [129.37.254.168])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA26402
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 5 Apr 1997 21:53:44 -0800 (PST)
Received: (from root@localhost)
	by slip129-37-254-168.il.us.ibm.net (8.8.5/8.8.5) id XAA03813;
	Sat, 5 Apr 1997 23:52:43 -0600 (CST)
Message-Id: <199704060552.XAA03813@slip129-37-254-168.il.us.ibm.net>
Date: Sat, 5 Apr 1997 23:52:43 -0600 (CST)
From: haplo@ibm.net
Reply-To: haplo@ibm.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: 3.0-current panics on shutdown/reboot/halt
X-Send-Pr-Version: 3.2

>Number:         3209
>Category:       kern
>Synopsis:       3.0-current panics on shutdown/reboot/halt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dyson
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr  5 22:00:00 PST 1997
>Closed-Date:    Sat May 23 01:05:14 PDT 1998
>Last-Modified:  Sat May 23 01:05:48 PDT 1998
>Originator:     Jordan Klein
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

DFI G586IPC Rev D+ motherboard (triton iii chipset)
Cyrix 6x86 P166+ cpu
64mb non-parity, 60ns ram
adaptec aha2940w pci wide scsi controller
  2 internal fujitsu 1 gig scsi 2 hard drives
  1 external quantum 1 gig scsi 2 hard drive
  internal nec 8xi scsi cdrom drive
  external conner ms4000dat+ 4 gig dat drive
genoa phantom 64v-2001 pci s3 trio64+ video w/2mb edo vram
3com 3c595 pci 10/100mb/s ethernet controller (running at 10mb/s)
soundblaster 16 sound card

FreeBSD is installed on the 2nd and 3rd hard drives, with Windows 95 on the
first drive, managed by booteasy.

>Description:

Whenever I perform a system shutdown using 'shutdown', 'reboot', or 'halt', the
system starts the shutdown process, and eventually kernel panics.  I compiled
debugging support into the kernel and came up with this from the DDB, with the
'ps' command, as I was advised to do on comp.unix.bsd.freebsd.misc.  I was also advised to use the 'bt' command in the debugger, but the debugger reported that
to be an invalid command.  Here is the output from the panic, and the 'ps':

syncing disks...  12 11 7 2 done
panic: lockmgr: pid 29809, not exclusive lock holder 1 unlocking
Debugger("panic")
Stopped at       _Debugger+0x35: movb   $0,_in_Debugger.122
DB> ps
 pid     proc   addr    uid ppid  pgrp   flag   stat  wmesg  wchan   cmd
29809 f2589e00 f68e0000  0   1   29808  004006   2                   reboot
    4 f2380c00 f689c000  0   0       0  000604   2                   update
    3 f2380e00 f689a000  0   0       0  000204   3   psleep f020b06c vmdaemon
    2 f237e000 f6898000  0   0       0  000204   3   psleep f0214854 pagedaemon
    1 f237e200 f6896000  0   0       1  004084   3     wait f237e200 init
    0 f0216254 f024c000  0   0       0  000204   3    sched f0216254 swapper

Strangely enough, if I reboot with ctrl-alt-delete, instead of 'shutdown',
'halt', or 'reboot', it reboots without panicing.

>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: haplo@ibm.net
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/3209: 3.0-current panics on shutdown/reboot/halt
Date: Sun, 6 Apr 1997 11:16:56 +0200

 As haplo@ibm.net wrote:
 
 >   I was also advised to
 > use the 'bt' command in the debugger, but the debugger reported that
 > to be an invalid command.
 
 Someone erroneously confused this with the GDB command `bt'
 (backtrace).  In DDB, it's just `tr' (or `trace').
 
 > panic: lockmgr: pid 29809, not exclusive lock holder 1 unlocking
 
 I think Doug Rabson has fixed this one already.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->feedback 
State-Changed-By: joerg 
State-Changed-When: Sat Aug 23 16:19:11 MEST 1997 
State-Changed-Why:  

Many things have been changed in the lock manager area recently. 
Does the problem still persist? 
Responsible-Changed-From-To: freebsd-bugs->dyson 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Sat Aug 23 16:19:52 MEST 1997 
Responsible-Changed-Why:  
John's Mr. Lock Manager these days. 

From: Dirk Froemberg <ibex@physik.TU-Berlin.DE>
To: freebsd-gnats-submit@freebsd.org, j@uriah.heep.sax.de, dyson@freebsd.org
Cc:  Subject: Re: kern/3209: 3.0-current panics on shutdown/reboot/halt
Date: Fri, 9 Jan 1998 20:15:45 +0100

 As J Wunsch wrote:
 > As haplo@ibm.net wrote:
 > 
 > >   I was also advised to
 > > use the 'bt' command in the debugger, but the debugger reported that
 > > to be an invalid command.
 
 > Someone erroneously confused this with the GDB command `bt'
 > (backtrace).  In DDB, it's just `tr' (or `trace').
 > 
 > > panic: lockmgr: pid 29809, not exclusive lock holder 1 unlocking
 > 
 > I think Doug Rabson has fixed this one already.
 
 Hi!
 
 Using a 3.0-CURRENT as of Mon Dec 15 04:32:19 CET 1997 with "options QUOTA"
 enabled produces the same panic while shuting down the machine. 8-(
 
 Please let me know if you need more information.
 
 	Best regards Dirk
 
 -- 
 e-mail: ibex@physik.tu-berlin.de
State-Changed-From-To: feedback->closed 
State-Changed-By: phk 
State-Changed-When: Sat May 23 01:05:14 PDT 1998 
State-Changed-Why:  
Timed out.  Too many changes in the code. 
Quota may still have problems, but this information is outdated. 
>Unformatted:
