From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12832: 24.3.50; Emacs lockup when idle Date: Tue, 13 Nov 2012 17:16:38 +0200 Message-ID: <83ip99v8h5.fsf@gnu.org> References: <838vac12kn.fsf@gnu.org> <509BFAE7.8020205@gmail.com> <83liebyu9t.fsf@gnu.org> <509CDF7F.2000409@gmail.com> <83ip9fyqmy.fsf@gnu.org> <83390izlxm.fsf@gnu.org> <509D4DAC.1060901@gmail.com> <83pq3hvet0.fsf@gnu.org> <509BAC2E.2000702@gmail.com> <80r4nxsl1s.fsf@somewhere.org> <83lie5vbot.fsf@gnu.org> <50A2585A.3050008@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352819864 28195 80.91.229.3 (13 Nov 2012 15:17:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 15:17:44 +0000 (UTC) Cc: fni@missioncriticalit.com, 12832@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 16:17:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYIFJ-0003OA-Vq for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 16:17:50 +0100 Original-Received: from localhost ([::1]:49410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYIF9-0000eL-Jz for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 10:17:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYIF5-0000ds-OI for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 10:17:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYIF2-0005Bd-Lz for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 10:17:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYIF2-0005BV-I8 for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 10:17:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYIFW-0008Le-AF for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2012 10:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Nov 2012 15:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12832 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 12832-submit@debbugs.gnu.org id=B12832.135281984932051 (code B ref 12832); Tue, 13 Nov 2012 15:18:02 +0000 Original-Received: (at 12832) by debbugs.gnu.org; 13 Nov 2012 15:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:38771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYIEv-0008Kq-7C for submit@debbugs.gnu.org; Tue, 13 Nov 2012 10:17:29 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37304) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYIEo-0008Kd-SF for 12832@debbugs.gnu.org; Tue, 13 Nov 2012 10:17:24 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MDF00G00MCK6M00@a-mtaout20.012.net.il> for 12832@debbugs.gnu.org; Tue, 13 Nov 2012 17:16:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDF00F8YMF8P6B0@a-mtaout20.012.net.il>; Tue, 13 Nov 2012 17:16:20 +0200 (IST) In-reply-to: <50A2585A.3050008@gmail.com> X-012-Sender: halo1@inter.net.il X-Spam-Score: 1.5 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: 0.7 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66872 Archived-At: > Date: Tue, 13 Nov 2012 14:25:30 +0000 > From: Andy Moreton > CC: Dani Moncayo , fni@missioncriticalit.com, > 12832@debbugs.gnu.org > > Correct - I've done a clean bootstrap using 4.7.0, and I see this problem on > both trunk and emacs-24 branches. > > Looking emacs-24 (r110863) with Process Explorer: > > 212412 emacs.exe+0x32291 State: Wait:DelayExecution > 212616 emacs.exe+0x148efe State: Wait:Suspended > 212604 emacs.exe+0x142350 State: Wait:WrUserRequest > 236140 RPCRT4.dll!ThreadStartRoutine State: Wait:WrQueue > > I tried suspending and then resuming each thread in turn from Process > Explorer. Resuming thread 212604 unblocked emacs and it started working again. Was that the only thread whose resumption unlocks Emacs? If so, can you find out what thread was that? Process Explorer can show that call-stack, and you should be able to find out what functions were referenced by using the "info line" command inside GDB. Like this: (gdb) info line *0x11c3d40 Line 863 of "sysdep.c" starts at address 0x11c3d40 and ends at 0x11c3d4a . (Note the asterisk before the address.) WrUserRequest seems to indicate that the thread was suspended by the application itself, which would point the blaming finger at my implementation of SIGALRM (see w32proc.c), whereby when the timer expires, the thread which runs the timer code suspends the main thread, invokes the signal handler, and then resumes the main thread. If my guess is correct, this would mean that the thread whose state is WrUserRequest is the main (a.k.a. "Lisp") thread. Another possibility is that this is the input thread, the one that calls GetMessage. But then I don't understand why it is blocked forever until manually resumed. Hmm... If you attach GDB, do you again see garbled backtrace, like in the original report? Or do you see something more informative?