From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#40008: Backtraces can contain very long strings Date: Wed, 11 Mar 2020 12:13:32 +0100 Message-ID: <875zfbm9er.fsf@gnu.org> References: <20200310114711.GA10381@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 40008@debbugs.gnu.org To: Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Mar 11 12:14:08 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBzJP-0005oz-VC for guile-bugs@m.gmane-mx.org; Wed, 11 Mar 2020 12:14:07 +0100 Original-Received: from localhost ([::1]:49680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBzJP-0001B0-22 for guile-bugs@m.gmane-mx.org; Wed, 11 Mar 2020 07:14:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54657) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBzJK-0001Ap-Uk for bug-guile@gnu.org; Wed, 11 Mar 2020 07:14:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBzJJ-0005S5-SZ for bug-guile@gnu.org; Wed, 11 Mar 2020 07:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBzJJ-0005Rp-Ot for bug-guile@gnu.org; Wed, 11 Mar 2020 07:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jBzJJ-0007vG-LT for bug-guile@gnu.org; Wed, 11 Mar 2020 07:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 11 Mar 2020 11:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40008 X-GNU-PR-Package: guile Original-Received: via spool by 40008-submit@debbugs.gnu.org id=B40008.158392522330421 (code B ref 40008); Wed, 11 Mar 2020 11:14:01 +0000 Original-Received: (at 40008) by debbugs.gnu.org; 11 Mar 2020 11:13:43 +0000 Original-Received: from localhost ([127.0.0.1]:53672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBzJ0-0007ub-S6 for submit@debbugs.gnu.org; Wed, 11 Mar 2020 07:13:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jBzIy-0007uM-P9 for 40008@debbugs.gnu.org; Wed, 11 Mar 2020 07:13:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jBzIt-0004um-Ch; Wed, 11 Mar 2020 07:13:35 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37822 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jBzIr-0006ih-JG; Wed, 11 Mar 2020 07:13:34 -0400 In-Reply-To: <20200310114711.GA10381@tuxteam.de> (tomas@tuxteam.de's message of "Tue, 10 Mar 2020 12:47:11 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9642 Archived-At: Hi, skribis: > On Tue, Mar 10, 2020 at 11:05:24AM +0100, Jan Synacek wrote: >> I have the following backtrace: >>=20 >> Backtrace: >> In ice-9/boot-9.scm: >> 1736:10 9 (with-exception-handler _ _ #:unwind? _ # _) >> In unknown file: >> 8 (apply-smob/0 #) >> In ice-9/boot-9.scm: >> 718:2 7 (call-with-prompt _ _ #) >> In ice-9/eval.scm: >> 619:8 6 (_ #(#(#))) >> In ice-9/boot-9.scm: >> 2806:4 5 (save-module-excursion _) >> 4351:12 4 (_) >> In /home/jsynacek/./git.scm: >> 72:0 3 (_) >> 61:16 2 (change-spec _ _ "66.33" _ #) >> 48:12 1 (change-release "# We ship a .pc file but don't want t=E2= =80=A6" =E2=80=A6) >> In unknown file: >> 0 (make-regexp "^Release:(\\s*).*$" "# We ship a .pc fil=E2= =80=A6" =E2=80=A6) >>=20 >> ERROR: In procedure make-regexp: >> Wrong type (expecting exact integer): " >> >> " >>=20 >> While this is probably not considered an error, I guess it might be bett= er >> to ellipsize strings in errors such is mine that are over a certain leng= th >> long. The important part of the backtrace was scrolled away and I got >> confused about the string, as I thought it was part of the output and >> started wondering why (display ...) keeps the escaped newlines in the >> string. > > Some want it, some want it not. I remember a couple of discussions > in guile-user and guile-devel about this topic. > > Have you tried setting debug options `width' and/or `depth' (cf. procedure > `debug-options')? > > (my current defaults are 79 columns/20 rows, this is Guile 3.0). The backtrace itself is ellipsized, but the value displayed in the exception (the long string above) is not. I would rather not ellipsize anything in the exception itself. Thoughts? Ludo=E2=80=99.