From owner-freebsd-current Tue Jun 5 9:15:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id BB7DF37B407 for ; Tue, 5 Jun 2001 09:15:42 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f55GFfK63968; Tue, 5 Jun 2001 09:15:41 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f55GFeY74469; Tue, 5 Jun 2001 09:15:40 -0700 (PDT) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 05 Jun 2001 09:15:40 -0700 (PDT) From: John Baldwin To: Tony Fleisher Subject: RE: Problems booting recent -current Cc: current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 05-Jun-01 Tony Fleisher wrote: > On Mon, 4 Jun 2001, John Baldwin wrote: > >> >> On 03-Jun-01 Tony Fleisher wrote: >> > I just tried to boot a -current kernel cvsupped >> > at Sat Jun 2 14:11:35 PDT 2001, and was thrown >> > the following error trying to boot to single-user >> > (transcribed by hand): >> > >> > src/sys/kern/kern_sync.c:385 sleeping with "eventhandler" >> > locked from src/sys/kern/subr_eventhandler:159 >> >> It would be helpful to know what eventhandler was being fired perhaps.. >> > Any suggestions on how I may be able to determine this? Printf's perhaps. :) In the eventhandler code you might be able to output the hex address of the eventhandler list you are parsing. When it blows up, write down the address, then do a 'nm' on the kernel to find the symbol name associated with that address. That will let you know what eventlist was the problematic one. You can also print out the address of each handler as it is called and then look up those addresses in the kernel as well. sys/kern/subr_eventhandler.c is where you would want to do this. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message