From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Newsgroups: gmane.lisp.guile.bugs
Subject: bug#60799: Bogus 'Error while printing exception' message when
 raising srfi-35 exception
Date: Fri, 13 Jan 2023 20:30:44 -0500
Message-ID: <87v8l9ewcb.fsf@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="38564"; mail-complaints-to="usenet@ciao.gmane.io"
To: 60799@debbugs.gnu.org
Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Jan 14 02:31:18 2023
Return-path: <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>
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 <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>)
	id 1pGVO9-0009pP-FQ
	for guile-bugs@m.gmane-mx.org; Sat, 14 Jan 2023 02:31:17 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guile-bounces@gnu.org>)
	id 1pGVNx-00083i-KH; Fri, 13 Jan 2023 20:31:05 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pGVNv-00083Y-LL
 for bug-guile@gnu.org; Fri, 13 Jan 2023 20:31:03 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1pGVNv-0006qh-3L
 for bug-guile@gnu.org; Fri, 13 Jan 2023 20:31:03 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pGVNu-0005nq-Jh
 for bug-guile@gnu.org; Fri, 13 Jan 2023 20:31:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guile@gnu.org
Resent-Date: Sat, 14 Jan 2023 01:31:02 +0000
Resent-Message-ID: <handler.60799.B.167365985222286@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 60799
X-GNU-PR-Package: guile
X-Debbugs-Original-To: bug-guile <bug-guile@gnu.org>
Original-Received: via spool by submit@debbugs.gnu.org id=B.167365985222286
 (code B ref -1); Sat, 14 Jan 2023 01:31:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 14 Jan 2023 01:30:52 +0000
Original-Received: from localhost ([127.0.0.1]:52820 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1pGVNj-0005nO-MQ
 for submit@debbugs.gnu.org; Fri, 13 Jan 2023 20:30:51 -0500
Original-Received: from lists.gnu.org ([209.51.188.17]:35318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1pGVNh-0005nG-HY
 for submit@debbugs.gnu.org; Fri, 13 Jan 2023 20:30:50 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>)
 id 1pGVNh-00082x-6Y
 for bug-guile@gnu.org; Fri, 13 Jan 2023 20:30:49 -0500
Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>)
 id 1pGVNf-0006lO-NT
 for bug-guile@gnu.org; Fri, 13 Jan 2023 20:30:48 -0500
Original-Received: by mail-qt1-x834.google.com with SMTP id fa5so15184459qtb.11
 for <bug-guile@gnu.org>; Fri, 13 Jan 2023 17:30:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=yo+SArqdaeRbT6tSkcuwH9oAZEyK4ch0+Ww0rYC0IQ4=;
 b=kEK5UaGII1w2ffyhNU41bXoOIdmX2f9gcZtt1Knvme4479EvhxktBJLbSs9FQpCKcT
 Qk3YONWk4hiPsK2eUFx9SBRkrGCNh9NplKkblirYYYQOSWTgJFePsLkE0oK52b3vJn0d
 R/NmUnDogqb5BJlq3bNo0qXOC0nNe5biu1XqGzvR9GY5l0MeX6QnKvI1ei9ly/kuytI9
 3sBqtU98HbEzZmeMGkwb0d6BR9ecuxyKlZjG659tL9oOSQOFhuTo6NdguMx1scbJp6ZB
 ZfXVUD0BvXv2fTktqqLCINnguqFZpo4gGSEH/aEthd1VEkxDDed+SMUabCDctGBuYYD2
 /fLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=yo+SArqdaeRbT6tSkcuwH9oAZEyK4ch0+Ww0rYC0IQ4=;
 b=bzKqsBfMtzSIp1fYgp48sj5QH7r84lVVy9DmbF6OKMNHa9iArMOBMs7m6NMpm94ED0
 +SefL42lgkIOzpOr4N7inbJqx0TmzpwPCj+dBWPCN2cf31jVIg6xAFgybaqlxRxF2qpE
 chk3XaTLicSViOIh2gp5k1rLVsSyZTOswGAxWS860rFeHt/IpNb9+9XTMC9YLv/PQtUQ
 5cHmkCb6FJp49R1847Q0htFw305MY6HmwQjfKGG7GciqWVYBH1bIeLnZhPHzwIFLcIDi
 moAmjENaB7yLSZKgQpiOJ+wJsCBDAy5cTPn+zdM/TZJl//vzH8LcuaqtsXrMeKeBJ/VV
 mvqQ==
X-Gm-Message-State: AFqh2kp0pntjk7uKz2SeZBKVrRGY0k0XUBIHlPKEz0en4tBehFUydzGy
 zcFQkdZA1R9j6QVb1vQwhqWqvkz95pkNWJZF
X-Google-Smtp-Source: AMrXdXvAfgwVwV77HzoEbN3nnj55DSfM93A6xppYQhIHctiy82XWkvO1KN5ZvZFHBcnvayClx+jTfA==
X-Received: by 2002:ac8:67d5:0:b0:3ae:7b4b:fb32 with SMTP id
 r21-20020ac867d5000000b003ae7b4bfb32mr26051568qtp.48.1673659846067; 
 Fri, 13 Jan 2023 17:30:46 -0800 (PST)
Original-Received: from hurd (dsl-10-149-10.b2b2c.ca. [72.10.149.10])
 by smtp.gmail.com with ESMTPSA id
 k8-20020ac80748000000b0038b684a1642sm11296944qth.32.2023.01.13.17.30.45
 for <bug-guile@gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 13 Jan 2023 17:30:45 -0800 (PST)
Received-SPF: pass client-ip=2607:f8b0:4864:20::834;
 envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x834.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guile@gnu.org
List-Id: "Bug reports for GUILE,
 GNU's Ubiquitous Extension Language" <bug-guile.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guile>
List-Post: <mailto:bug-guile@gnu.org>
List-Help: <mailto:bug-guile-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=subscribe>
Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.lisp.guile.bugs:10514
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.bugs/10514>

Hello Guile,

When raising a srfi-35 defined exception type like in the following, a
generic (and unhelpful) "Error while printing exception" message is
shown, with not even the exception type mentioned:

--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-35))

(define-condition-type &platform-not-found-error &error
  platform-not-found-error?)

(raise-exception &platform-not-found-error)
--8<---------------cut here---------------end--------------->8---

Produces:

--8<---------------cut here---------------start------------->8---
Backtrace:
In ice-9/boot-9.scm:
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
           4 (apply-smob/0 #<thunk 7f236157a2e0>)
In ice-9/boot-9.scm:
    724:2  3 (call-with-prompt _ _ #<procedure default-prompt-handle=E2=80=
=A6>)
In ice-9/eval.scm:
    619:8  2 (_ #(#(#<directory (guile-user) 7f2361580c80>)))
In ice-9/boot-9.scm:
   2836:4  1 (save-module-excursion _)
  4388:12  0 (_)

ice-9/boot-9.scm:4388:12: Error while printing exception.
--8<---------------cut here---------------end--------------->8---

This is probably not by design, right?

--=20
Thanks,
Maxim