From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#8344: (substring ...) crashes on large vectors Date: Fri, 25 Mar 2011 14:48:38 -0700 Organization: UCLA Computer Science Department Message-ID: <4D8D0DB6.4040206@cs.ucla.edu> References: <4D8CDC3A.4010705@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301090843 12025 80.91.229.12 (25 Mar 2011 22:07:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Mar 2011 22:07:23 +0000 (UTC) Cc: 8344@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 25 23:07:17 2011 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.69) (envelope-from ) id 1Q3FA2-0005nu-He for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Mar 2011 23:07:14 +0100 Original-Received: from localhost ([127.0.0.1]:38977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3FA1-0008Rj-Mm for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Mar 2011 18:07:13 -0400 Original-Received: from [140.186.70.92] (port=57641 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3F9w-0008RQ-Er for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2011 18:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3F9v-0000f0-Cf for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2011 18:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3F9v-0000eu-B5 for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2011 18:07:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q3EsQ-0006TD-GD; Fri, 25 Mar 2011 17:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Mar 2011 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8344-submit@debbugs.gnu.org id=B8344.130108973124850 (code B ref 8344); Fri, 25 Mar 2011 21:49:02 +0000 Original-Received: (at 8344) by debbugs.gnu.org; 25 Mar 2011 21:48:51 +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 1Q3EsE-0006Sl-9V for submit@debbugs.gnu.org; Fri, 25 Mar 2011 17:48:50 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3EsC-0006SU-9T for 8344@debbugs.gnu.org; Fri, 25 Mar 2011 17:48:49 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 167F939E80F7; Fri, 25 Mar 2011 14:48:42 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JteB8nLhfw2H; Fri, 25 Mar 2011 14:48:41 -0700 (PDT) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id AA99539E80B1; Fri, 25 Mar 2011 14:48:41 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 25 Mar 2011 17:49:02 -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: , 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:45369 Archived-At: On 03/25/2011 02:24 PM, Stefan Monnier wrote: > I'd urge you to focus on "handling an 8GB file" > (on 32bit systems this won't work, but on 64bit it should but didn't > last time I tried) Yes, thanks, that is on my list of things to do. This nargs business is one of the (easier) steps needed to get it done. Another (easier) step will be to merge the gnulib fixes for regular expressions into Emacs, since gnulib has fixed several problems with matching buffers larger than 2**31 bytes. There are several other steps, of course, and some will be harder. To some extent I'm using gcc -Wstrict-overflow as a first pass, to fix the more-obvious gotchas, in such a way that regressions can be caught statically. Many of the other changes won't be so easy, but by then I hope to understand Emacs internals better. For example, the Emacs regex code fails the static checks now, and that is why I want to turn to the regex code at some point in the near future.