From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit GNU/Linux box Date: Mon, 30 Mar 2009 15:22:17 +0200 Message-ID: References: <3c6c07c20903260850r180e942dscb2c61d1096793f8@mail.gmail.com> <3c6c07c20903270927y5292e32as857233aa1fd75737@mail.gmail.com> Reply-To: Andreas Schwab , 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 1238421222 29839 80.91.229.12 (30 Mar 2009 13:53:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 13:53:42 +0000 (UTC) Cc: 2790@emacsbugs.donarmstrong.com, tutufan@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 30 15:54:58 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 1LoHwn-000299-8K for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 15:54:41 +0200 Original-Received: from localhost ([127.0.0.1]:36774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoHvP-0004Ww-MO for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 09:53:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoHmO-0007DR-VV for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:43:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoHmI-0007B2-6V for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:43:54 -0400 Original-Received: from [199.232.76.173] (port=51278 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoHmH-0007Aq-HD for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:43:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47041) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoHmG-00076N-O0 for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 09:43:49 -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 n2UDhkWM024046; Mon, 30 Mar 2009 06:43:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2UDU3qd020590; Mon, 30 Mar 2009 06:30:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 30 Mar 2009 13:30: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.123841935019159 (code B ref 2790); Mon, 30 Mar 2009 13:30:03 +0000 Original-Received: (at 2790) by emacsbugs.donarmstrong.com; 30 Mar 2009 13:22:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2UDMJYf019153 for <2790@emacsbugs.donarmstrong.com>; Mon, 30 Mar 2009 06:22:21 -0700 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 747FF1C00046; Mon, 30 Mar 2009 15:22:16 +0200 (CEST) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id D1770901D9; Mon, 30 Mar 2009 15:22:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id Qp7kHSbBZ5PU; Mon, 30 Mar 2009 15:22:17 +0200 (CEST) Original-Received: from igel.home (DSL01.83.171.178.148.ip-pool.NEFkom.net [83.171.178.148]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 30 Mar 2009 15:22:17 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 82B3610DE24; Mon, 30 Mar 2009 15:22:17 +0200 (CEST) X-Yow: An Italian is COMBING his hair in suburban DES MOINES! In-Reply-To: (Stefan Monnier's message of "Mon, 30 Mar 2009 09:01:01 -0400") 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: Mon, 30 Mar 2009 09:43: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:26754 Archived-At: Stefan Monnier writes: > We could prevent optimization by going through a volatile var, > of course. That would mean it would still depend on an undefined operation. The right way to check for overflow is to check against the limit beforehand. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."