From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: How to debug hang? Date: Sat, 18 Nov 2006 13:23:43 -0500 Message-ID: <87d57kd368.fsf@pereiro.luannocracy.com> References: <87irhdcvt8.fsf@pereiro.luannocracy.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1163874259 29075 80.91.229.2 (18 Nov 2006 18:24:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2006 18:24:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 18 19:24:13 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GlUrL-0003YM-Q6 for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2006 19:24:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlUrL-0003L5-Az for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2006 13:24:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlUr7-0003KD-BK for emacs-devel@gnu.org; Sat, 18 Nov 2006 13:23:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlUr6-0003Ix-0F for emacs-devel@gnu.org; Sat, 18 Nov 2006 13:23:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlUr4-0003IV-VD; Sat, 18 Nov 2006 13:23:55 -0500 Original-Received: from [72.32.140.231] (helo=boost-consulting.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GlUr4-0006aI-Rx; Sat, 18 Nov 2006 13:23:55 -0500 Original-Received: from pereiro.luannocracy.com.boost-consulting.com (216-15-125-177.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com [216.15.125.177]) (authenticated bits=0) by boost-consulting.com (8.13.8/8.13.8) with ESMTP id kAIIO0Yq087932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 18 Nov 2006 18:24:01 GMT (envelope-from dave@boost-consulting.com) Original-To: Perry Smith In-Reply-To: (Perry Smith's message of "Fri\, 17 Nov 2006 22\:13\:33 -0600") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62429 gmane.emacs.help:38802 Archived-At: Perry Smith writes: > On Nov 17, 2006, at 8:50 PM, David Abrahams wrote: > > Hi, >=20=20=20=20 > I'm trying to debug some kind of a hang that occurs when I try to use > a font-lock mode I'm developing.=C2=A0 I can't get control back by hi= tting > `C-g'.=C2=A0 I suspected it was a bad (combinatoric) regexp, but I ad= ded > 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.=C2=A0 I'm quite stumped now; hoping someone c= an > offer a clue. > > Check out debug-on-quit.=C2=A0 If that doesn't work, try debug-on-signal > and then kill the emacs from a separate window.=C2=A0 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! --=20 Dave Abrahams Boost Consulting www.boost-consulting.com