From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#32463: 27.0.50; (logior -1) => 4611686018427387903 Date: Sun, 19 Aug 2018 03:59:21 -0700 Organization: UCLA Computer Science Department Message-ID: References: <5230a57b-5896-606d-f157-2e547710b6e8@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1534676290 7383 195.159.176.226 (19 Aug 2018 10:58:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 10:58:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: andrewjmoreton@gmail.com, 32463@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 19 12:58:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frLPH-0001j0-RE for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2018 12:58:03 +0200 Original-Received: from localhost ([::1]:42388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frLRM-0004cY-JN for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Aug 2018 07:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frLRG-0004cE-Mx for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2018 07:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frLRC-0008FV-HP for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2018 07:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frLRC-0008FC-CU for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2018 07:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frLRC-0001WI-9e for bug-gnu-emacs@gnu.org; Sun, 19 Aug 2018 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Aug 2018 11:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32463 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32463-submit@debbugs.gnu.org id=B32463.15346763715783 (code B ref 32463); Sun, 19 Aug 2018 11:00:02 +0000 Original-Received: (at 32463) by debbugs.gnu.org; 19 Aug 2018 10:59:31 +0000 Original-Received: from localhost ([127.0.0.1]:54420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frLQf-0001VA-BN for submit@debbugs.gnu.org; Sun, 19 Aug 2018 06:59:29 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frLQe-0001Uy-FQ for 32463@debbugs.gnu.org; Sun, 19 Aug 2018 06:59:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CB15F16081D; Sun, 19 Aug 2018 03:59:22 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uOM1BIZvsJcj; Sun, 19 Aug 2018 03:59:22 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 180C516087B; Sun, 19 Aug 2018 03:59:22 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gp9Ek0_ke5B2; Sun, 19 Aug 2018 03:59:21 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B0C5B16081D; Sun, 19 Aug 2018 03:59:21 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149591 Archived-At: Pip Cet wrote: > Even if memory isn't exhausted, creating a bignum larger than 16 GB > (our most-positive-bignum) results in an immediate crash with external > libgmp (Linux, x86_64), and that appears not to be easy to fix without > modifying gmp. Is there a libgmp bug report for this? or is there a reasonable way to characterize this arbitrary limitation in libgmp, so that Emacs does not go over the limit and crash? I've already put in one limit, and we can tighten that limit (or add more checks) if we know what libgmp's limits are. > That and left shifts are probably the ones to worry about for now. > Creating a large bignum by repeated multiplication will require at > least some intermediate bignums, which need to be allocated and copied > and thus probably alert the user to something going on. expt does bignums now too, so that's one more point of failure in this area.