From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evans Winner Newsgroups: gmane.emacs.bugs Subject: bug#8528: 24.0.50; 32-bit Emacs with apparent 128M buffer size limit Date: Wed, 20 Apr 2011 15:04:06 -0600 Message-ID: <87bp00iqih.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303333660 13106 80.91.229.12 (20 Apr 2011 21:07:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2011 21:07:40 +0000 (UTC) To: 8528@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 20 23:07:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCecV-0001Di-31 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Apr 2011 23:07:31 +0200 Original-Received: from localhost ([::1]:46174 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCecU-0001bb-I7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Apr 2011 17:07:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCecS-0001bW-Ih for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCecR-0002pp-Qc for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:07:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCecR-0002pl-Nr for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:07:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QCea5-00041y-Ua; Wed, 20 Apr 2011 17:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Evans Winner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Apr 2011 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130333346015442 (code B ref -1); Wed, 20 Apr 2011 21:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2011 21:04:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCeZP-000411-QS for submit@debbugs.gnu.org; Wed, 20 Apr 2011 17:04:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCeZO-00040p-0L for submit@debbugs.gnu.org; Wed, 20 Apr 2011 17:04:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCeZH-0002Uy-Q7 for submit@debbugs.gnu.org; Wed, 20 Apr 2011 17:04:12 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:58515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCeZH-0002Uu-O9 for submit@debbugs.gnu.org; Wed, 20 Apr 2011 17:04:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCeZG-0001UB-Vq for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:04:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCeZG-0002Uk-9t for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:04:10 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:33161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCeZG-0002Ue-59 for bug-gnu-emacs@gnu.org; Wed, 20 Apr 2011 17:04:10 -0400 Original-Received: by pwi10 with SMTP id 10so882324pwi.0 for ; Wed, 20 Apr 2011 14:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:mime-version :content-type; bh=Dlrqjsz0zC9DnS/i49lVYKUqSstLsBkAoxRkIajIpRM=; b=V6/9rhxAnqugEytwHEWTnyv83tWXWiPdinrqaUYGhYUvBwooIwYxYNFJbceHVK37nG nI+n/hOTF1qT/poCBXjw7gUb0jjH8g4A/J3H8p2KJ00xJVbatk+MWVG5/xRcbJ01MXjX SsI/lP/67vZ2M7dy0IRr0BjC8QS0Fsea7TzT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=hbMW2T0uQoKTiqbNf4dyyQ4MtBMJWmqgCIEBWgglWbf+OSwJ19QTopsPtRFnltioyY ra2oaiZZWtWW7VJ655LNALH8L35rKVA8QhCeYPOULG+dYIzdVZ17d4hC/fil442Iym2e PX4/h8a0X1chxAn5UT3sIOuvr2eonhKfMjTt8= Original-Received: by 10.68.23.33 with SMTP id j1mr11165809pbf.443.1303333449137; Wed, 20 Apr 2011 14:04:09 -0700 (PDT) Original-Received: from braintron.67.42.142.120 ([67.42.142.120]) by mx.google.com with ESMTPS id d3sm840246pbh.73.2011.04.20.14.04.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2011 14:04:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 20 Apr 2011 17:05:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45894 Archived-At: My understanding is that a 32-bit GNU Emacs should be able to open files up to 512 M. If I am wrong about that, please let me know. I have compiled Emacs trunk from source several times in the last couple of months and somewhere in the last month or so it seems that the limit on my machine has become 128 M. My math could be off, but on the assumption that 128 Mebibytes = 2^27 bytes = 1024 * 131072 bytes, and starting with emacs -Q I tried: $ dd if=/dev/zero of=testfile bs=1024 count=131072 and tried to open the file, and got: "Maximum buffer size exceeded". Then I tried one K less: $ dd if=/dev/zero of=testfile bs=1024 count=131071 and the buffer opened. I have verified using the `top' command that there is sufficient free memory for the files. Also, for what it's worth: ELISP> most-positive-fixnum ==> 536870911 I discovered this as a result of not being able to open a large (~160Mb) .pdf file that I had earlier been able to open. Please let me know if there is any other information I can provide, or if there is something simple I am doing wrong. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.0.8) of 2011-04-19 on braintron Windowing system distributor `The X.Org Foundation', version 11.0.11001000 configured using `configure '--with-x-toolkit=gtk3'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t