From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#36677: [PATCH] Don't truncate backtraces Date: Wed, 17 Jul 2019 13:57:41 -0400 Message-ID: <87ef2ownkf.fsf@netris.org> References: <20190715202918.92925-1-rob@vllmrt.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183343"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 36677@debbugs.gnu.org To: Robert Vollmert Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 17 20:00:10 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 1hnoDq-000lVw-0V for guile-bugs@m.gmane.org; Wed, 17 Jul 2019 20:00:10 +0200 Original-Received: from localhost ([::1]:59452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnoDo-00024n-BN for guile-bugs@m.gmane.org; Wed, 17 Jul 2019 14:00:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48350) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnoDl-00024g-IZ for bug-guile@gnu.org; Wed, 17 Jul 2019 14:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnoDi-0007Aa-W8 for bug-guile@gnu.org; Wed, 17 Jul 2019 14:00:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnoDi-00079A-SO for bug-guile@gnu.org; Wed, 17 Jul 2019 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnoDi-00030p-NU for bug-guile@gnu.org; Wed, 17 Jul 2019 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 17 Jul 2019 18:00: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.156338640011544 (code B ref 36677); Wed, 17 Jul 2019 18:00:02 +0000 Original-Received: (at 36677) by debbugs.gnu.org; 17 Jul 2019 18:00:00 +0000 Original-Received: from localhost ([127.0.0.1]:52938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnoDg-000308-DM for submit@debbugs.gnu.org; Wed, 17 Jul 2019 14:00:00 -0400 Original-Received: from world.peace.net ([64.112.178.59]:55604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnoDf-0002zu-6m for 36677@debbugs.gnu.org; Wed, 17 Jul 2019 13:59:59 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnoDY-0001EJ-NQ; Wed, 17 Jul 2019 13:59:52 -0400 In-Reply-To: <20190715202918.92925-1-rob@vllmrt.net> (Robert Vollmert's message of "Mon, 15 Jul 2019 22:29:19 +0200") 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:9399 Archived-At: Hi Robert, Robert Vollmert writes: > * 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. > --- > > 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. 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. 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. Thanks, Mark