From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Coleman Newsgroups: gmane.emacs.bugs Subject: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit GNU/Linux box Date: Sat, 28 Mar 2009 11:27:57 -0500 Message-ID: <3c6c07c20903280927k4b08ce52m3368a2ed6a9996f8@mail.gmail.com> References: <3c6c07c20903260850r180e942dscb2c61d1096793f8@mail.gmail.com> <3c6c07c20903270927y5292e32as857233aa1fd75737@mail.gmail.com> Reply-To: Mike Coleman , 2790@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238258648 29727 80.91.229.12 (28 Mar 2009 16:44:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2009 16:44:08 +0000 (UTC) Cc: 2790@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 28 17:45:24 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lnbes-0000hN-BE for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 17:45:22 +0100 Original-Received: from localhost ([127.0.0.1]:53975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnbdV-00042Z-1K for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 12:43:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnbdQ-000428-DZ for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:43:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnbdM-00041u-W3 for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:43:51 -0400 Original-Received: from [199.232.76.173] (port=33725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnbdM-00041j-Kv for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:43:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46572) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnbdM-0005Hh-3K for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:43:48 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2SGhjOx028232; Sat, 28 Mar 2009 09:43:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2SGZ3cu025853; Sat, 28 Mar 2009 09:35:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Mike Coleman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 28 Mar 2009 16:35:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2790 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123825769024588 (code B ref -1); Sat, 28 Mar 2009 16:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Mar 2009 16:28:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2SGS6Wl024577 for ; Sat, 28 Mar 2009 09:28:08 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnbOA-0005Fp-8d for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:28:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnbO5-0005AW-FC for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:28:05 -0400 Original-Received: from [199.232.76.173] (port=43173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnbO4-0005A4-TT for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 12:28:00 -0400 Original-Received: from mail-ew0-f160.google.com ([209.85.219.160]:60523) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnbO3-0003WF-Kk; Sat, 28 Mar 2009 12:27:59 -0400 Original-Received: by ewy4 with SMTP id 4so1551095ewy.42 for ; Sat, 28 Mar 2009 09:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=oOLjOdCGg33szW7iuAvd/lizMn/RUWEiyKDM2vC/mrw=; b=LO0JeNkTr36c0RBO8LCmri45zJQZnMRp7W+7ucm4KylKnM2nLjjPTit71mTuVnyOU1 P5gRXmC6+rH1PLdl781Z8QgR47mqSmId7QrseS24l6aKNrodFmjALojxQqQ5R5cKWMyl TFHG8jpIxg7IMTXuYoqimOXE0QfaQxvQB5qy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IIzaDyb7v9E4RlY2lhbt7uOJW7OFHtkY3mDVsPAi2/AoCAHD1RKj42ugjeV50RjZaY beOHY8izN3XnzzSmCipr8x/ttV5pDnTYgKAF4xoTX/sHYFMur48A/SBdd0ykx3B5KrWc UdLLJGS7qYIbD6x/gPWK9djcb0pddqFbuf5tQ= Original-Received: by 10.210.11.17 with SMTP id 17mr2629193ebk.25.1238257677780; Sat, 28 Mar 2009 09:27:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 28 Mar 2009 12:43:51 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26712 Archived-At: On Sat, Mar 28, 2009 at 10:17 AM, Richard M Stallman wrote: > =A0 =A0The smallest file that produces the error has 536870912 bytes, exa= ctly > =A0 =A0512MB. =A0(This is via binary search, so assumes that there is jus= t one > =A0 =A0transition from "will" to "won't" as filesize increases.) > > It looks like you're simply hitting the limit on buffer size. > > But I suspect there is a bug here, because it sounds like > you can visit a file whose size is bigger than most-positive-fixnum. > If you do that, what value do you get for (point-max)? > Is it negative? =A0I think it will be, and that we need > to restrict the buffer size to be no more than most-positive-fixnum. It appears to me that visiting a file larger than 512MB is simply failing, with the given error message about the max buffer size. (Note that 512MB is much, much smaller than most-positive-fixnum (=3D=3D 2^64).) So, to me, it seems like the behavior is "correct", if emacs only promises to handle files as large as 512MB (on 64-bit platforms). Nonetheless, I'd like it to handle much larger files. Is there any real reason not to just turn every (32-bit) "int" into a (64-bit) "long" on 64-bit platforms? Mike