all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: stack overflow in regexp matcher with gdb
Date: Wed, 13 Nov 2013 14:06:24 -0500	[thread overview]
Message-ID: <jwvsiv09lh3.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: F1072D027E48DD4F93B3FDC2992B4961AE27508C@EU-MBX-01.mgc.mentorg.com

> error in process filter: gdb-stack-list-locals-handler: Stack overflow in regexp matcher
> error in process filter: Stack overflow in regexp matcher

Please try to enable "Options => Enter Debugger on Error", and if that
fails to give you a backtrace, then try M-: (setq debug-on-signal t) RET
[ But note that this latter option will make your Emacs session
  "inconvenient" because the debugger will be triggered too often.  ]

That should hopefully give you a backtrace which can help fix the problem.
Of course, M-x report-emacs-bug is also a good idea.
In any case, you'll probably want to try Emacs-24.3 first, to see if
this bug hasn't been fixed already.

> I don't know where it comes from, I've been searching on the web and
> found a bug report was entered some years ago but it seems it ended here.

It means that the backtracking-based regexp-matcher recursed too deep
(probably because some "*" repetition matched many more times than
normally expected).  The best fix usually is to change the regexp so it
backtracks less (i.e. uses less stack space) or so the match fails
much earlier.

> Is there any way to turn that thing off (whatever it is doing) so I can at
> least continue debugging in a normal way ?

Not sure:  using M-x gud-gdb RET instead of M-x gdb would be a way, but
that requires re-starting the GDB session (and it gives you a much more
barebones UI, tho that's what I use personally).


        Stefan




  reply	other threads:[~2013-11-13 19:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13 11:13 stack overflow in regexp matcher with gdb Maury, Olivier
2013-11-13 19:06 ` Stefan Monnier [this message]
2013-11-14 12:10   ` Maury, Olivier
2013-11-14 19:31     ` Stefan Monnier
2013-11-15 13:19       ` Maury, Olivier
2013-11-15 14:18         ` Stefan Monnier
2013-11-15 14:48           ` Eli Zaretskii
2013-11-17 22:50             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsiv09lh3.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.