emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Regexp matcher stack overflow in org-indent initialization


From: Nicolas Goaziou
Subject: Re: [O] 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Vasilij Schneidermann <address@hidden> 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(#<marker at 1 in *notes*> 93050 (0 2 0))
>   org-indent-initialize-buffer(#<buffer *notes*> (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]