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: Wed, 15 May 2013 20:18:21 +0300 Message-ID: <834ne45fhe.fsf@gnu.org> References: <83r4hpnykn.fsf@gnu.org> <837gj9e82c.fsf@gnu.org> <83obckcfq7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368638356 10698 80.91.229.3 (15 May 2013 17:19:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 17:19:16 +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 Wed May 15 19:19:15 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 1UcfM9-0008Av-Kf for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 May 2013 19:19:13 +0200 Original-Received: from localhost ([::1]:55177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcfM9-00089W-41 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 May 2013 13:19:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcfLx-00086C-PT for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 13:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcfLt-0004Z7-6S for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 13:19:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcfLt-0004Yr-2u for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 13:18:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UcfLx-00039W-TK for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 13:19: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: Wed, 15 May 2013 17:19:01 +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.136863834112111 (code B ref 14333); Wed, 15 May 2013 17:19:01 +0000 Original-Received: (at 14333) by debbugs.gnu.org; 15 May 2013 17:19:01 +0000 Original-Received: from localhost ([127.0.0.1]:46278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcfLw-00039H-M1 for submit@debbugs.gnu.org; Wed, 15 May 2013 13:19:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64488) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcfLt-000390-UF for 14333@debbugs.gnu.org; Wed, 15 May 2013 13:18:59 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MMU00K00NWG9R00@a-mtaout22.012.net.il> for 14333@debbugs.gnu.org; Wed, 15 May 2013 20:18:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMU00JQDO2OTVK0@a-mtaout22.012.net.il>; Wed, 15 May 2013 20:18:25 +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:74300 Archived-At: > Date: Wed, 15 May 2013 18:47:26 +0200 > From: Dani Moncayo > Cc: 14333@debbugs.gnu.org > > Hi Eli, I chose your method "2" in the previous mail, and here are the results: Thanks. > * Emacs stack translation: > 0x108ff4f is in term_winsock (w32.c:6008). This is the main thread that is stuck here: if (pfn_WSACleanup () == 0 || <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< pfn_WSAGetLastError () == WSAENETDOWN) { if (FreeLibrary (winsock_lib)) winsock_lib = NULL; return TRUE; } And it looks like it is stuck because the reader thread that listens to some network connection is waiting for input: > 0x1091a12 is in _sys_wait_accept (w32.c:6982). > 0x105503d is in reader_thread (w32proc.c:1017). here: if (rc != SOCKET_ERROR) { rc = WaitForSingleObject (hEv, INFINITE); <<<<<<<<<<<<<<<<<<<<<<<<< pfn_WSAEventSelect (SOCK_HANDLE (fd), NULL, 0); if (rc == WAIT_OBJECT_0) cp->status = STATUS_READ_SUCCEEDED; } Does this mean that if you start Emacs with "emacs -Q" and immediately try to exit, Emacs shuts down cleanly? Anyway, I will try to come up with some code that will unstuck this.