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#14333: 24.3.50; Emacs hangs when trying to exit Date: Thu, 16 May 2013 11:59:34 +0300 Message-ID: <83ip2j47wp.fsf@gnu.org> References: <83r4hpnykn.fsf@gnu.org> <837gj9e82c.fsf@gnu.org> <83obckcfq7.fsf@gnu.org> <834ne45fhe.fsf@gnu.org> <83zjvw3rgb.fsf@gnu.org> <83mwrv4cz1.fsf@gnu.org> <83k3mz4btj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368694815 29224 80.91.229.3 (16 May 2013 09:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 09:00:15 +0000 (UTC) Cc: 14333@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 16 11:00:12 2013 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 1Ucu2l-0008Qp-Ne for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2013 11:00:11 +0200 Original-Received: from localhost ([::1]:33977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucu2l-0006oT-CV for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2013 05:00:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucu2V-0006V8-NA for bug-gnu-emacs@gnu.org; Thu, 16 May 2013 04:59:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucu2T-0000Dv-Vi for bug-gnu-emacs@gnu.org; Thu, 16 May 2013 04:59:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucu2T-0000Dk-T1 for bug-gnu-emacs@gnu.org; Thu, 16 May 2013 04:59:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ucu2c-0001rj-Lt for bug-gnu-emacs@gnu.org; Thu, 16 May 2013 05:00:02 -0400 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: Thu, 16 May 2013 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14333 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 14333-submit@debbugs.gnu.org id=B14333.13686948017137 (code B ref 14333); Thu, 16 May 2013 09:00:02 +0000 Original-Received: (at 14333) by debbugs.gnu.org; 16 May 2013 09:00:01 +0000 Original-Received: from localhost ([127.0.0.1]:47009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ucu2a-0001r1-RP for submit@debbugs.gnu.org; Thu, 16 May 2013 05:00:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37054) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ucu2X-0001qh-Br for 14333@debbugs.gnu.org; Thu, 16 May 2013 04:59:58 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MMV00700VLX7100@a-mtaout22.012.net.il> for 14333@debbugs.gnu.org; Thu, 16 May 2013 11:59:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMV006TVVNCOR80@a-mtaout22.012.net.il>; Thu, 16 May 2013 11:59:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:74324 Archived-At: > Date: Thu, 16 May 2013 09:44:53 +0200 > From: Dani Moncayo > Cc: 14333@debbugs.gnu.org > > >> Of those, the only feature I think I use is Emacs server, because I > >> have `(server-start)' in my init file. > > > > That's what I thought. So, if you start "emacs -Q" and then manually > > start the server, does Emacs hang when exiting right after that? > > It doesn't, nor it hangs if I start Emacs without "-Q" and then I try > to close it. Which probably means we have some race condition somewhere... > As I said, it is not too easy to trigger the problem. I've trying > some experiments this morning, but I'm not able to get a hanged > session on purpose. When this happens next time, see if you can kill the thread whose call stack is this: * Stack: wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x429 ntdll.dll!RtlIsDosDeviceName_U+0x24c87 ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!ZwWaitForSingleObject+0x15 kernel32.dll!WaitForSingleObjectEx+0x43 kernel32.dll!WaitForSingleObject+0x12 emacs.exe+0x91a12 emacs.exe+0x5503d kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 * Emacs stack translation: 0x1091a12 is in _sys_wait_accept (w32.c:6982). 0x105503d is in reader_thread (w32proc.c:1017). (IOW, the thread that waits inside _sys_wait_accept), by pushing the "Kill" button in the Process Explorer's "Threads" display. If you succeed in killing the thread (it should get a red background and perhaps disappear from the display), please see if doing so makes Emacs exit by itself right after that.