From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 15:03:43 +0300 Message-ID: References: <3c6c07c20903260850r180e942dscb2c61d1096793f8@mail.gmail.com> <3c6c07c20903270927y5292e32as857233aa1fd75737@mail.gmail.com> Reply-To: Eli Zaretskii , 2790@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1238243048 20198 80.91.229.12 (28 Mar 2009 12:24:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2009 12:24:08 +0000 (UTC) Cc: 2790@emacsbugs.donarmstrong.com, tutufan@gmail.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 28 13:25:26 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 1LnXbJ-0000At-3b for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 13:25:25 +0100 Original-Received: from localhost ([127.0.0.1]:54061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnXZv-0007Mv-I8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Mar 2009 08:23:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnXZq-0007Lg-J0 for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:23:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnXZl-0007K5-9i for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:23:54 -0400 Original-Received: from [199.232.76.173] (port=44235 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnXZl-0007K0-1u for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:23:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56016) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnXZk-0003O2-Ev for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2009 08:23: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 n2SCNjrE026174; Sat, 28 Mar 2009 05:23:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2SCA4Mj022405; Sat, 28 Mar 2009 05:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 28 Mar 2009 12:10:04 +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.123824195622128 (code B ref 2790); Sat, 28 Mar 2009 12:10:04 +0000 Original-Received: (at 2790) by emacsbugs.donarmstrong.com; 28 Mar 2009 12:05:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout2.012.net.il (mtaout2.012.net.il [84.95.2.4]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2SC5qeC022111 for <2790@emacsbugs.donarmstrong.com>; Sat, 28 Mar 2009 05:05:53 -0700 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KH700D00TGPFQ00@i_mtaout2.012.net.il> for 2790@emacsbugs.donarmstrong.com; Sat, 28 Mar 2009 15:05:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.23.114]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KH700K9PTLLJXG0@i_mtaout2.012.net.il>; Sat, 28 Mar 2009 15:05:46 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 28 Mar 2009 08:23:54 -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:26704 Archived-At: > From: Andreas Schwab > Cc: 2790@emacsbugs.donarmstrong.com, Stefan Monnier , tutufan@gmail.com > Date: Sat, 28 Mar 2009 12:12:04 +0100 > > Eli Zaretskii writes: > > > Personally, I would change INT_MAX/4 to LONG_MAX/4, > > This is wrong, see also make_gap_larger. The range for buffer positions > is still limited by the range of int. Then that's another bug waiting to happen, isn't it? Buffer positions should be limited by EMACS_INT, not by int, right?