From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Regexp matcher stack overflow in org-indent initialization [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.1/lisp/org/)] Date: Fri, 16 Dec 2016 22:44:34 +0100 Message-ID: <87d1gr4khp.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cI0Is-0005a1-A0 for emacs-orgmode@gnu.org; Fri, 16 Dec 2016 16:44:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cI0Ip-0006d9-5R for emacs-orgmode@gnu.org; Fri, 16 Dec 2016 16:44:34 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53952) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cI0Io-0006ZU-Ul for emacs-orgmode@gnu.org; Fri, 16 Dec 2016 16:44:31 -0500 In-Reply-To: (Vasilij Schneidermann's message of "Fri, 16 Dec 2016 11:34:44 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Vasilij Schneidermann Cc: emacs-orgmode@gnu.org Hello, Vasilij Schneidermann writes: > I've got a "Stack overflow in regexp matcher" error on startup as I've > made an Org file my initial buffer. It took me days to reproduce this > error (by putting `(setq debug-on-error t)` into my init file and > forgetting about the bug until the error resurfaced), but I've finally > managed to catch its backtrace: > > Debugger entered--Lisp error: (error "Stack overflow in regexp matcher") > looking-at("[ ]*\\(\\S-+\\)\\(.*[ ]+::\\)?\\([ ]+\\|$\\)") > org-list-item-body-column(1297) > org-indent-add-properties(# 93050 (0 2 0)) > org-indent-initialize-buffer(# (0 2 0)) > org-indent-initialize-agent() > apply(org-indent-initialize-agent nil) > timer-event-handler([t 0 0 200000 t org-indent-initialize-agent nil idle 0]) > > The easiest solution to this would be probably a rewrite of the faulty > regexp to not backtrack as much. 93050 is `(point-max)` in the file, > the marker does not point to any buffer and does therefore not have any > inspectable position. I slightly simplified the regexp. Does it solve the issue? Regards, -- Nicolas Goaziou