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 20:13:48 +0100 Message-ID: References: <773019.4427.qm@web37908.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298401737 10941 80.91.229.12 (22 Feb 2011 19:08:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 19:08:57 +0000 (UTC) Cc: Guile User To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 20:08:52 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 1PrxbP-0003nx-RS for guile-user@m.gmane.org; Tue, 22 Feb 2011 20:08:52 +0100 Original-Received: from localhost ([127.0.0.1]:40608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrxbP-00068y-7F for guile-user@m.gmane.org; Tue, 22 Feb 2011 14:08:51 -0500 Original-Received: from [140.186.70.92] (port=48888 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrxbC-00068e-2x for guile-user@gnu.org; Tue, 22 Feb 2011 14:08:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrxbA-0002ne-Rn for guile-user@gnu.org; Tue, 22 Feb 2011 14:08:38 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:64984 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrxbA-0002nU-PI for guile-user@gnu.org; Tue, 22 Feb 2011 14:08:36 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 66DD130AF; Tue, 22 Feb 2011 14:09:47 -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:content-transfer-encoding; s=sasl; bh=HnKcyXbpm1au gTUUmx/wJ+pzGAQ=; b=eHrd33ti7qLUbhsN84yD/itaS5P0Bnv6WS9Af3eCjm3R v1jLpyW/UnNJdsh4Cx8ZySfp7IOJf021n63DxzHXXbMbRny++TPBe8VvEyQ4w2nX kXbLg67EgDQCJBgJZ2bL7h62AFMHVS7ph82wTeIJwew9RtxresOvlDi9ht2rQSM= 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:content-transfer-encoding; q=dns; s=sasl; b=VtdIC0 hDJ7eJ6OfcAXb7CyfiCfiw1LZs2ftYAKd292eecjG2oE/QK5Nb/8EGB4W9U3gn7G EslktTrmaKdtmK+fVqofWpighpjdS0jo3Gybi/2sVyapucg4h11UpHAvd+dmyuRV L252PYG92DsIHPicuuspnQKZByK3Qi+AkGqtw= 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 53BC530AD; Tue, 22 Feb 2011 14:09:46 -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 C5B8E30A9; Tue, 22 Feb 2011 14:09:43 -0500 (EST) In-Reply-To: <773019.4427.qm@web37908.mail.mud.yahoo.com> (Mike Gran's message of "Tue, 22 Feb 2011 09:53:56 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 4FE64E6C-3EB7-11E0-8F33-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:8446 Archived-At: On Tue 22 Feb 2011 18:53, Mike Gran writes: > So, the specific line on which the error occurred will always read > "in unknown file" because source data is a property of procedures.=C2=A0 = And, > when procedure A tail-calls procedure B, the backtrace may only > display the information of the procedure A.=C2=A0 Right? Right. > Thus, if I understand correctly, the=C2=A0closest I can get to getting so= urce > info for this trivial case would be to change the script to > > =C2=A0 (symbol->string "HELLO") > =C2=A0 #t Yep. > Adding a #t so it can't be tail-called.=C2=A0 Then I get > > In unknown file: > =C2=A0=C2=A0 ?: 2 [load-compiled/vm "/home/Mike/.cache/guile/ccache/2.0-L= E-4-2.0/home/Mike/tmp.scm.go"] > In /home/Mike/tmp.scm: > =C2=A0=C2=A0 1: 1 [#] > In unknown file: > =C2=A0=C2=A0 ?: 0 [symbol->string "STRING"] > ERROR: In procedure symbol->string: Is this what you want? It seems right to me... Andy --=20 http://wingolog.org/