Subject: bug#48150: closed (Re: breaking gmp)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 05 Nov 2021 16:34:02 +0000

Your bug report

#48150: breaking gmp

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
48150: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48150
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: breaking gmp
From: lloda <[email-masked]>
To: [email-masked]
Date: Fri, 5 Nov 2021 17:33:16 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed in bf9d30f3c3fd03cb37d604f1927e9ce5c699338b. Thanks!

Subject: breaking gmp
From: Zefram <[email-masked]>
To: [email-masked]
Date: Sun, 2 May 2021 02:14:46 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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