From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zefram via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" Newsgroups: gmane.lisp.guile.bugs Subject: bug#48150: breaking gmp Date: Sun, 2 May 2021 02:14:46 +0100 Message-ID: <20210502011446.GA10772@fysh.org> Reply-To: Zefram Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27472"; mail-complaints-to="usenet@ciao.gmane.io" To: 48150@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun May 02 03:16:10 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ld0iP-00073y-GE for guile-bugs@m.gmane-mx.org; Sun, 02 May 2021 03:16:09 +0200 Original-Received: from localhost ([::1]:55346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld0iO-0007Vq-Bp for guile-bugs@m.gmane-mx.org; Sat, 01 May 2021 21:16:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld0iJ-0007Vh-Hq for bug-guile@gnu.org; Sat, 01 May 2021 21:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ld0iJ-0000eG-3P for bug-guile@gnu.org; Sat, 01 May 2021 21:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ld0iI-0007zx-Kk for bug-guile@gnu.org; Sat, 01 May 2021 21:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zefram Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 02 May 2021 01:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48150 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161991810330726 (code B ref -1); Sun, 02 May 2021 01:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2021 01:15:03 +0000 Original-Received: from localhost ([127.0.0.1]:39505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld0hL-0007zW-4s for submit@debbugs.gnu.org; Sat, 01 May 2021 21:15:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld0hJ-0007yu-Qx for submit@debbugs.gnu.org; Sat, 01 May 2021 21:15:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld0hJ-0007Lp-Kb for bug-guile@gnu.org; Sat, 01 May 2021 21:15:01 -0400 Original-Received: from mail.fysh.org ([2001:41d0:d:20da::7]:54622 helo=river.fysh.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld0hH-0008Le-Fp for bug-guile@gnu.org; Sat, 01 May 2021 21:15:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fysh.org; s=20170316; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=EIyxD21oFP0aH8iDQDTvodABlxh8xbPn3yOsYYmbKOk=; b=z4cIJim1bnx3LUNUbnOCa18XSA jRgtdlSjXUZwziVUn+DdYIvY4JYQbowZmSTFY1tQ/3K3bl7iaxORaErVw2A0ZNPe2wjTO7tYvMFio h+KPM280BnkJK/so90GAJE2Nmyy4E5bBMFstHUt7Mj+XvUcr7V+fOYIGo4ab31rDFvMw=; Original-Received: from zefram by river.fysh.org with local (Exim 4.92 #3 (Debian)) id 1ld0h4-0003xa-AD; Sun, 02 May 2021 02:14:47 +0100 Content-Disposition: inline Received-SPF: pass client-ip=2001:41d0:d:20da::7; envelope-from=zefram@fysh.org; helo=river.fysh.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10028 Archived-At: 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