Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 1995 22:42:13 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@FreeBSD.org (FreeBSD hackers)
Subject:   Re: Stack trace routine for running programs
Message-ID:  <199503092142.WAA08476@uriah.heep.sax.de>
In-Reply-To: <199503091623.JAA25172@trout.sri.MT.net> from "Nate Williams" at Mar 9, 95 09:23:19 am

next in thread | previous in thread | raw e-mail | index | archive | help
As Nate Williams wrote:
> 
> Does anyone know of a way to do a stack dump (trace) of a running
> program while *NOT* in the debugger.  We are trying to debug a program
> that behaves very differently when it is running under the debugger, and
> being able to see a call stack would be very helpful.

kill -ILL (or -ABRT) <pid> :-)

I believed our gdb can `attach' to a running process, but all i get is
either ``permission denied'' (running as a normal user) or ``read-only
filesystem'' (as root).

Perhaps our /proc file system?

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503092142.WAA08476>