From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: Where is the backtrace? Date: Fri, 3 Jan 2014 14:57:33 +0100 Message-ID: References: <87d2k9e4va.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1388757460 18126 80.91.229.3 (3 Jan 2014 13:57:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2014 13:57:40 +0000 (UTC) To: Panicz Maciej Godek , "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 03 14:57:47 2014 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vz5Fx-0007of-Ev for guile-user@m.gmane.org; Fri, 03 Jan 2014 14:57:45 +0100 Original-Received: from localhost ([::1]:50009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz5Fw-0001ho-Ni for guile-user@m.gmane.org; Fri, 03 Jan 2014 08:57:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz5Fo-0001hj-8b for guile-user@gnu.org; Fri, 03 Jan 2014 08:57:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz5Fn-0001o1-8K for guile-user@gnu.org; Fri, 03 Jan 2014 08:57:36 -0500 Original-Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:56766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz5Fn-0001nr-0k for guile-user@gnu.org; Fri, 03 Jan 2014 08:57:35 -0500 Original-Received: by mail-wg0-f42.google.com with SMTP id a1so445474wgh.1 for ; Fri, 03 Jan 2014 05:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jaO/AR8IYZcPHSNDSZF43sIZyC58f3QnyJuYq/svACE=; b=H1nOj0iJ6VXiFQUUzwyXPmcm4eRzxiPySGod7suj+4lGm63cBdOE+4T1EGwSpZGEB5 ADQejSS+a79pgbKS/HOZIX+lntkkuS2yTSZMomMmFt8uVhBfSq5UtOmN7NJZzgZldQXD gEdkgp4ySgDP6UuWSyFXgLP5lKiAfddX7RGFZtJGIQCHf17GW1fXNk+w9n0f77Db87jx KrJfb+O0g12cUeN4AHsDWaJasRtKSwrIfV7Ge0OlupToLz/0C0AGXnkNSOcFreSGEiP3 3uHiJd6nPehPaKSlHLVq9BFN4Vjcmn8Gwi3qtx/tJvYoKSyjInc73p8xOitAes93vE5U VaRw== X-Received: by 10.194.189.42 with SMTP id gf10mr61016467wjc.24.1388757454009; Fri, 03 Jan 2014 05:57:34 -0800 (PST) Original-Received: by 10.194.178.134 with HTTP; Fri, 3 Jan 2014 05:57:33 -0800 (PST) In-Reply-To: <87d2k9e4va.fsf@Kagami.home> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22a X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10959 Archived-At: 2014/1/3 Ian Price : [...] >> Why isn't the information about the subsequent procedures tracked? Do >> they all get inlined? > > scheme@(guile-user)> ,optimize (define (f) (define (g) (define (h) ((lambda x (cdr x)))) (h)) (g)) > $2 = (define (f) (cdr '())) > > So, yes. > > Though not relevant to this case, there is also another important factor > in your code, which is that all function calls are tail calls. So even > if you turned off optimisation, you would not see a complete backtrace. I've checked this with other implementations. Racket, Gambit and Biwa Scheme were equally uninformative. Kawa's backtrace was a nightmare to me, but perhaps someone with more knowledge would be able to infer the actual location of the error. Actually, the only implementation that exposed the exact location was Chicken. It proves that there must be a way to track this information in spite of TCO.