From owner-freebsd-hackers Mon Sep 9 15:31:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C965A37B400; Mon, 9 Sep 2002 15:31:23 -0700 (PDT) Received: from Millions.Ca (h24-79-52-254.sbm.shawcable.net [24.79.52.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F15143E4A; Mon, 9 Sep 2002 15:31:23 -0700 (PDT) (envelope-from stacy@Millions.Ca) Received: (from uucp@localhost) by Millions.Ca (8.11.1/8.9.3) id g89MVL467120; Mon, 9 Sep 2002 16:31:21 -0600 (MDT) (envelope-from stacy@Millions.Ca) Received: from Cedar.Millions.Ca(192.168.64.8) via SMTP by mail-gw-0.millions.ca, id smtpdE67118; Mon Sep 9 16:31:12 2002 Received: from millions.ca (Bonsai.Millions.Ca [192.168.64.4]) by cedar.millions.ca (8.12.2/8.12.3) with ESMTP id g89MVAcM095569; Mon, 9 Sep 2002 16:31:11 -0600 (MDT) (envelope-from stacy@millions.ca) Message-ID: <3D7D212E.6030601@millions.ca> Date: Mon, 09 Sep 2002 16:31:10 -0600 From: Stacy Millions Organization: Millions Consulting Limited User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020612 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Greg 'groggy' Lehey" , hackers@FreeBSD.org Subject: Re: I climb the mountain seeking wisdom References: <3D78F291.8010005@millions.ca> <20020908064449.GG46846@wantadilla.lemis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greg 'groggy' Lehey wrote: > On Friday, 6 September 2002 at 12:23:13 -0600, Stacy Millions wrote: >>Page fault while in kernel mode.... unfortunately, ddb hangs so I don't >>get a core file. > > > That's obviously the first thing you should address. I'm open to suggestions. How can I force a core if ddb freezes? I have tried 'sysctl debug.debugger_on_panic=0', but that doesn't help, just causes me to have to hit the reset button for different reasons; like an infinite loop worth of kernel trap 12 with interupts disabled > Debugging hasn't > changed much since 4.3BSD. True enough, but *what* I am debugging sure has changed. KLD for example did not exist the last time I did kernel programming. On the subject of which, I have a question regarding KLD, in my driver, the MOD_LOAD does nothing, the identify() does a BUS_ADD_CHILD() to the parent (nexus) and then probe() and attach() do thier stuff and life is good. Now I want to do a kldunload and have the driver dettach, the MOD_UNLOAD is called, but the detach() is never called. What do I need to do to get the detach() to be called? Is there an opposite to BUS_ADD_CHILD()? I tried device_delete_child()... gave me a panic and no core and devclass_delete_driver()... returned an error (ENOENT, I think) -stacy -- If they keep lowering education standards and raising the price of gasoline, there are going to be a lot of stupid people walking around. Stacy Millions stacy@millions.ca Millions Consulting Limited To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message