GNU bug report logs - #46232
‘Wrong type argument ...’ exception when printing backtrace after interrupt

Previous Next

Package: guile;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Mon, 1 Feb 2021 10:53:01 UTC

Severity: normal

To reply to this bug, email your comments to 46232 AT debbugs.gnu.org.

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#46232; Package guile. (Mon, 01 Feb 2021 10:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maximedevos <at> telenet.be>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Mon, 01 Feb 2021 10:53:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guile <at> gnu.org
Cc: maximedevos <at> telenet.be
Subject: ‘Wrong type argument ...’ exception when printing backtrace after
 interrupt
Date: Mon, 01 Feb 2021 11:52:36 +0100
[Message part 1 (text/plain, inline)]
Hi guilers!

When entering sleeping code in the REPL, then interrupting it
(C-c) and entering ,bt twice, I receive an error message from ,bt:

[Message part 2 (text/plain, inline)]
GNU Guile 3.0.5
[...]
Enter `,help' for help.
scheme@(guile-user)> (let ((mu (make-mutex))) (with-mutex mu (wait-condition-variable (make-condition-variable) mu)))
^Cice-9/boot-9.scm:1669:16: In procedure raise-exception:
User interrupt

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In current input:
     1:40  4 (_)
In unknown file:
While executing meta-command:
In procedure program-code: Wrong type argument in position 1 (expecting PROGRAM_P): #t
scheme@(guile-user) [1]> 
[Message part 3 (text/plain, inline)]
I've found two variants so far, sleep/0 and sleep/1:

[Message part 4 (application/scheme, inline)]
[Message part 5 (text/plain, inline)]
For sleep/1, the error message is different:
[Message part 6 (text/plain, inline)]
scheme@(guile-user)> (sleep/1)
^Cice-9/boot-9.scm:1669:16: In procedure raise-exception:
User interrupt

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In system/repl/repl.scm:
   159:22  4 (_)
In ice-9/boot-9.scm:
   2170:4  3 (%start-stack _ _)
In unknown file:
While executing meta-command:
In procedure frame-local-ref: Argument 2 out of range: 0
scheme@(guile-user) [1]> 
[Message part 7 (text/plain, inline)]
Could folks familiar with interrupts, the REPL and backtraces
take a look?

Maxime.
P.S. I'm not subscribed to bug-guile, please add me to To:
or CC:.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 83 days ago.

Previous Next


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