From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 19:35:26 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFC9716A4CE for ; Sat, 11 Sep 2004 19:35:26 +0000 (GMT) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 872CC43D3F for ; Sat, 11 Sep 2004 19:35:26 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 4786 invoked from network); 11 Sep 2004 19:35:26 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail3.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Sep 2004 19:35:26 -0000 Received: from hydrogen.funkthat.com (mtuhkt@localhost.funkthat.com [127.0.0.1])i8BJZOuU038831; Sat, 11 Sep 2004 12:35:25 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i8BJZNdA038830; Sat, 11 Sep 2004 12:35:23 -0700 (PDT) Date: Sat, 11 Sep 2004 12:35:23 -0700 From: John-Mark Gurney To: Thomas-Martin Seck Message-ID: <20040911193523.GB72089@funkthat.com> Mail-Followup-To: Thomas-Martin Seck , freebsd-current@freebsd.org References: <20040911185729.GA382@laurel.tmseck.homedns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040911185729.GA382@laurel.tmseck.homedns.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org Subject: Re: RELENG_5: occasional panic on shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 19:35:27 -0000 Thomas-Martin Seck wrote this message on Sat, Sep 11, 2004 at 20:57 +0200: > Once in a while I drop into ddb when I try to shutdown my RELENG_5 > machine from a serial console; please see below. > > Is there anything interesting I could do in ddb to diagnose the problem? > > $ sudo shutdown -h now > Shutdown NOW! > shutdown: [pid 522] > $ > > *** FINAL System shutdown message from thomas@current.tmseck.homedns.org *** > System going down IMMEDIATELY > > > Sep 11 20:50:15 current shutdown: halt by thomas: > > System shutdown time has arrived > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x1c > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc04c16cf > stack pointer = 0x10:0xcc551784 > frame pointer = 0x10:0xcc551790 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 251 (syslogd) > [thread 100038] > Stopped at knote+0x27: cmpxchgl %ecx,0x1c(%edx) > db> You forgot the back trace on this, do a: tr from the db prompt... It is also very useful to find out the line number for the address that it stopped at.. (knote+0x27)... you can use gdb for this: gdb kernel.debug l *knote+0x27 I do have a fix that may fix this, but I can't know if it will until I get the information above. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."