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

From: Dani Moncayo <[email-masked]>
Date: Wed, 15 May 2013 18:47:26 +0200

Hi Eli, I chose your method "2" in the previous mail, and here are the results:

In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2013-05-14 on LEG570
Bzr revision: 112585 [email-masked]
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/emacs/libs/libXpm-3.5.10/include -IC:/emacs/libs/libXpm-3.5.10/src
 -IC:/emacs/libs/libpng-dev_1.4.3-1_win32/include
 -IC:/emacs/libs/zlib-dev_1.2.5-2_win32/include
 -IC:/emacs/libs/giflib-4.1.4-1-lib/include
 -IC:/emacs/libs/jpeg-6b-4-lib/include
 -IC:/emacs/libs/tiff-3.8.2-1-lib/include
 -IC:/emacs/libs/libxml2-2.7.8-w32-bin/include/libxml2
 -IC:/emacs/libs/gnutls-3.1.10-w32/include
 -IC:/emacs/libs/libiconv-1.14-2-mingw32-dev/include'

* Thread ID: 6712.
* State: Wait:UserRequest
* Stack:
    wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0
    wow64cpu.dll!TurboDispatchJumpAddressEnd+0xf5
    wow64.dll!Wow64SystemServiceEx+0x1ce
    wow64.dll!Wow64LdrpInitialize+0x429
    ntdll.dll!RtlIsDosDeviceName_U+0x24c87
    ntdll.dll!LdrInitializeThunk+0xe
    ntdll.dll!ZwWaitForMultipleObjects+0x15
    kernel32.dll!BaseThreadInitThunk+0x12
    ntdll.dll!RtlInitializeExceptionChain+0x63
    ntdll.dll!RtlInitializeExceptionChain+0x36

* Thread ID: 6376.
* State: Wait:UserRequest
* Stack:
    wow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0
    wow64cpu.dll!TurboDispatchJumpAddressEnd+0x4a8
    wow64.dll!Wow64SystemServiceEx+0x1ce
    wow64.dll!Wow64LdrpInitialize+0x429
    ntdll.dll!RtlUniform+0x6e6
    ntdll.dll!RtlCreateTagHeap+0xa7
    ntdll.dll!LdrInitializeThunk+0xe
    ntdll.dll!ZwWaitForSingleObject+0x15
    ntdll.dll!RtlIntegerToUnicodeString+0x20b
    ntdll.dll!LdrUnloadDll+0x2a
    emacs.exe+0x8ff4f
    emacs.exe+0x92a89
    emacs.exe+0x3148
    emacs.exe+0x3017
    emacs.exe+0x14a70
    emacs.exe+0xe513a
    emacs.exe+0x15970
    emacs.exe+0x14e8b
    emacs.exe+0xe513a
    emacs.exe+0x15970
    emacs.exe+0x14e8b
    emacs.exe+0xeab8e
    emacs.exe+0x14b49
    emacs.exe+0xe513a
    emacs.exe+0x15515
    emacs.exe+0x14e8b
    emacs.exe+0x1422d
    emacs.exe+0x2482a
    emacs.exe+0x10c3d
    emacs.exe+0x23818
    emacs.exe+0x1069a
    emacs.exe+0x237d2
    emacs.exe+0x22d8c
    emacs.exe+0x230b9
    emacs.exe+0x29c8
    emacs.exe+0x10fd
    kernel32.dll!BaseThreadInitThunk+0x12
    ntdll.dll!RtlInitializeExceptionChain+0x63
    ntdll.dll!RtlInitializeExceptionChain+0x36
* Emacs stack translation:
    0x108ff4f is in term_winsock (w32.c:6008).
    0x1092a89 is in term_ntproc (w32.c:7455).
    0x1003148 is in shut_down_emacs (emacs.c:1942).
    0x1003017 is in Fkill_emacs (emacs.c:1847).
    0x1014a70 is in Ffuncall (eval.c:2674).
    0x10e513a is in exec_byte_code (bytecode.c:900).
    0x1015970 is in funcall_lambda (eval.c:2906).
    0x1014e8b is in Ffuncall (eval.c:2723).
    0x10e513a is in exec_byte_code (bytecode.c:900).
    0x1015970 is in funcall_lambda (eval.c:2906).
    0x1014e8b is in Ffuncall (eval.c:2723).
    0x10eab8e is in Fcall_interactively (callint.c:839).
    0x1014b49 is in Ffuncall (eval.c:2681).
    0x10e513a is in exec_byte_code (bytecode.c:900).
    0x1015515 is in funcall_lambda (eval.c:2840).
    0x1014e8b is in Ffuncall (eval.c:2723).
    0x101422d is in call1 (eval.c:2468).
    0x102482a is in command_loop_1 (keyboard.c:1586).
    0x1010c3d is in internal_condition_case (eval.c:1193).
    0x1023818 is in command_loop_2 (keyboard.c:1167).
    0x101069a is in internal_catch (eval.c:964).
    0x10237d2 is in command_loop (keyboard.c:1147).
    0x1022d8c is in recursive_edit_1 (keyboard.c:779).
    0x10230b9 is in Frecursive_edit (keyboard.c:844).
    0x10029c8 is in main (emacs.c:1533).
    No source file for address 0x10010fd.

(note-FWIW: this is the only thread that shows some CPU consumption)
* Thread ID: 6276.
* 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+0x429
    ntdll.dll!RtlIsDosDeviceName_U+0x24c87
    ntdll.dll!LdrInitializeThunk+0xe
    USER32.dll!DispatchMessageW+0x5c
    emacs.exe+0x14db55
    emacs.exe+0x14dd93
    kernel32.dll!BaseThreadInitThunk+0x12
    ntdll.dll!RtlInitializeExceptionChain+0x63
    ntdll.dll!RtlInitializeExceptionChain+0x36
* Emacs stack translation:
    0x114db55 is in w32_msg_pump (w32fns.c:2417).
    0x114dd93 is in w32_msg_worker@4 (w32fns.c:2645).

* Thread ID: 5516.
* State: Wait:UserRequest
* 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).

--
Dani Moncayo