[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to debug hang?
From: |
David Abrahams |
Subject: |
Re: How to debug hang? |
Date: |
Sat, 18 Nov 2006 13:23:43 -0500 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) |
Perry Smith <pedz@easesoftware.com> writes:
> On Nov 17, 2006, at 8:50 PM, David Abrahams wrote:
>
> Hi,
>
> I'm trying to debug some kind of a hang that occurs when I try to use
> a font-lock mode I'm developing. I can't get control back by hitting
> `C-g'. I suspected it was a bad (combinatoric) regexp, but I added
> advice before and after re-search-forward that emitted enter/exit
> messages, and when the hang occurs I am seeing an exit message, so I'm
> guessing that's not it. I'm quite stumped now; hoping someone can
> offer a clue.
>
> Check out debug-on-quit. If that doesn't work, try debug-on-signal
> and then kill the emacs from a separate window. I'm not sure what
> that will do to your context.
Thanks. Good-ol'-GDB turned out to be the ticket, and it shows me to
be doing regexp matching during the "hang;" oh joy. Gotta love those
ambiguous grammars!
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com