From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Vollmert Newsgroups: gmane.lisp.guile.bugs Subject: bug#36677: [PATCH] Don't truncate backtraces Date: Wed, 17 Jul 2019 20:11:24 +0200 Message-ID: <827D6B68-7E10-47BD-9419-A8471C9A0090@vllmrt.net> References: <20190715202918.92925-1-rob@vllmrt.net> <87ef2ownkf.fsf@netris.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233739"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36677@debbugs.gnu.org To: Mark H Weaver Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 17 20:12:07 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnoPP-000yg1-EQ for guile-bugs@m.gmane.org; Wed, 17 Jul 2019 20:12:07 +0200 Original-Received: from localhost ([::1]:59520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnoPO-0006m0-C6 for guile-bugs@m.gmane.org; Wed, 17 Jul 2019 14:12:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51627) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnoPL-0006kg-Ss for bug-guile@gnu.org; Wed, 17 Jul 2019 14:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnoPK-0006wO-Le for bug-guile@gnu.org; Wed, 17 Jul 2019 14:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnoPK-0006wC-I5 for bug-guile@gnu.org; Wed, 17 Jul 2019 14:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnoPK-0003L8-Bn for bug-guile@gnu.org; Wed, 17 Jul 2019 14:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 17 Jul 2019 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36677 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 36677-submit@debbugs.gnu.org id=B36677.156338710612806 (code B ref 36677); Wed, 17 Jul 2019 18:12:02 +0000 Original-Received: (at 36677) by debbugs.gnu.org; 17 Jul 2019 18:11:46 +0000 Original-Received: from localhost ([127.0.0.1]:52973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnoP3-0003KU-V6 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 14:11:46 -0400 Original-Received: from mx1.mailbox.org ([80.241.60.212]:10582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnoP1-0003KG-Ec for 36677@debbugs.gnu.org; Wed, 17 Jul 2019 14:11:44 -0400 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9303A4D92E; Wed, 17 Jul 2019 20:11:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id Nu9ws54Bo4Kz; Wed, 17 Jul 2019 20:11:27 +0200 (CEST) In-Reply-To: <87ef2ownkf.fsf@netris.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9400 Archived-At: > On 17. Jul 2019, at 19:57, Mark H Weaver wrote: >=20 > Hi Robert, >=20 > Robert Vollmert writes: >=20 >> * module/system/repl/debug.scm (print-frame): Print full object if >> width keyword is #f. >> * libguile/backtrace.c (display_backtrace_body): Call print-frames >> with #:width #f. >> --- >>=20 >> This change was prompted by recent discussion on the Guix lists: >> https://lists.gnu.org/archive/html/guix-devel/2019-07/msg00207.html >> In Guix, the truncation of stack traces frequently obscures >> important information due to the long filenames. >=20 > I'm sympathetic to this problem, but simply disabling the truncated > printing during backtraces is not workable. It is quite often the = case > that some of the structures printed in backtraces are *huge*, or even > cyclic. >=20 > Have you tried setting the COLUMNS environment variable to a larger > value? I'd prefer a solution along those lines, where the user can = set > an environment variable to ask for less truncation in backtraces. Defaulting to something longer than 80 might be workable, say 250? I don=E2=80=99t think that it should be necessary to set an environment = variable to get usable stack traces=E2=80=A6