GNU bug report logs - #56543
bitwise-rotate-bit-field causes gmp overflow

Previous Next

Package: guile;

Reported by: Jason Hemann <jason.hemann <at> gmail.com>

Date: Wed, 13 Jul 2022 22:16:02 UTC

Severity: normal

To reply to this bug, email your comments to 56543 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#56543; Package guile. (Wed, 13 Jul 2022 22:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jason Hemann <jason.hemann <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 13 Jul 2022 22:16:02 GMT) Full text and rfc822 format available.

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

From: Jason Hemann <jason.hemann <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: bitwise-rotate-bit-field causes gmp overflow
Date: Wed, 13 Jul 2022 17:55:25 -0400
[Message part 1 (text/plain, inline)]
When I run Göran Weinholt's schjig <https://gitlab.com/weinholt/schjig>'s
`schjig.scm` against guile 3.0.8 I encounter the following error. Please
notice that I first switch on r6rs compatibility mode. I have no `.guile`
file. I did not see this listed on the R6RS incompatibilities
<https://www.gnu.org/software/guile/manual/html_node/R6RS-Incompatibilities.html>.
Is this a bug, either in guile or gmp?

```shell
$ guile
(install-r6rs!)
(load "schjig.scm")
...
(check (bitwise-rotate-bit-field 573972483446053417 1238 4006 -1627) =>
(quote 573972483446053417))
gmp: overflow in mpz type
Abort trap: 6
```

Best,

JBH
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 286 days ago.

Previous Next


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