From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32731 invoked by alias); 28 Nov 2002 10:32:06 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 32722 invoked from network); 28 Nov 2002 10:32:02 -0000 Received: from unknown (HELO s1.uklinux.net) (80.84.72.21) by sources.redhat.com with SMTP; 28 Nov 2002 10:32:02 -0000 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 Envelope-To: guile-gtk@sources.redhat.com 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) To: alto_stan@wanadoo.be Cc: Marius Vollmer , guile-gtk@sources.redhat.com, guile-user@gnu.org Subject: Re: general debugging question References: <5.1.1.6.0.20021121085949.03260e08@pop.wanadoo.be> <87d6oxfi6t.fsf@zagadka.ping.de> <20021128093703.1fe573c2.alto_stan@wanadoo.be> From: Neil Jerram Date: Thu, 28 Nov 2002 02:32:00 -0000 In-Reply-To: <20021128093703.1fe573c2.alto_stan@wanadoo.be> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-q4/txt/msg00016.txt.bz2 >>>>> "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