From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#14333: 24.3.50; Emacs hangs when trying to exit Date: Fri, 12 Sep 2014 08:14:40 +0200 Message-ID: References: <83tx6pb6ay.fsf@gnu.org> <83ha2paz0h.fsf@gnu.org> <838uo1auca.fsf@gnu.org> <83vbr080d3.fsf@gnu.org> <83iomq4w29.fsf@gnu.org> <83egx9kg3l.fsf@gnu.org> <83mwafe6v6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1410502527 941 80.91.229.3 (12 Sep 2014 06:15:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 06:15:27 +0000 (UTC) Cc: "14333@debbugs.gnu.org" <14333@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 08:15:19 2014 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 1XSK8d-0001pB-8h for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 08:15:19 +0200 Original-Received: from localhost ([::1]:42811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSK8c-0006Vd-Rk for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 02:15:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSK8T-0006Q2-Hn for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 02:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSK8N-0000cT-CJ for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 02:15:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSK8N-0000cI-89 for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 02:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XSK8M-0004TX-Pc for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 02:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Sep 2014 06:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14333 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 14333-submit@debbugs.gnu.org id=B14333.141050248417162 (code B ref 14333); Fri, 12 Sep 2014 06:15:02 +0000 Original-Received: (at 14333) by debbugs.gnu.org; 12 Sep 2014 06:14:44 +0000 Original-Received: from localhost ([127.0.0.1]:38772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSK83-0004Sk-Ts for submit@debbugs.gnu.org; Fri, 12 Sep 2014 02:14:44 -0400 Original-Received: from mail-lb0-f170.google.com ([209.85.217.170]:62485) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSK82-0004Sa-16 for 14333@debbugs.gnu.org; Fri, 12 Sep 2014 02:14:42 -0400 Original-Received: by mail-lb0-f170.google.com with SMTP id c11so291556lbj.29 for <14333@debbugs.gnu.org>; Thu, 11 Sep 2014 23:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7OgsaAyj7he1jA9wtFS48K+jN6wywPFci7k5YAslS98=; b=q0Xdz9sIrkFNpeCuFIXVoCnU3OBeaZqSMMVyXIdXodKjkCTNueXSIKI17Et0toBJNN xgNGNK4WBnrw0L1FYXyXIc/hzt9E+pzRTG2IgrkJP50ZJHpV5/wcocNxs0S2SJg02Vf1 rUZiXZ8qRzzVt2vyd02ZnqbtjPoPgj7Dhk9LEmZxICfsF8yY3Wnh3nJQUpzZ+VA6fW7G WetLm0n33uqoeGrBxvl1n0T85PIvvRBmUuVRVY3ngZarujrjPwQH/h189iT1rtasNKgg rQehSYdXjz2dwcxrmvpOyKy/pBYkqHmGhNqYI+Nau4uwmt118j4TYBzuVk5MuWe2HelY 64Nw== X-Received: by 10.112.35.138 with SMTP id h10mr5671154lbj.65.1410502480759; Thu, 11 Sep 2014 23:14:40 -0700 (PDT) Original-Received: by 10.114.27.230 with HTTP; Thu, 11 Sep 2014 23:14:40 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:93288 Archived-At: >> If you experience these hangs when running Emacs locally, >> could you perhaps show a couple of instances of stack traces of all >> the threads when Emacs hangs in a local session? > > I will the next time I get a hung session. ...and here is the stack traces: On 2014/09/11, with this binary: In GNU Emacs 24.3.93.1 (i686-pc-mingw32) of 2014-08-25 on MW7G474MYRXUPA Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1' This is the official 24.3.93 pre-release, plus the patch you told me (comment out the call to term_winsock in term_ntproc). The program hung while trying to exit (C-x C-c). Here is some info about the Emacs threads at that moment, retrieved using Process Explorer: TID: 824 STATE: Wait:UserRequest CALL STACK: wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42a ntdll.dll!TpAlpcRegisterCompletionList+0x7f8b ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!NtWaitForSingleObject+0x15 ntdll.dll!RtlIntegerToUnicodeString+0x20b ntdll.dll!LdrShutdownThread+0x50 ntdll.dll!RtlExitUserThread+0x2a ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 TID: 3988 STATE: Wait:WrUserRequest CALL STACK: wow64win.dll+0x3fe3a wow64win.dll+0x1aeac wow64.dll!Wow64SystemServiceEx+0xd7 wow64cpu.dll!TurboDispatchJumpAddressEnd+0x2d wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42a ntdll.dll!TpAlpcRegisterCompletionList+0x7f8b ntdll.dll!LdrInitializeThunk+0xe USER32.dll!DispatchMessageW+0x5c emacs.exe+0x1f6234 w32_msg_pump at w32fns.c:2450 emacs.exe+0x1f6472 w32_msg_worker@4 at w32fns.c:2678 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 TID: 4992 STATE: Wait:UserRequest CALL STACK: wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0xf5 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42a ntdll.dll!TpAlpcRegisterCompletionList+0x7f8b ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!NtWaitForMultipleObjects+0x15 kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 TID: 5268 STATE: Wait:UserRequest CALL STACK: wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42a ntdll.dll!RtlUniform+0x6e6 ntdll.dll!MD5Final+0x21e83 ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!NtWaitForSingleObject+0x15 ntdll.dll!RtlIntegerToUnicodeString+0x20b ntdll.dll!LdrGetDllHandleEx+0x29b ntdll.dll!LdrGetDllHandle+0x18 ntdll.dll!RtlDetermineDosPathNameType_U+0x1fa KERNELBASE.dll!GetModuleFileNameW+0x3bd KERNELBASE.dll!GetModuleHandleW+0x29 KERNELBASE.dll!GetModuleHandleA+0x34 emacs.exe+0x135a ?? at cygming-crtbegin.c:0 emacs.exe+0xf6827 shut_down_emacs at emacs.c:1991 emacs.exe+0xf2238 SUBRP at lisp.h:2471 emacs.exe+0xf0add XSUBR at lisp.h:914 emacs.exe+0x185bcf Ffuncall at eval.c:2815 emacs.exe+0x1c685c exec_byte_code at bytecode.c:916 emacs.exe+0x1863b1 funcall_lambda at eval.c:2983 emacs.exe+0x185e0b Ffuncall at eval.c:2864 emacs.exe+0x1c685c exec_byte_code at bytecode.c:916 emacs.exe+0x1863b1 funcall_lambda at eval.c:2983 emacs.exe+0x185e0b Ffuncall at eval.c:2864 emacs.exe+0x17f3b3 Fcall_interactively at callint.c:836 emacs.exe+0x185c24 Ffuncall at eval.c:2822 emacs.exe+0x1c685c exec_byte_code at bytecode.c:916 emacs.exe+0x1863b1 funcall_lambda at eval.c:2983 emacs.exe+0x185e0b Ffuncall at eval.c:2864 emacs.exe+0x1856ba call1 at eval.c:2614 emacs.exe+0xf9001 command_loop_1 at keyboard.c:1567 emacs.exe+0x182b2f internal_condition_case at eval.c:1354 emacs.exe+0xf8652 command_loop_2 at keyboard.c:1177 emacs.exe+0x1820dc internal_catch at eval.c:1118 emacs.exe+0xf860a command_loop at keyboard.c:1157 emacs.exe+0xf7da0 recursive_edit_1 at keyboard.c:777 emacs.exe+0xf7f5c Frecursive_edit at keyboard.c:849 emacs.exe+0xf615f main at emacs.c:1648 emacs.exe+0x10b9 __mingw_CRTStartup at crt1.c:244 emacs.exe+0x1284 WinMainCRTStartup at crt1.c:274 emacs.exe+0x1c422c _start at unexw32.c:125 kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36 -- Dani Moncayo