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

Full log


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 2 years and 336 days ago.

Previous Next


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