[PATCH] emacs: Fix stack overflow in notmuch-wash-tidy-citations

Michal Sojka sojkam1 at fel.cvut.cz
Sun Jul 18 08:00:22 PDT 2010


Hi Dmitry,

On Sat, 17 Jul 2010, Dmitry Kurochkin wrote:
> I have 2 messages that cause emacs segfault.

My patch didn't fix a segfault but stack overflow which was reported by
emacs in its *Messages* buffer without crashing.

> Both are notifications from svn. One is 37933 lines, 1,2M. Another is
> huge - 963179 lines, 31M. I believe the root cause is the same for
> both segfaults.
> 
> Your patch does not fix the problem, unfortunately. Can you advise how
> to debug this segfault? Build emacs with debug symbols and get backtrace
> from gdb?

I'm more Emacs user then developer so I cannot give you much detailed
information. First, try to check
http://mid.gmane.org/87pr0t5h1q.fsf@yoom.home.cworth.org and Emacs
bug#6214. There may by a fix your problem.


> Debug notmuch lisp code (how?)? Enable some verbose logging in emacs?

To debug elisp code I open the source in Emacs, move the point to the
function I'm interested in and press C-u C-M-x. This instruments the
function code so that the next time the function is invoked, elisp
debugger appears and you can execute the function step by step and
inspect variables.

Maybe, some Emacs guru can give you a better advice.

Bye
Michal


More information about the notmuch mailing list