From unknown Tue Jun 17 20:19:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48150 <48150@debbugs.gnu.org> To: bug#48150 <48150@debbugs.gnu.org> Subject: Status: breaking gmp Reply-To: bug#48150 <48150@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:19:56 +0000 retitle 48150 breaking gmp reassign 48150 guile submitter 48150 Zefram severity 48150 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 01 21:15:03 2021 Received: (at submit) by debbugs.gnu.org; 2 May 2021 01:15:03 +0000 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 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 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 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=; 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 Date: Sun, 2 May 2021 02:14:46 +0100 From: Zefram To: bug-guile@gnu.org Subject: breaking gmp Message-ID: <20210502011446.GA10772@fysh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 02 16:01:20 2021 Received: (at 48150) by debbugs.gnu.org; 2 May 2021 20:01:20 +0000 Received: from localhost ([127.0.0.1]:44443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldIHI-0000Dg-8z for submit@debbugs.gnu.org; Sun, 02 May 2021 16:01:20 -0400 Received: from imta-37.everyone.net ([216.200.145.37]:59216 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldIHF-0000DZ-Ib for 48150@debbugs.gnu.org; Sun, 02 May 2021 16:01:19 -0400 Received: from pps.filterd (localhost.localdomain [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 142JrLbT013356; Sun, 2 May 2021 13:01:15 -0700 X-Eon-Originating-Account: WzanFZxx8BUjzbyXkGas99aVKPwWDyxfJmWbL8wljkY X-Eon-Dm: m0117124.ppops.net Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 53b92615) id m0117124.6062c7b8.30c979; Sun, 2 May 2021 13:01:14 -0700 X-Eon-Sig: AQMHrIJgjwUKjbn2pQIAAAAC,970f84c350dd91c9d331dbacddd325ba X-Eip: aFJEJVMW8karZVBaIKyZZy82Td3GPBlzTx-xfZ6xuOk Date: Sun, 2 May 2021 22:01:05 +0200 From: Bengt Richter To: Zefram Subject: Re: bug#48150: breaking gmp Message-ID: <20210502200105.GA26078@LionPure> References: <20210502011446.GA10772@fysh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210502011446.GA10772@fysh.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-ORIG-GUID: 085j_EkQTiK5fJI8Ale1PehmgpghmePY X-Proofpoint-GUID: 085j_EkQTiK5fJI8Ale1PehmgpghmePY X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-02_14:2021-04-30, 2021-05-02 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 suspectscore=0 adultscore=0 priorityscore=1501 clxscore=1034 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2105020160 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 48150 Cc: 48150@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Hi zefram. On +2021-05-02 02:14:46 +0100, Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: > 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 > > > Out of curiosity, I tried gdb on your example, running in uname -a: --8<---------------cut here---------------start------------->8--- Linux LionPure 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux --8<---------------cut here---------------end--------------->8--- which is puri.sm PureOS, a version of debian, with Wayland and Gnome, and tilix as terminal. --8<---------------cut here---------------start------------->8--- [14:22 ~/bs]$ gdb --args guile-2.2 -c '(ash 1 (ash 1 37))' GNU gdb (Debian 8.2.1-2+b3) 8.2.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from guile-2.2...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/guile-2.2 -c \(ash\ 1\ \(ash\ 1\ 37\)\) [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff755b700 (LWP 22904)] [New Thread 0x7ffff6d5a700 (LWP 22905)] [New Thread 0x7ffff6559700 (LWP 22906)] gmp: overflow in mpz type Thread 1 "guile-2.2" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7b02535 in __GI_abort () at abort.c:79 #2 0x00007ffff78790ad in __gmpz_realloc () from /lib/x86_64-linux-gnu/libgmp.so.10 #3 0x00007ffff787563e in __gmpz_mul_2exp () from /lib/x86_64-linux-gnu/libgmp.so.10 #4 0x00007ffff7eede00 in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #5 0x00007ffff7f4054f in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #6 0x00007ffff7f45d9f in scm_call_n () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #7 0x00007ffff7ec8c27 in scm_primitive_eval () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #8 0x00007ffff7ec8c83 in scm_eval () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #9 0x00007ffff7f4054f in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #10 0x00007ffff7f45d9f in scm_call_n () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #11 0x00007ffff7ec8c27 in scm_primitive_eval () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #12 0x00007ffff7ec8c83 in scm_eval () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #13 0x00007ffff7f14730 in scm_shell () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #14 0x00007ffff7edf53d in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #15 0x00007ffff7ec1e1a in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #16 0x00007ffff7f4054f in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #17 0x00007ffff7f45d9f in scm_call_n () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #18 0x00007ffff7f34794 in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #19 0x00007ffff7ec2400 in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #20 0x00007ffff7ec2495 in scm_c_with_continuation_barrier () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #21 0x00007ffff7f333a6 in ?? () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #22 0x00007ffff7a86ef5 in GC_call_with_stack_base () from /lib/x86_64-linux-gnu/libgc.so.1 #23 0x00007ffff7f33738 in scm_with_guile () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #24 0x00007ffff7edf6d2 in scm_boot_guile () from /lib/x86_64-linux-gnu/libguile-2.2.so.1 #25 0x0000555555555114 in ?? () #26 0x00007ffff7b0409b in __libc_start_main (main=0x5555555550b0, argc=3, argv=0x7fffffffde38, init=, fini=, rtld_fini=, stack_end=0x7fffffffde28) at ../csu/libc-start.c:308 #27 0x00005555555551aa in ?? () (gdb) quit A debugging session is active. Inferior 1 [process 22900] will be killed. Quit anyway? (y or n) y --8<---------------cut here---------------end--------------->8--- No time to pursue it further, but it was there in another terminal window, so I thought I'd copy-paste it as another data point. -- Regards, Bengt Richter From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 05 12:33:27 2021 Received: (at 48150-done) by debbugs.gnu.org; 5 Nov 2021 16:33:27 +0000 Received: from localhost ([127.0.0.1]:46957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj29f-000511-Al for submit@debbugs.gnu.org; Fri, 05 Nov 2021 12:33:27 -0400 Received: from mta-15-4.privateemail.com ([198.54.127.111]:39141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mj29d-00050o-Dr for 48150-done@debbugs.gnu.org; Fri, 05 Nov 2021 12:33:25 -0400 Received: from mta-15.privateemail.com (localhost [127.0.0.1]) by mta-15.privateemail.com (Postfix) with ESMTP id 1BDDA18000A6 for <48150-done@debbugs.gnu.org>; Fri, 5 Nov 2021 12:33:19 -0400 (EDT) Received: from [192.168.1.105] (unknown [10.20.151.232]) by mta-15.privateemail.com (Postfix) with ESMTPA id A20A118000AD for <48150-done@debbugs.gnu.org>; Fri, 5 Nov 2021 12:33:18 -0400 (EDT) From: lloda Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: breaking gmp Message-Id: <9186B091-39D6-4855-838E-ABC4952DAEC1@sarc.name> Date: Fri, 5 Nov 2021 17:33:16 +0100 To: 48150-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 3.7 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Fixed in bf9d30f3c3fd03cb37d604f1927e9ce5c699338b. Thanks! Content analysis details: (3.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.127.111 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.54.127.111 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 3.7 FAKE_REPLY_B No description available. X-Debbugs-Envelope-To: 48150-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Fixed in bf9d30f3c3fd03cb37d604f1927e9ce5c699338b. Thanks! Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [198.54.127.111 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.127.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.7 FAKE_REPLY_B No description available. Fixed in bf9d30f3c3fd03cb37d604f1927e9ce5c699338b. Thanks! From unknown Tue Jun 17 20:19:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Dec 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator