From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: general debugging question Date: 28 Nov 2002 09:13:53 +0000 Sender: guile-user-admin@gnu.org Message-ID: References: <5.1.1.6.0.20021121085949.03260e08@pop.wanadoo.be> <87d6oxfi6t.fsf@zagadka.ping.de> <20021128093703.1fe573c2.alto_stan@wanadoo.be> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038479750 1171 80.91.224.249 (28 Nov 2002 10:35:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2002 10:35:50 +0000 (UTC) Cc: Marius Vollmer , guile-gtk@sources.redhat.com, guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18HM1L-0000Ic-00 for ; Thu, 28 Nov 2002 11:35:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18HLym-0006Ey-00; Thu, 28 Nov 2002 05:33:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18HLxj-0004Rn-00 for guile-user@gnu.org; Thu, 28 Nov 2002 05:32:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18HLxh-0004Oz-00 for guile-user@gnu.org; Thu, 28 Nov 2002 05:32:03 -0500 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10) id 18HLxg-0004HA-00 for guile-user@gnu.org; Thu, 28 Nov 2002 05:32:00 -0500 Original-Received: from laruns.ossau.uklinux.net (bts-0025.dialup.zetnet.co.uk [194.247.48.25]) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id gASAVpZ05367; Thu, 28 Nov 2002 10:31:51 GMT Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1]) by laruns.ossau.uklinux.net (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id CC13DDC129; Thu, 28 Nov 2002 09:13:53 +0000 (GMT) Original-To: alto_stan@wanadoo.be In-Reply-To: <20021128093703.1fe573c2.alto_stan@wanadoo.be> Original-Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1398 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1398 >>>>> "Stan" == Stan Pinte writes: Stan> It is segfaulting somewhere... Stan> Is my only solution putting Stan> (format #f ...) in all my code, until I spot the place, or is there a Stan> guilish solution to that problem? (like printing the stack, or Stan> printing each call to a function?) If you know what the top level call is, say `foo-bar', and you are using unstable CVS, the following _might_ successfully tell you the last Scheme thing that happened before the segv: guile> (use-modules (ice-9 debugger breakpoints)) guile> (use-modules (ice-9 debugger breakpoints procedural)) guile> (trace-subtree! foo-bar) guile> (foo-bar) Stan> or shall I use gdb? (and if yes, has anyone done that already?) It would be nice if one could ask for a Scheme backtrace from GDB; I don't think this is possible today. (Maybe try `call scm_backtrace()'.) Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user