emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Stack overflow in regexp matcher


From: Stefan Monnier
Subject: Re: Stack overflow in regexp matcher
Date: Mon, 10 Jul 2006 12:50:23 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
>   re-search-forward(": \\(.+\\): \\(?:Permission denied\\|No such
> \\(?:file or directory\\|device or address\\)\\)$" 69633 t)

The only way for this regexp to cause a stack overflow is if there's a *very*
long line.
We could maybe reduce the stack use by replacing ".+" with something like
"\\([^:\n]*:\\)*[^:\n]*".


        Stefan




reply via email to

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