unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#48150: breaking gmp
@ 2021-05-02  1:14 Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language
  2021-05-02 20:01 ` Bengt Richter
  2021-11-05 16:33 ` lloda
  0 siblings, 2 replies; 3+ messages in thread
From: Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2021-05-02  1:14 UTC (permalink / raw)
  To: 48150

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-05 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-02  1:14 bug#48150: breaking gmp Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language
2021-05-02 20:01 ` Bengt Richter
2021-11-05 16:33 ` lloda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).