From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Backtraces in Guile 2.0 Date: Tue, 22 Feb 2011 09:20:25 +0100 Message-ID: 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 X-Trace: dough.gmane.org 1298362540 14100 80.91.229.12 (22 Feb 2011 08:15:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 08:15:40 +0000 (UTC) Cc: Guile User To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 09:15:34 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 1PrnP9-0007wz-Sg for guile-user@m.gmane.org; Tue, 22 Feb 2011 09:15:32 +0100 Original-Received: from localhost ([127.0.0.1]:58423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrnP8-00048u-Ku for guile-user@m.gmane.org; Tue, 22 Feb 2011 03:15:30 -0500 Original-Received: from [140.186.70.92] (port=55194 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrnOr-00048p-Lt for guile-user@gnu.org; Tue, 22 Feb 2011 03:15:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrnOq-0006ty-Sh for guile-user@gnu.org; Tue, 22 Feb 2011 03:15:13 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:58361 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrnOq-0006tu-QJ for guile-user@gnu.org; Tue, 22 Feb 2011 03:15:12 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 586B72E38; Tue, 22 Feb 2011 03:16:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=kE+sM/Husl4XA7O6JSsQtiBkDQs=; b=R/rNXD YzkmAhr6fXg8cYpxPTeP0snAbNs9CGgEgiUlaRrjBX1n5oKPD+rO+HNGyRaSnLZK T8JHIq+bQ8cFhyPsjmg12gJ0AQVa6hNYvbY/FtYfYUzUlpA1vTF5OtTrmJDyH51M NIeQXl2W/Mp7xNv+zsb9Fvlcyc6OhI2wzy1GA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=fHkYkJfXHVXG11r62cldKP2IUiDdme2a sNi1jU3UdsgF18ikDGEUVPcy6k9ip/1rW55T6p43eWsDf5JAmPCfEXVhALQVIR7M /HeQwTJgnM8lnFAx/UFT9dZ5hgmyeiaj+svXkehg4JTk376Ml/dJ3vhhXUWUJpz1 5SbC7FsnJnY= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4497C2E37; Tue, 22 Feb 2011 03:16:23 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 954642E36; Tue, 22 Feb 2011 03:16:21 -0500 (EST) In-Reply-To: <467344.39605.qm@web37901.mail.mud.yahoo.com> (Mike Gran's message of "Mon, 21 Feb 2011 19:23:03 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 0924119A-3E5C-11E0-9A72-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:8444 Archived-At: Hi Mike, On Tue 22 Feb 2011 04:23, Mike Gran writes: > (symbol->string "STRING") > > 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"] Here, there is no procedure in the call chain that has source annotations corresponding to symbol1.scm. Though, it does seem to me that the load-compiled/vm line is unnecessary; instead we should load up the .go into a thunk, and run that thunk without recursing through the load-compiled/vm primitive. In any case it seems that symbol1.scm.go tail-calls symbol->string, so we are left without source info. Bummer. We could improve this by keeping a ring buffer of previous frames, like JRM suggests in http://funcall.blogspot.com/2009/05/you-knew-id-say-something-part-iv.html. Regards, Andy -- http://wingolog.org/