Subject: bug#14333: 24.3.50; Emacs hangs when trying to exit

From: Dani Moncayo <[email-masked]>
Date: Wed, 13 Nov 2013 17:40:58 +0100

FWIW, here is another updated backtrace of a hung session I've got
with a recent binary (though it seems to be analogous to the last
backtrace I sent).

TID: 2568
State: Wait:UserRequest
<stack>
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8
wow64.dll!Wow64SystemServiceEx+0x1ce
wow64.dll!Wow64LdrpInitialize+0x42b
ntdll.dll!RtlUniform+0x6e6
ntdll.dll!MD5Final+0x21e83
ntdll.dll!LdrInitializeThunk+0xe
ntdll.dll!NtWaitForSingleObject+0x15
ntdll.dll!RtlIntegerToUnicodeString+0x20b
ntdll.dll!LdrUnloadDll+0x2a
emacs.exe+0x21244e term_winsock at w32.c:6130
emacs.exe+0x2156d3 term_ntproc at w32.c:7852
emacs.exe+0xe3396 shut_down_emacs at emacs.c:2009
emacs.exe+0xe327a Fkill_emacs at emacs.c:1910
emacs.exe+0x1727f0 Ffuncall at eval.c:2805
emacs.exe+0x1b2b73 exec_byte_code at bytecode.c:919
emacs.exe+0x172fd2 funcall_lambda at eval.c:2973
emacs.exe+0x172a2c Ffuncall at eval.c:2854
emacs.exe+0x1b2b73 exec_byte_code at bytecode.c:919
emacs.exe+0x172fd2 funcall_lambda at eval.c:2973
emacs.exe+0x172a2c Ffuncall at eval.c:2854
emacs.exe+0x16bf87 Fcall_interactively at callint.c:836
emacs.exe+0x172845 Ffuncall at eval.c:2812
emacs.exe+0x1b2b73 exec_byte_code at bytecode.c:919
emacs.exe+0x172fd2 funcall_lambda at eval.c:2973
emacs.exe+0x172a2c Ffuncall at eval.c:2854
emacs.exe+0x1722db call1 at eval.c:2604
emacs.exe+0xe5a68 command_loop_1 at keyboard.c:1559
emacs.exe+0x16f6ec internal_condition_case at eval.c:1344
emacs.exe+0xe50bc command_loop_2 at keyboard.c:1169
emacs.exe+0x16ec99 internal_catch at eval.c:1108
emacs.exe+0xe5074 command_loop at keyboard.c:1149
emacs.exe+0xe480c recursive_edit_1 at keyboard.c:776
emacs.exe+0xe49c8 Frecursive_edit at keyboard.c:841
emacs.exe+0xe2c33 main at emacs.c:1596
emacs.exe+0x10b9 __mingw_CRTStartup at crt1.c:244
emacs.exe+0x1284 WinMainCRTStartup at crt1.c:274
emacs.exe+0x1b0580 _start at unexw32.c:118
ntdll.dll!RtlInitializeExceptionChain+0x63
ntdll.dll!RtlInitializeExceptionChain+0x36
</stack>

TID: 3944
State: Wait:WrUserRequest
<stack>
wow64win.dll+0x3fe3a
wow64win.dll+0x1aea8
wow64.dll!Wow64SystemServiceEx+0xd7
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x2d
wow64.dll!Wow64SystemServiceEx+0x1ce
wow64.dll!Wow64LdrpInitialize+0x42b
ntdll.dll!TpAlpcRegisterCompletionList+0x7f8b
ntdll.dll!LdrInitializeThunk+0xe
USER32.dll!DispatchMessageW+0x5c
emacs.exe+0x1e1de5 w32_msg_pump at w32fns.c:2436
emacs.exe+0x1e2023 w32_msg_worker@4 at w32fns.c:2664
ntdll.dll!RtlInitializeExceptionChain+0x63
ntdll.dll!RtlInitializeExceptionChain+0x36
</stack>

TID: 5988
State: Wait:UserRequest
<stack>
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8
wow64.dll!Wow64SystemServiceEx+0x1ce
wow64.dll!Wow64LdrpInitialize+0x42b
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
</stack>

TID: 6132
State: Wait:UserRequest
<stack>
wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0
wow64cpu.dll!TurboDispatchJumpAddressEnd+0xf5
wow64.dll!Wow64SystemServiceEx+0x1ce
wow64.dll!Wow64LdrpInitialize+0x42b
ntdll.dll!TpAlpcRegisterCompletionList+0x7f8b
ntdll.dll!LdrInitializeThunk+0xe
ntdll.dll!NtWaitForMultipleObjects+0x15
kernel32.dll!BaseThreadInitThunk+0x12
ntdll.dll!RtlInitializeExceptionChain+0x63
ntdll.dll!RtlInitializeExceptionChain+0x36
</stack>

-- 
Dani Moncayo