From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: debug and backtrace Date: Fri, 11 Sep 2009 04:55:44 -0700 Message-ID: <1252670144.24639.134.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252673370 5684 80.91.229.12 (11 Sep 2009 12:49:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2009 12:49:30 +0000 (UTC) To: Guile Devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Sep 11 14:49:23 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mm5Z1-0007Rk-Ot for guile-devel@m.gmane.org; Fri, 11 Sep 2009 14:49:20 +0200 Original-Received: from localhost ([127.0.0.1]:59213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm5Z1-0005Sk-5a for guile-devel@m.gmane.org; Fri, 11 Sep 2009 08:49:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mm4jn-00016u-2q for guile-devel@gnu.org; Fri, 11 Sep 2009 07:56:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mm4jk-00014s-TU for guile-devel@gnu.org; Fri, 11 Sep 2009 07:56:22 -0400 Original-Received: from [199.232.76.173] (port=56400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm4jk-00014J-FT for guile-devel@gnu.org; Fri, 11 Sep 2009 07:56:20 -0400 Original-Received: from smtp105.prem.mail.sp1.yahoo.com ([98.136.44.60]:32556) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mm4jj-0005Ue-Pq for guile-devel@gnu.org; Fri, 11 Sep 2009 07:56:20 -0400 Original-Received: (qmail 1232 invoked from network); 11 Sep 2009 11:56:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=2LUIgAEj5iV4MkG44l5vu5OJUeUgNJ4HIMvQUIvH89PN+yM9Xekt4LcdC9x7/e/lv6/j0M+nWRqlB/cSHcIz1W/243RCbl54EiPHvkf+dGk00epQbH7XQngIO4UGDw55RYOcpdy2gKbm328V6qpRCcrxiGJW5hZI+mDNdVUkTQw= ; Original-Received: from adsl-71-130-218-93.dsl.irvnca.pacbell.net (spk121@71.130.218.93 with plain) by smtp105.prem.mail.sp1.yahoo.com with SMTP; 11 Sep 2009 04:56:18 -0700 PDT X-Yahoo-SMTP: FzNaA9iswBDuBl1BmgaIRDaP9Q-- X-YMail-OSG: aauvOhAVM1m6DPtV1n7ItgknLOj058s7FCzQbgwzsWa.b5UhryIJhPT72k9mMHUZAmGjo.gRphYPOMyokwwQZH9xgaDh_HrKkIS8Us_tAhtqTVMe7fcrzCPN7WfUChpkwQJ7V0FYz8uLm3RMgfFC5hMClCiq8kCM.0aAWb1nfvyigi9ZRxCpZcU745pTPk2cdnFlNMHq42BBIf9_zUTBYJ7X_Fr7Oc8Qm.HsEFoCsSeT.LVORmvbOaVASs8Ux69UFB98 X-Yahoo-Newman-Property: ymail-3 X-Mailer: Evolution 2.24.5 (2.24.5-2.fc10) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:9310 Archived-At: Hi- With the default behavior of 1.9.x, REPL debug and backtrace are broken. Consider the following example run using 'guile --debug' and (debug-enable 'backtrace). With 1.8.5 -------------------------------------------------------- guile> (string-append "abc" (string-append "def" (string-append (error "blammo")))) Backtrace: In standard input: 2: 0* [string-append "abc" ... 2: 1* [string-append "def" ... 2: 2* [string-append ... 2: 3* [error "blammo"] standard input:2:58: In procedure error in expression (error "blammo"): standard input:2:58: blammo ABORT: (misc-error) guile> (debug) This is the Guile debugger -- for help, type `help'. There are 4 frames on the stack. Frame 3 at standard input:2:58 [error "blammo"] debug> up Frame 2 at standard input:2:43 [string-append ... debug> up Frame 1 at standard input:2:22 [string-append "def" ... debug> up Frame 0 at standard input:2:1 [string-append "abc" ... -------------------------------------------------------- With 1.9.x -------------------------------------------------------- scheme@(guile-user)> (string-append "abc" (string-append "def" (string-append (error "blammo")))) Backtrace: In unknown file: ?: 0* [# #] ?: 1* [error "blammo"] ERROR: In procedure error: ERROR: blammo scheme@(guile-user)> (debug) This is the Guile debugger -- for help, type `help'. There are 2 frames on the stack. Frame 1 at unknown source location [error "blammo"] debug> up Frame 0 at unknown source location [# #] -------------------------------------------------------- Thanks, Mike