From unknown Thu Sep 11 16:06:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39509 <39509@debbugs.gnu.org> To: bug#39509 <39509@debbugs.gnu.org> Subject: Status: Incorrect expansion of 'error' calls with non-constant argument Reply-To: bug#39509 <39509@debbugs.gnu.org> Date: Thu, 11 Sep 2025 23:06:16 +0000 retitle 39509 Incorrect expansion of 'error' calls with non-constant argume= nt reassign 39509 guile submitter 39509 Klaus Stehle severity 39509 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 03:41:19 2020 Received: (at submit) by debbugs.gnu.org; 8 Feb 2020 08:41:19 +0000 Received: from localhost ([127.0.0.1]:50594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Lfz-0002AR-2x for submit@debbugs.gnu.org; Sat, 08 Feb 2020 03:41:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:60189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Lfx-0002AJ-Cz for submit@debbugs.gnu.org; Sat, 08 Feb 2020 03:41:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53727) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Lfw-0003rc-Bl for bug-guile@gnu.org; Sat, 08 Feb 2020 03:41:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0Lfv-0000MR-3t for bug-guile@gnu.org; Sat, 08 Feb 2020 03:41:16 -0500 Received: from mx03.uni-tuebingen.de ([134.2.5.213]:57806) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j0Lfu-0008UP-Tq for bug-guile@gnu.org; Sat, 08 Feb 2020 03:41:15 -0500 Received: from webmail1.uni-tuebingen.de (webmail1.uni-tuebingen.de [134.2.5.194]) by mx03.uni-tuebingen.de (Postfix) with ESMTPS id 9DC3A8497F for ; Sat, 8 Feb 2020 09:41:03 +0100 (CET) Received: from webmail1.uni-tuebingen.de (localhost [127.0.0.1]) by webmail1.uni-tuebingen.de (Postfix) with ESMTPS id 972CC114D9B3E for ; Sat, 8 Feb 2020 09:41:03 +0100 (CET) Received: from dslb-092-078-205-035.092.078.pools.vodafone-ip.de (dslb-092-078-205-035.092.078.pools.vodafone-ip.de [92.78.205.35]) by webmail.uni-tuebingen.de (Horde Framework) with HTTPS; Sat, 08 Feb 2020 09:41:03 +0100 Date: Sat, 08 Feb 2020 09:41:03 +0100 Message-ID: <20200208094103.Horde.krHZmxII44Qu3ouivhN9Scu@webmail.uni-tuebingen.de> From: Klaus Stehle To: bug-guile@gnu.org Subject: guile-3.0.0: Error while printing exception User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 134.2.5.213 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi, a strange problem with guile-3.0.0 ... ;; (I) This one-line program shows an error message, no problem: (error "We want to see this error message!") ;; (II) A similar program doesn't show the message, if it has been compiled: (error (format #f "We want to see this error message!")) ;; The compiled program II says: "Error while printing exception". ;; It doesn't matter which function produces the string for the error message. ;; The compiled version does not work, if the message string is the returned ;; value of a function. The pure example: (error ((lambda () "If compiled we won't see this error message!"))) Best regards, Klaus From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 12:09:51 2020 Received: (at 39509-done) by debbugs.gnu.org; 6 Mar 2020 17:09:51 +0000 Received: from localhost ([127.0.0.1]:45838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGTv-0001q7-Hy for submit@debbugs.gnu.org; Fri, 06 Mar 2020 12:09:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGTu-0001pv-91 for 39509-done@debbugs.gnu.org; Fri, 06 Mar 2020 12:09:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAGTn-0006LT-LE; Fri, 06 Mar 2020 12:09:43 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60374 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAGTn-00015Y-5M; Fri, 06 Mar 2020 12:09:43 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Klaus Stehle Subject: Re: bug#39509: guile-3.0.0: Error while printing exception References: <20200208094103.Horde.krHZmxII44Qu3ouivhN9Scu@webmail.uni-tuebingen.de> Date: Fri, 06 Mar 2020 18:09:39 +0100 In-Reply-To: <20200208094103.Horde.krHZmxII44Qu3ouivhN9Scu@webmail.uni-tuebingen.de> (Klaus Stehle's message of "Sat, 08 Feb 2020 09:41:03 +0100") Message-ID: <87o8t9l8a4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39509-done Cc: 39509-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Klaus, Klaus Stehle skribis: > ;; The compiled program II says: "Error while printing exception". > ;; It doesn't matter which function produces the string for the error mes= sage. > ;; The compiled version does not work, if the message string is the retur= ned > ;; value of a function. The pure example: > > (error ((lambda () "If compiled we won't see this error message!"))) This is now fixed in commit d49453259bf97aed6d7e41d1bb364b62310c088f, which will be in 3.0.1. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 12:13:46 2020 Received: (at control) by debbugs.gnu.org; 6 Mar 2020 17:13:47 +0000 Received: from localhost ([127.0.0.1]:45857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGXi-0001x1-N1 for submit@debbugs.gnu.org; Fri, 06 Mar 2020 12:13:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAGXh-0001wo-NY for control@debbugs.gnu.org; Fri, 06 Mar 2020 12:13:46 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jAGXb-0006Wu-Iv for control@debbugs.gnu.org; Fri, 06 Mar 2020 12:13:40 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60390 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jAGXb-0001cy-1v for control@debbugs.gnu.org; Fri, 06 Mar 2020 12:13:39 -0500 Date: Fri, 06 Mar 2020 18:13:37 +0100 Message-Id: <87imjhl83i.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #39509 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) retitle 39509 Incorrect expansion of 'error' calls with non-constant argument quit From unknown Thu Sep 11 16:06:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Apr 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator