From owner-freebsd-hackers Thu Mar 9 14:03:39 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA23774 for hackers-outgoing; Thu, 9 Mar 1995 14:03:39 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id NAA23291 for ; Thu, 9 Mar 1995 13:49:25 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA12764; Thu, 9 Mar 1995 22:40:50 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id WAA00928 for freebsd-hackers@freebsd.org; Thu, 9 Mar 1995 22:40:49 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.9/8.6.9) id WAA08476 for freebsd-hackers@freebsd.org; Thu, 9 Mar 1995 22:42:15 +0100 From: J Wunsch Message-Id: <199503092142.WAA08476@uriah.heep.sax.de> Subject: Re: Stack trace routine for running programs To: freebsd-hackers@FreeBSD.org (FreeBSD hackers) Date: Thu, 9 Mar 1995 22:42:13 +0100 (MET) In-Reply-To: <199503091623.JAA25172@trout.sri.MT.net> from "Nate Williams" at Mar 9, 95 09:23:19 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 674 Sender: hackers-owner@FreeBSD.org Precedence: bulk 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) :-) 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. ;-)