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: Re: Backtraces in Guile 2.0 Date: Tue, 22 Feb 2011 09:53:56 -0800 (PST) Message-ID: <773019.4427.qm@web37908.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298397457 17944 80.91.229.12 (22 Feb 2011 17:57:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 17:57:37 +0000 (UTC) Cc: Guile User To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 18:57:31 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 1PrwRX-0004OR-Om for guile-user@m.gmane.org; Tue, 22 Feb 2011 18:57:30 +0100 Original-Received: from localhost ([127.0.0.1]:44802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrwRP-00086u-AB for guile-user@m.gmane.org; Tue, 22 Feb 2011 12:54:27 -0500 Original-Received: from [140.186.70.92] (port=43027 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrwRI-00086E-RF for guile-user@gnu.org; Tue, 22 Feb 2011 12:54:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrwQw-0000ia-RQ for guile-user@gnu.org; Tue, 22 Feb 2011 12:53:59 -0500 Original-Received: from web37908.mail.mud.yahoo.com ([209.191.91.170]:29713) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PrwQw-0000iK-MF for guile-user@gnu.org; Tue, 22 Feb 2011 12:53:58 -0500 Original-Received: (qmail 4486 invoked by uid 60001); 22 Feb 2011 17:53:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298397236; bh=g26knIj5fZwTvB2yFev8VrJnSUURajnE9aRXCjdXGCs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=d66JMqFfoZLojMAs16DlvtcpFZ9TKim7hJ+XmE0IxU+tTuiH2Y8aj5SrVvkB9RGLM0d09Q0yq/LXkIIfaOue/SFuMi0vKycFLZ2/CHI+gGxLdpDBP4H7Cy/Ps9Zx/uPil0C3KuieWz6WwKesg0HjjlJTi6Z8qcKh1w7oUS/bsm0= 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:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kT9CejU14KWTlHJH1A3ofnpoqKP0yGnKZXKImQ8ZhDc9trUNFEYEYuMUoVYbYXG5QziDG+DVtGLMYK3TEbAymaaANTUlospClOnDP/Qyn3aJzEg8C4KD3RtPAne2PvSyKv7D3xKQjR2ItRgesVG5tMhkxAnGKI5G5/f8BjNJOZ0=; X-YMail-OSG: QCPefwAVM1mpKd.9s3_Rd5OFlYvKqz_6NhYXga6LaDyoAdr 79K7XN04feWLPz7NYxfWZ17u80dkwz8t8NQKqo2z07QVBwMuBOcFGeYxiwQB KXLtqtECkRbmmyHXc.5jx5nDDrE_DKC5E8m1PKGqsGP96oZXZCrRYoAPYRAv EJzg1bG1HwJNEK0AMhLiea4Eduar3K1Gpyylf5_qTGqQASgqRTfTdres3obn UwNvNn9vjishwmGVbz90ZarUyu2MUwTQpF38jYm6moNSGPCkQOf8BK_QStVV hh7STNfHrMYXjSU8DfkNsZ4NQ3Q8oA6sL8D9uHuL8OH8_B5plE1r9mlTcRQs 4HlN1Y9QnmKwCY2RSmCR2HwhziWs2mzG2w50T4QfSVIUSRkiWLwpuSIQVG2. lyg-- Original-Received: from [71.130.212.144] by web37908.mail.mud.yahoo.com via HTTP; Tue, 22 Feb 2011 09:53:56 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.170 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:8445 Archived-At: > From:Andy Wingo =0A> In any case it seems that symbol1.s= cm.go tail-calls symbol->string, so=0A> we are left without source info.=A0= Bummer.=A0 We could improve this by=0A> keeping a ring buffer of previous = frames, like JRM suggests in=0A> http://funcall.blogspot.com/2009/05/you-kn= ew-id-say-something-part-iv.html.=0A=0ASo, the specific line on which the e= rror occurred will always read=0A"in unknown file" because source data is a= property of procedures.=A0 And,=0Awhen procedure A tail-calls procedure B,= the backtrace may only=0Adisplay the information of the procedure A.=A0 Ri= ght?=0A=0AThus, if I understand correctly, the=A0closest I can get to getti= ng source=0Ainfo for this trivial case would be to change the script to=0A= =0A=A0 (symbol->string "HELLO")=0A=A0 #t=0A=0AAdding a #t so it can't be ta= il-called.=A0 Then I get=0A=0AIn unknown file:=0A=A0=A0 ?: 2 [load-compiled= /vm "/home/Mike/.cache/guile/ccache/2.0-LE-4-2.0/home/Mike/tmp.scm.go"]=0AI= n /home/Mike/tmp.scm:=0A=A0=A0 1: 1 [#]=0AIn unknown = file:=0A=A0=A0 ?: 0 [symbol->string "STRING"]=0AERROR: In procedure symbol-= >string:=0A=0AThanks,=0A=0A-Mike