From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: bug#36677: [PATCH] Don't truncate backtraces Date: Sun, 21 Jul 2019 19:59:43 -0300 Message-ID: <20190721195943.096ebac6@capac> References: <20190715202918.92925-1-rob@vllmrt.net> <87ef2ownkf.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/UOt=g2tr_=yla1Zg09sCTw="; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="3796"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36677@debbugs.gnu.org, Robert Vollmert To: Mark H Weaver Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jul 22 01:00:08 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 1hpKoJ-0000pe-RN for guile-bugs@m.gmane.org; Mon, 22 Jul 2019 01:00:07 +0200 Original-Received: from localhost ([::1]:57988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpKoI-0000cO-Sg for guile-bugs@m.gmane.org; Sun, 21 Jul 2019 19:00:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54114) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpKoF-0000c6-SU for bug-guile@gnu.org; Sun, 21 Jul 2019 19:00:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpKoE-0007yp-M0 for bug-guile@gnu.org; Sun, 21 Jul 2019 19:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpKoE-0007xy-Hx for bug-guile@gnu.org; Sun, 21 Jul 2019 19:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpKoE-0007KG-Dm for bug-guile@gnu.org; Sun, 21 Jul 2019 19:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Pirotte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 21 Jul 2019 23: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.156374999628125 (code B ref 36677); Sun, 21 Jul 2019 23:00:02 +0000 Original-Received: (at 36677) by debbugs.gnu.org; 21 Jul 2019 22:59:56 +0000 Original-Received: from localhost ([127.0.0.1]:59670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpKo8-0007JZ-Ay for submit@debbugs.gnu.org; Sun, 21 Jul 2019 18:59:56 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:39452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpKo6-0007JK-FJ for 36677@debbugs.gnu.org; Sun, 21 Jul 2019 18:59:55 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 181221BE008D; Mon, 22 Jul 2019 00:59:53 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YiMYN7Pv-9D4; Mon, 22 Jul 2019 00:59:53 +0200 (CEST) Original-Received: from capac (unknown [189.122.155.59]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 05BD71BE0086; Mon, 22 Jul 2019 00:59:51 +0200 (CEST) In-Reply-To: <87ef2ownkf.fsf@netris.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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:9403 Archived-At: --Sig_/UOt=g2tr_=yla1Zg09sCTw= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Mark, > > 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. I am very pleased to read that you think it is important to enable truncated printing as a default for backtrace, I think so to. But maybe Guile could p= rovide an easy mechanism to overwrite these defaults, using procedures, or parameters= ? (not depending on an 'external' variable I mean (*) I wrote "these defaults", "procedures or parameters", using plural, because= I think that the default should also enable truncated printing for the repl and the raised exception system, what do you think? I wrote about this a couple of times, and as a gentle ping, here is my last= email about this request, which is a good summary which also points to other disc= ussion on this topic: https://lists.gnu.org/archive/html/guile-devel/2019-05/msg00034.html David. (*) if an easy mechanism would depends on variables, let's make these Guile variable then. like GUILE_BACKTRACE_PRINTER_TO_USE_N_COLUMN_AT_MOST (or what ever, I am not the best to name things ...), GUILE_REPL_PRINTER_TO_USE_N_COLUMN_AT_MOST and GUILE_RAISED_EXCEPTION_SYSTEM_TO_USE_N_COLUMN_AT_MOST, with -1 meaning no truncated printing ... But I would prefer procedures to set these, 'keeping' the default to be what truncated-print uses as defined 'now', in (ice-9 pretty-print), so we coul= d use them in our repl, our .guile, or the global init.scm setting, and change th= at on the fly as we wish ... as for the procedure names, or one procedure and two arg= s, one for the parmeter to set, one for the value ... let's think about it ... --Sig_/UOt=g2tr_=yla1Zg09sCTw= Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAl007l8ACgkQ83T9k6MF etfXzAf/cm1L65b2npLdjB/CpH+r2Vsjxfp7g4J29TBSAEmopVpoaDXA16wlpJ5z 53V2KkhX7pIrAXoeci46h7af/NRPSWkgfOZ/popEyxcfHpmZpluFVJ72wCIx4+b5 gBbe2pdp1ROoAjNF+lUUaWElZwLCLSWxZ6dnj95aRsLyZxllQfstQczXYNovMlwd 4CuoIlXssn85wMUdlUgh1wgHzUMNUqwRLvSL7Zt7Gf47cZrPQlkvkp7X6OX7fogl EEh6zgefYWR5R7RLvrThIdHfJ5S3BMhAYVV2KElUcX+uFbr7ZOrciKslGtkm4Yka FKDhbW/GHCX0nteHmZLKjAd28fPS3w== =+MGU -----END PGP SIGNATURE----- --Sig_/UOt=g2tr_=yla1Zg09sCTw=--