GNU bug report logs -
#48150
breaking gmp
Previous Next
Reported by: Zefram <zefram <at> fysh.org>
Date: Sun, 2 May 2021 01:16:02 UTC
Severity: normal
Done: lloda <lloda <at> sarc.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
With Guile 2.2.6:
$ guile-2.2 -c '(ash 1 (ash 1 37))'
gmp: overflow in mpz type
zsh: abort guile-2.2 -c '(ash 1 (ash 1 37))'
$
For shift distances of (ash 1 63) or greater Guile cleanly signals an
exception indicating the overflow. The above treatment of a range of
smaller (but still stupidly large) shift distances is less than awesome.
It would be preferable for Guile to know gmp's limits and cleanly signal
an exception, rather than exceed those limits in a way that terminates
the process outright.
-zefram
This bug report was last modified 3 years and 194 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.