From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: No way out. Date: Wed, 07 Dec 2005 03:07:19 +0200 Message-ID: <87ek4p3ebc.fsf@zagadka.de> References: <200511301616.22258.bkorb@gnu.org> <87lkz5mysf.fsf@zip.com.au> <200512042008.00333.bkorb@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133919622 4559 80.91.229.2 (7 Dec 2005 01:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 01:40:22 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Dec 07 02:40:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjoFa-0001LJ-QG for guile-devel@m.gmane.org; Wed, 07 Dec 2005 02:37:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjoFn-0003qz-RN for guile-devel@m.gmane.org; Tue, 06 Dec 2005 20:37:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ejnn0-0000Fz-Jt for guile-devel@gnu.org; Tue, 06 Dec 2005 20:08:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ejnmi-0008Dg-Ch for guile-devel@gnu.org; Tue, 06 Dec 2005 20:07:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjnmQ-0007lh-QD for guile-devel@gnu.org; Tue, 06 Dec 2005 20:07:35 -0500 Original-Received: from [213.243.153.35] (helo=smtp2.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjnnB-0004p7-PY for guile-devel@gnu.org; Tue, 06 Dec 2005 20:08:22 -0500 Original-Received: from zagadka.ping.de (cs181072157.pp.htv.fi [82.181.72.157]) by smtp2.pp.htv.fi (Postfix) with SMTP id 66F8F296BD1 for ; Wed, 7 Dec 2005 03:07:19 +0200 (EET) Original-Received: (qmail 6706 invoked by uid 1000); 7 Dec 2005 01:07:19 -0000 Original-To: Bruce Korb In-Reply-To: <200512042008.00333.bkorb@gnu.org> (Bruce Korb's message of "Sun, 4 Dec 2005 20:08:00 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5477 Archived-At: Bruce Korb writes: > Anyway, *real bugs* in Guile 1.7.2 are: > > 1. When an error is thrown, "exit" should be called with > EXIT_FAILURE, not 0. I agree. In 1.7.2, Guile no longer exits the whole program when an uncaught error happens; it only exits the current thread with "pthread_exit (NULL)". If the current thread is the one running 'main', the process exits with return code 0. Is there a way to return an exit code with pthread_exit? > 2. After these commands: > > (use-modules (ice-9 stack-catch)) > (debug-enable 'backtrace) > > I should be getting stack traces on Scheme errors. I'm not. > (And, yes, I invoke either ``(backtrace)'' or ``scm_backtrace()'' > when a failure is detected.) Only "(debug-enable 'backtrace)" should be necessary. However, you only get backtraces when the error happens from with the usual read-eval-print-loop. For example, this file (debug-enable 'backtrace) (define (foo) (+ 2 'a)) (foo) gives no backtrace when executed with $ guile -l x.scm but you get a backtrace with $ guile guile> (load "x.scm") And yes, this can be considered a bug, too... :-) > I can get file and line information for 1.6.7 and earlier > *only*. There seems to be no way to do it in 1.7. I will come back to this. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel