From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Backtraces in Guile 2.0 Date: Mon, 21 Feb 2011 19:23:03 -0800 (PST) Message-ID: <467344.39605.qm@web37901.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298344994 11048 80.91.229.12 (22 Feb 2011 03:23:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 03:23:14 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 04:23:10 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PriqD-0004wE-OE for guile-user@m.gmane.org; Tue, 22 Feb 2011 04:23:09 +0100 Original-Received: from localhost ([127.0.0.1]:43523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PriqD-0008Ow-4d for guile-user@m.gmane.org; Mon, 21 Feb 2011 22:23:09 -0500 Original-Received: from [140.186.70.92] (port=59541 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Priq9-0008Or-VQ for guile-user@gnu.org; Mon, 21 Feb 2011 22:23:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Priq8-0006y0-TC for guile-user@gnu.org; Mon, 21 Feb 2011 22:23:05 -0500 Original-Received: from web37901.mail.mud.yahoo.com ([209.191.91.163]:42527) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Priq8-0006xs-Nr for guile-user@gnu.org; Mon, 21 Feb 2011 22:23:04 -0500 Original-Received: (qmail 59846 invoked by uid 60001); 22 Feb 2011 03:23:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298344983; bh=E9jH3Qwxuuly9aeGvwaaf5cKwcHAAlUfsvmXf3FI/DE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=FKri9VBVgVbwApKz2jPApBInJl6fCaK04mftj33IjN2ofwmld4UzMSf63oPQUg8ifgIzumHvacxSqZDJXsg2Qg1cY0HJowYMiRWywTwE89fYE+St080cG/BsQKliY5Pa5pnEL5qi2nQmKy5EHXjqdzPVtajUAM2KOpBxLGVg6DU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=UpETYpqac6Le1tQLbN5qLKtprH7S6gDB18qAUCjfUhKM+dvdrMZjiL5lex2O2gYiN6mfHcxy32Epua03I4Gwit+47c5iHKseYDNAqKEs2/DqiCKWPCD69Fhs0j0Vq7pAfrnwkT47ecVLJJh/VvsiBk95kuwt9ylSqk2dZQ49NLU=; X-YMail-OSG: lRERACIVM1mhqCIB5Vyrc0n8QRKqq9qx_6WyfRhBBprNnwZ gvg9uEsjVBNcIjT1MK.kBjdLJ_BXtqXISY38ZBeSNdAWr1XjSlo4fddmDe0w PBIk2fINlNXW6IVBk0M4lTlZsh8SlKyisqPDFOhdWqx7lI5szPC1.VmLxfzj HdjKPW_vJd6h2dqzAe6h4WaCDy4dAgGL4lseJYs1sZcZc2QSvxvXmxADX_EZ 1o9v0sXQqWOhGewzsf8cQLqYKuKm3BfYiaRc37M0qZfssK1mc39d6I090ZHh dQnDSgBcw_ed7WKjt.N6q9EI3f92mz9Vkt3cYxOSQk3XjwTKBSaF8qykP Original-Received: from [71.130.212.252] by web37901.mail.mud.yahoo.com via HTTP; Mon, 21 Feb 2011 19:23:03 PST X-Mailer: YahooMailWebService/0.8.109.292656 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 209.191.91.163 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8442 Archived-At: Hi- I have a few questions about how backtraces are supposed to work. But let me start at the beginning, I guess. If I create a file named "symbol1.scm" that contains the single erroneous line. (symbol->string "STRING") If I run that script, it creates a backtrace for the error but says it happens in "unknown file". It seems to me that the file is easily knowable. Is that the expected behavior? The autocompiled backtrace has In module/ice-9/boot-9.scm: 1917: 3 [save-module-excursion #] 3348: 2 [#] In unknown file: ?: 1 [load-compiled/vm "/home/mike/.cache/guile/ccache/2.0-LE-8-2.0/home/mike/Documents/code/guile_backtrace/symbol1.scm.go"] ?: 0 [symbol->string "STRING"] ERROR: In procedure symbol->string: ERROR: In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): "STRING" and the non-auto-compiled backtrace is similar In module/ice-9/boot-9.scm: 1917: 5 [save-module-excursion #] 3348: 4 [#] 1189: 3 [%start-stack load-stack ...] 1194: 2 [#] In unknown file: ?: 1 [primitive-load "/home/mike/Documents/code/guile_backtrace/symbol1.scm"] ?: 0 [symbol->string "STRING"] ERROR: In procedure symbol->string: ERROR: In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): "STRING" Thanks, Mike