GNU bug report logs - #23667
24.4; "Stack overflow in regexp matcher" happens in only some buffers, for the same arguments

Previous Next

Package: emacs;

Reported by: Ernesto Alfonso <erjoalgo <at> gmail.com>

Date: Wed, 1 Jun 2016 02:42:01 UTC

Severity: minor

Tags: notabug

Found in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Ernesto Alfonso <erjoalgo <at> gmail.com>
Cc: 23667 <at> debbugs.gnu.org
Subject: bug#23667: 24.4; "Stack overflow in regexp matcher" happens in only some buffers, for the same arguments
Date: Wed, 01 Jun 2016 02:36:34 -0400
Ernesto Alfonso wrote:

> (let ((out (shell-command-to-string "curl http://pastebin.com/raw/a2pMaW6h")))
> 	 (string-match "\\(^[[:space:]]*\\([a-z]+\\) = \\(.*\\)\n\\)+" out 0))
>
> If I try this sexp on an ielm-mode or emacs-lisp-mode buffer (just two
> examples I tested), this evaluates to 0. If I try it on a message-mode
> or erc buffer, I get "Stack overflow in regexp matcher".

(length out) = 325969

> The evaluation should be independent of the buffer since no buffer
> contents should be involved.

[:space:] matches characters with whitespace syntax, and syntax is
buffer-local and varies between major modes. If you don't want that,
replace [:space:] with the exact characters you want to match.





This bug report was last modified 8 years and 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.