GNU bug report logs - #39509
Incorrect expansion of 'error' calls with non-constant argument

Previous Next

Package: guile;

Reported by: Klaus Stehle <klaus.stehle <at> uni-tuebingen.de>

Date: Sat, 8 Feb 2020 08:42:02 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39509 in the body.
You can then email your comments to 39509 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#39509; Package guile. (Sat, 08 Feb 2020 08:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Klaus Stehle <klaus.stehle <at> uni-tuebingen.de>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 08 Feb 2020 08:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Klaus Stehle <klaus.stehle <at> uni-tuebingen.de>
To: bug-guile <at> gnu.org
Subject: guile-3.0.0: Error while printing exception
Date: Sat, 08 Feb 2020 09:41:03 +0100
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







Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 06 Mar 2020 17:10:01 GMT) Full text and rfc822 format available.

Notification sent to Klaus Stehle <klaus.stehle <at> uni-tuebingen.de>:
bug acknowledged by developer. (Fri, 06 Mar 2020 17:10:05 GMT) Full text and rfc822 format available.

Message #10 received at 39509-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Klaus Stehle <klaus.stehle <at> uni-tuebingen.de>
Cc: 39509-done <at> debbugs.gnu.org
Subject: Re: bug#39509: guile-3.0.0: Error while printing exception
Date: Fri, 06 Mar 2020 18:09:39 +0100
Hi Klaus,

Klaus Stehle <klaus.stehle <at> uni-tuebingen.de> skribis:

> ;; 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!")))

This is now fixed in commit d49453259bf97aed6d7e41d1bb364b62310c088f,
which will be in 3.0.1.

Thanks!

Ludo’.




Changed bug title to 'Incorrect expansion of 'error' calls with non-constant argument' from 'guile-3.0.0: Error while printing exception' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 06 Mar 2020 17:14:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Apr 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.