From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Klaus Schilling Newsgroups: gmane.lisp.guile.user Subject: Re: Backtraces in Guile 2.0 Date: Tue, 22 Feb 2011 08:44:39 +0100 (CET) Message-ID: <20110222.084439.08404263.schilling.klaus@web.de> References: <467344.39605.qm@web37901.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298360592 5499 80.91.229.12 (22 Feb 2011 07:43:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 07:43:12 +0000 (UTC) Cc: guile-user@gnu.org To: spk121@yahoo.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 08:43:08 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 1Prmtn-0005XM-Uw for guile-user@m.gmane.org; Tue, 22 Feb 2011 08:43:08 +0100 Original-Received: from localhost ([127.0.0.1]:39512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prmtn-0002Sx-8E for guile-user@m.gmane.org; Tue, 22 Feb 2011 02:43:07 -0500 Original-Received: from [140.186.70.92] (port=39374 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrmtV-0002Ss-0c for guile-user@gnu.org; Tue, 22 Feb 2011 02:42:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrmtT-0000d1-Rz for guile-user@gnu.org; Tue, 22 Feb 2011 02:42:48 -0500 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:47672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrmtT-0000cM-HL for guile-user@gnu.org; Tue, 22 Feb 2011 02:42:47 -0500 Original-Received: from smtp07.web.de ( [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id 17E7A1890E983; Tue, 22 Feb 2011 08:42:45 +0100 (CET) Original-Received: from [91.66.162.158] (helo=localhost) by smtp07.web.de with asmtp (WEB.DE 4.110 #2) id 1PrmtR-0006YI-00; Tue, 22 Feb 2011 08:42:45 +0100 In-Reply-To: <467344.39605.qm@web37901.mail.mud.yahoo.com> X-Mailer: Mew version 3.3 on Emacs 21.4 / Mule 5.0 (SAKAKI) X-Sender: schilling.klaus@web.de X-Provags-ID: V01U2FsdGVkX19MYVTrWHJvbNWs2Cj9FbPvP6noLUukpfpXwcDP fXJ02KsVyeyN0U2EngZBYJCo0uOJV7BOotnFwo4TvYKAOzYRnO A2OvK+yO/ABp+QbPUYHQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 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:8443 Archived-At: From: Mike Gran Subject: Backtraces in Guile 2.0 Date: Mon, 21 Feb 2011 19:23:03 -0800 (PST) > 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" > When booting and before loading the script indicated by the -s switch, guile comes to operate in a ``virtual file'' in which the command line is processed, among other things. It's not really a file, thence unknown, it just behaves, at least for the debugger's viewpoint, like a file containing the instruction to load symbol1.scm or compiling load1.scm and thereupon load the compiled code. Klaus Schilling