From owner-freebsd-hackers Fri Jan 12 6:46:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sivka.carrier.kiev.ua (sivka.carrier.kiev.ua [193.193.193.101]) by hub.freebsd.org (Postfix) with ESMTP id 6AC3037B400 for ; Fri, 12 Jan 2001 06:46:09 -0800 (PST) Received: from core.is.kiev.ua (p187.is.kiev.ua [62.244.5.187] (may be forged)) by sivka.carrier.kiev.ua (8/Kilkenny_is_better) with ESMTP id QRQ12440; Fri, 12 Jan 2001 16:45:48 +0200 (EET) (envelope-from diman@asd-g.com) Received: from ergo.local ([10.203.1.10]) by core.is.kiev.ua (8.11.1/ASDG-2.3-NR) with ESMTP id f0CEjl027391; Fri, 12 Jan 2001 16:45:48 +0200 (EET) (envelope-from diman@asd-g.com) Date: Fri, 12 Jan 2001 16:45:41 +0200 (EET) From: diman X-Sender: diman@portal.none.ua To: Xavier Galleri Cc: Alfred Perlstein , freebsd-hackers@FreeBSD.ORG Subject: Re: Need help for kernel crash dump analysis In-Reply-To: <3A5ED923.3010207@enition.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 12 Jan 2001, Xavier Galleri wrote: > OK, let's make it a bit clearer ! ... [skiped] > > Now, if you've read my first mail, I was actually asking for help onhow > to dump the stack of an interrupted process with GDB when the > kernelcrash occurs in the context of an isr. Actually, I would like to > know how I could dump the stack of *any* process at the time of the > crash. This way, I would be able to see where my user-land daemon was > lying in the kernel when the interrupt occurs. To dump stack of *any* (all) process you may write a little kld wich will: 1) go through a process list, 2) get tf_eip, tf_esp, tf_ebp of a process 3) get p->p_vmspace 4) read process stack frames and all you need by manually written routine based on procfs_rwmem and old good 'pread' (which dosn't work now) Another way is to go through proc list and coredump all the processes for future manual analisys. I like such way. Can anybody point me to some difficults wich can appear while implementing this? > [skiped] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message