From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux box Date: Thu, 26 Mar 2009 20:32:08 -0400 Message-ID: References: <3c6c07c20903260850r180e942dscb2c61d1096793f8@mail.gmail.com> <3c6c07c20903261401o57b49b58p372c24d947911c4d@mail.gmail.com> <3c6c07c20903261433v66b63eev2f4e9b74da666524@mail.gmail.com> Reply-To: Stefan Monnier , 2790@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238114661 28569 80.91.229.12 (27 Mar 2009 00:44:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2009 00:44:21 +0000 (UTC) Cc: 2790@emacsbugs.donarmstrong.com To: Mike Coleman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 01:45:39 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 1Ln0CS-0003hj-Va for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 01:45:33 +0100 Original-Received: from localhost ([127.0.0.1]:35736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ln0B6-0000cW-27 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Mar 2009 20:44:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ln0Ar-0000St-KQ for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2009 20:43:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ln0Am-0000Pg-NI for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2009 20:43:52 -0400 Original-Received: from [199.232.76.173] (port=34513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ln0Am-0000PZ-JZ for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2009 20:43:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42480) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ln0Al-0008UB-Ud for bug-gnu-emacs@gnu.org; Thu, 26 Mar 2009 20: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 n2R0hjou031773; Thu, 26 Mar 2009 17:43:45 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2R0e3sL030638; Thu, 26 Mar 2009 17:40:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 27 Mar 2009 00:40: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 2790-submit@emacsbugs.donarmstrong.com id=B2790.123811395029142 (code B ref 2790); Fri, 27 Mar 2009 00:40:03 +0000 Original-Received: (at 2790) by emacsbugs.donarmstrong.com; 27 Mar 2009 00:32:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2R0WRQ1029135 for <2790@emacsbugs.donarmstrong.com>; Thu, 26 Mar 2009 17:32:28 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEANe7y0lFxIfy/2dsb2JhbACBUM4Hg3cGhHU X-IronPort-AV: E=Sophos;i="4.38,429,1233550800"; d="scan'208";a="35745424" Original-Received: from 69-196-135-242.dsl.teksavvy.com (HELO pastel.home) ([69.196.135.242]) by ironport2-out.teksavvy.com with ESMTP; 26 Mar 2009 20:32:09 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 548667F74; Thu, 26 Mar 2009 20:32:08 -0400 (EDT) In-Reply-To: <3c6c07c20903261433v66b63eev2f4e9b74da666524@mail.gmail.com> (Mike Coleman's message of "Thu, 26 Mar 2009 16:33:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 26 Mar 2009 20:43:52 -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:26650 Archived-At: > I gather from your questions that this (loading the large file) was > more or less supposed to work? Well, on 32bit machines, the largest file you can open is 256MB or so. In a 64bit system, the limit is much larger (so you really shouldn't see the "Maximum buffer size exceeded" message you're seeing), but then again, there are various places in the C code where we turn buffer-positions into `int', so things larger than 2GB will hit bugs sooner or later (which will manifest in various funny ways). These bugs shouldn't be too hard to fix, but even with my 4GB machine, opening such large files is really painful, which makes it difficult to debug. Stefan