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#18577: Regexp I-search: [(error Stack overflow in regexp matcher)] Date: Sun, 28 Sep 2014 14:48:22 +0200 Message-ID: <87d2afud0p.fsf@igel.home> References: <20140928085554.GA3157@acm.acm> <87mw9kt3m7.fsf@igel.home> <20140928123717.GC3157@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411908569 7614 80.91.229.3 (28 Sep 2014 12:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 12:49:29 +0000 (UTC) Cc: 18577@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 14:49:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYDui-00052h-32 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 14:49:20 +0200 Original-Received: from localhost ([::1]:59681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYDuh-0005Vr-P9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 08:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYDua-0005T4-Dh for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 08:49:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYDuV-0005WM-6F for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 08:49:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYDuV-0005WB-33 for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 08:49:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYDuP-0002Cp-Jx for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 08:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Sep 2014 12:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18577-submit@debbugs.gnu.org id=B18577.14119085088440 (code B ref 18577); Sun, 28 Sep 2014 12:49:01 +0000 Original-Received: (at 18577) by debbugs.gnu.org; 28 Sep 2014 12:48:28 +0000 Original-Received: from localhost ([127.0.0.1]:54164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYDts-0002C3-2g for submit@debbugs.gnu.org; Sun, 28 Sep 2014 08:48:28 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:54457) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYDtp-0002Bt-Ib for 18577@debbugs.gnu.org; Sun, 28 Sep 2014 08:48:26 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3j5RVc3PlRz3hjv0; Sun, 28 Sep 2014 14:48:24 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3j5RVc1zT5zvjNV; Sun, 28 Sep 2014 14:48:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id FBYlwJE-OBrR; Sun, 28 Sep 2014 14:48:22 +0200 (CEST) X-Auth-Info: 9lAfj+HplY0zaz1NkpdxnqalAI+sWRkywpVbXq3UaMsX1ZMEX803oejCMLabguUu Original-Received: from igel.home (ppp-188-174-146-80.dynamic.mnet-online.de [188.174.146.80]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 28 Sep 2014 14:48:22 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 6793D2C395D; Sun, 28 Sep 2014 14:48:22 +0200 (CEST) X-Yow: We just joined the civil hair patrol! In-Reply-To: <20140928123717.GC3157@acm.acm> (Alan Mackenzie's message of "Sun, 28 Sep 2014 12:37:17 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:93822 Archived-At: Alan Mackenzie writes: > Is this a defect in my regexp or in the regexp engine? It is fundamental to the way regexp matching works. > If the former, how could I rewrite the regexp so that it would not hit > these problems? Avoid matching the null string in infinite ways. If you need to match the null string, make sure it is anchored with non-null matches. 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."