From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: Backtraces in Guile 2.0 Date: Tue, 22 Feb 2011 13:44:26 -0600 Message-ID: References: <773019.4427.qm@web37908.mail.mud.yahoo.com> Reply-To: linasvepstas@gmail.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 1298403991 24756 80.91.229.12 (22 Feb 2011 19:46:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 19:46:31 +0000 (UTC) Cc: Guile User To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 22 20:46:26 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 1PryBl-0008Gs-Gn for guile-user@m.gmane.org; Tue, 22 Feb 2011 20:46:25 +0100 Original-Received: from localhost ([127.0.0.1]:34188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PryBk-0007RA-P8 for guile-user@m.gmane.org; Tue, 22 Feb 2011 14:46:24 -0500 Original-Received: from [140.186.70.92] (port=52188 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PryBe-0007Pg-MO for guile-user@gnu.org; Tue, 22 Feb 2011 14:46:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PryBd-0003Ya-K7 for guile-user@gnu.org; Tue, 22 Feb 2011 14:46:18 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:33405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PryBd-0003YC-FW for guile-user@gnu.org; Tue, 22 Feb 2011 14:46:17 -0500 Original-Received: by fxm5 with SMTP id 5so3129133fxm.0 for ; Tue, 22 Feb 2011 11:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=nJwv2YYY/TQla9uluRED1eY3j5JnOfvNGhRC/RvSHBw=; b=MoPZwPlEaEKAjbkHmdJxbj8YQOyC4A1tIWTrL64eiEA2NQ0c4+GRzRtKFfEYUc64Dn 8YRIu+D1yPUiesccYQS4HWNMyelN7x3pSL2iIiA+TFkZKHC6GecbAbLoxcbgkhK6D8VA jFOLjY8BTxzBqcY29wUoG1ma+zqjBS4+nUIfY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=LF2wrZSffxT7a9FfOlvFZKWsueGekaF2HsFrf3qDESbvjNpfLQRGFrZ1c4QoqlnUId kZV3DJM0TwwVIJT5mo+WDS/wvPkiSl1glRokiVNHrFSl41GV9HUWaFwQgC3tfdbA0IuD KqY1t/7p67PUjVGjLUFuOR2Cb1U3Gz3upO8pc= Original-Received: by 10.223.103.197 with SMTP id l5mr3905655fao.7.1298403936399; Tue, 22 Feb 2011 11:45:36 -0800 (PST) Original-Received: by 10.223.86.129 with HTTP; Tue, 22 Feb 2011 11:44:26 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:8447 Archived-At: Hi, On 22 February 2011 13:13, Andy Wingo wrote: > 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 s= ource >> 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-= LE-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? =C2=A0It seems right to me... Well, I'm not exactly following all of the argument, so the following might be off the mark, and not an issue, but, superficially at least ... If there are multiple large files involved, and one of them has a bug, and there's no printing of the filename, then locating the offending code could be tedious & tricky .. one can't just try to alter every possible tail call in one's code to see if its buggy .. !? --linas