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 10:08:10 +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 1238401450 27006 80.91.229.12 (30 Mar 2009 08:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 08:24:10 +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 10:25:27 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 1LoCo9-0005Dl-2u for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 10:25:25 +0200 Original-Received: from localhost ([127.0.0.1]:47627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoCml-0003N2-Cj for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Mar 2009 04:23:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoCmg-0003Mp-Fs for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 04:23:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoCmb-0003MY-Hx for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 04:23:53 -0400 Original-Received: from [199.232.76.173] (port=50955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoCmb-0003MV-Be for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 04:23:49 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35944) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LoCma-0000qp-QI for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2009 04:23: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 n2U8Nkvi008548; Mon, 30 Mar 2009 01:23:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2U8F2oT006202; Mon, 30 Mar 2009 01:15:02 -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 08:15:02 +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.12384004974939 (code B ref 2790); Mon, 30 Mar 2009 08:15:02 +0000 Original-Received: (at 2790) by emacsbugs.donarmstrong.com; 30 Mar 2009 08:08:17 +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 n2U88Dsj004933 for <2790@emacsbugs.donarmstrong.com>; Mon, 30 Mar 2009 01:08:15 -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 61F731C01F9F; Mon, 30 Mar 2009 10:08:10 +0200 (CEST) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id BB69490069; Mon, 30 Mar 2009 10:08:12 +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 2hmEQ2OWbuT8; Mon, 30 Mar 2009 10:08:11 +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 10:08:11 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 6872410DE22; Mon, 30 Mar 2009 10:08:10 +0200 (CEST) X-Yow: I have the power to HALT PRODUCTION on all TEENAGE SEX COMEDIES!! In-Reply-To: (Stefan Monnier's message of "Sun, 29 Mar 2009 20:59:09 -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 04:23:53 -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:26749 Archived-At: Stefan Monnier writes: > I do not know what you're referring to. If you're referring to the fact > that (((EMACS_INT)st.st_size)*4) may overflow, then I'm not sure what > problem you're envisaging: The compiler can (and does) optimize on the fact that overflow does not occur, thus the operation x*4/4 becomes a no-op. Never ever do overflow checking after the fact. 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."