unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14333@debbugs.gnu.org
Subject: bug#14333: 24.3.50; Emacs hangs when trying to exit
Date: Thu, 21 Nov 2013 18:10:30 +0100	[thread overview]
Message-ID: <CAH8Pv0ga539w72DMQ0jY_cuDP=_TBRV32NE-4kCbHkQ1w0PcMQ@mail.gmail.com> (raw)
In-Reply-To: <83k3g4ffu7.fsf@gnu.org>

>> Can you try adding this line:
>>
>>     Sleep (1000);
>
> Actually, let's try with something that should be abundantly enough:
>
>         Sleep (20000);
>
> (that's 20-sec wait).  It will let Emacs wait for 20 sec during exit,
> but the question is, does it solve the hang?  If it does, I will come
> up with a more clever wait procedure.

I patched my emacs that way, and I've used this for two days, but
sadly I've just got another hung session:

(gdb) thread apply all bt

Thread 5 (Thread 4388.0x1ff8):
#0  0x778d000d in ntdll!DbgBreakPoint () from C:\Windows\SysWOW64\ntdll.dll
#1  0x7795f8ee in ntdll!DbgUiRemoteBreakin () from C:\Windows\SysWOW64\ntdll.dll
#2  0x1d9bdd74 in ?? ()
#3  0x00000000 in ?? ()

Thread 4 (Thread 4388.0xcd4):
#0  0x778df8d1 in ntdll!ZwWaitForSingleObject () from
C:\Windows\SysWOW64\ntdll.dll
#1  0x778df8d1 in ntdll!ZwWaitForSingleObject () from
C:\Windows\SysWOW64\ntdll.dll
#2  0x778fb4b4 in ntdll!RtlIntegerToUnicodeString () from
C:\Windows\SysWOW64\ntdll.dll
#3  0x778fb398 in ntdll!RtlIntegerToUnicodeString () from
C:\Windows\SysWOW64\ntdll.dll
#4  0x7791650d in ntdll!LdrShutdownThread () from C:\Windows\SysWOW64\ntdll.dll
#5  0x779c20c0 in ntdll!NlsAnsiCodePage () from C:\Windows\SysWOW64\ntdll.dll
#6  0x1f56dd84 in ?? ()
#7  0x00000000 in ?? ()

Thread 3 (Thread 4388.0x154c):
#0  0x764e78d7 in USER32!DispatchMessageW () from C:\Windows\syswow64\user32.dll
#1  0x011e1de5 in w32_msg_pump (msg_buf=0x6933ff28) at
../../repo/src/w32fns.c:2436
#2  0x011e2023 in w32_msg_worker@4 (arg=0x0) at ../../repo/src/w32fns.c:2662
#3  0x7733336a in KERNEL32!BaseThreadInitThunk () from
C:\Windows\syswow64\kernel32.dll
#4  0x778fbf32 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\SysWOW64\ntdll.dll
#5  0x778fbf05 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\SysWOW64\ntdll.dll
#6  0x00000000 in ?? ()

Thread 2 (Thread 4388.0x1e44):
#0  0x778e015d in ntdll!ZwWaitForMultipleObjects () from
C:\Windows\SysWOW64\ntdll.dll
#1  0x778e015d in ntdll!ZwWaitForMultipleObjects () from
C:\Windows\SysWOW64\ntdll.dll
#2  0x778fc6c5 in ntdll!RtlRegisterThreadWithCsrss () from
C:\Windows\SysWOW64\ntdll.dll
#3  0x7733336a in KERNEL32!BaseThreadInitThunk () from
C:\Windows\syswow64\kernel32.dll
#4  0x778fbf32 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\SysWOW64\ntdll.dll
#5  0x778fbf05 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\SysWOW64\ntdll.dll
#6  0x00000000 in ?? ()

Thread 1 (Thread 4388.0x16b8):
#0  0x778df8d1 in ntdll!ZwWaitForSingleObject () from
C:\Windows\SysWOW64\ntdll.dll
#1  0x778df8d1 in ntdll!ZwWaitForSingleObject () from
C:\Windows\SysWOW64\ntdll.dll
#2  0x778fb4b4 in ntdll!RtlIntegerToUnicodeString () from
C:\Windows\SysWOW64\ntdll.dll
#3  0x778fb398 in ntdll!RtlIntegerToUnicodeString () from
C:\Windows\SysWOW64\ntdll.dll
#4  0x77903ab8 in ntdll!LdrUnloadDll () from C:\Windows\SysWOW64\ntdll.dll
#5  0x779c20c0 in ntdll!NlsAnsiCodePage () from C:\Windows\SysWOW64\ntdll.dll
#6  0x77f3cf20 in ?? ()
#7  0x698c0878 in ?? ()
#8  0x767e2d1f in KERNELBASE!FreeLibrary () from
C:\Windows\syswow64\KernelBase.dll
#9  0x6fe4c1ad in NSPStartup () from C:\Windows\System32\mswsock.dll
#10 0x6fe4c207 in NSPStartup () from C:\Windows\System32\mswsock.dll
#11 0x771eaf4c in WahEnumerateHandleContexts () from
C:\Windows\syswow64\ws2_32.dll
#12 0x771eae54 in WahEnumerateHandleContexts () from
C:\Windows\syswow64\ws2_32.dll
#13 0x771e659e in WSACloseEvent () from C:\Windows\syswow64\ws2_32.dll
#14 0x00000000 in ?? ()

-- 
Dani Moncayo





  reply	other threads:[~2013-11-21 17:10 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02  7:09 bug#14333: 24.3.50; Emacs hangs when trying to exit Dani Moncayo
2013-05-02 16:20 ` Eli Zaretskii
2013-05-08  7:51   ` Dani Moncayo
2013-05-08 16:43     ` Eli Zaretskii
2013-05-09  6:32       ` Dani Moncayo
2013-05-09  9:09         ` Dani Moncayo
2013-05-09 15:53           ` Eli Zaretskii
2013-05-15 16:47             ` Dani Moncayo
2013-05-15 17:18               ` Eli Zaretskii
2013-05-15 19:11                 ` Dani Moncayo
2013-05-15 20:42                   ` Eli Zaretskii
2013-05-16  7:10                     ` Eli Zaretskii
2013-05-16  7:18                       ` Dani Moncayo
2013-05-16  7:35                         ` Eli Zaretskii
2013-05-16  7:44                           ` Dani Moncayo
2013-05-16  8:59                             ` Eli Zaretskii
2013-05-21  7:01                               ` Dani Moncayo
2013-05-21 16:48                                 ` Eli Zaretskii
2013-05-22 17:50                                   ` Dani Moncayo
2013-08-29  7:22                                     ` Dani Moncayo
2013-08-29 15:33                                       ` Eli Zaretskii
2013-08-30  6:30                                         ` Dani Moncayo
2013-08-30  7:15                                           ` Eli Zaretskii
2013-09-11  8:44                                         ` Dani Moncayo
2013-09-11 13:38                                           ` Eli Zaretskii
2013-09-11 14:20                                             ` Dani Moncayo
2013-09-11 16:22                                               ` Eli Zaretskii
2013-10-02 16:12                                                 ` Dani Moncayo
2013-11-13 16:40                                                   ` Dani Moncayo
2013-11-13 16:50                                                     ` Eli Zaretskii
2013-11-13 17:00                                                       ` Dani Moncayo
2013-11-13 20:28                                                         ` Eli Zaretskii
2013-11-13 20:50                                                           ` Dani Moncayo
2013-11-13 21:01                                                             ` Eli Zaretskii
     [not found]                                                               ` <CAH8Pv0iRiQj+ZDnQr_0+obmsYPf_+mzn-m4ECMqG4K7Wi_G1xQ@mail.gmail.com>
2013-11-13 21:15                                                                 ` Dani Moncayo
2013-11-13 21:20                                                                 ` Eli Zaretskii
2013-11-19 17:13                                                               ` Dani Moncayo
2013-11-19 17:36                                                                 ` Eli Zaretskii
2013-11-19 17:42                                                                   ` Eli Zaretskii
2013-11-21 17:10                                                                     ` Dani Moncayo [this message]
2013-11-21 17:28                                                                       ` Eli Zaretskii
2014-06-30 16:33 ` Dani Moncayo
2014-07-10 11:44   ` Dani Moncayo
2014-07-10 15:08     ` Eli Zaretskii
2014-07-10 15:13       ` Dani Moncayo
2014-07-10 17:45         ` Eli Zaretskii
2014-07-10 19:24           ` Dani Moncayo
2014-07-10 19:26             ` Eli Zaretskii
2014-07-14 10:15               ` Dani Moncayo
2014-07-14 14:46                 ` Eli Zaretskii
2014-07-21 12:35                   ` Dani Moncayo
2014-07-21 14:37                     ` Eli Zaretskii
2014-07-22  6:39                       ` Dani Moncayo
2014-07-25  8:17                         ` Eli Zaretskii
2014-09-02 13:18                           ` Dani Moncayo
2014-09-04 15:35                             ` Eli Zaretskii
2014-09-04 19:37                               ` Dani Moncayo
2014-09-12  6:14                                 ` Dani Moncayo
2014-09-12  8:11                                   ` Eli Zaretskii
2014-09-12  8:20                                     ` Dani Moncayo
2015-12-26  0:45                                       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH8Pv0ga539w72DMQ0jY_cuDP=_TBRV32NE-4kCbHkQ1w0PcMQ@mail.gmail.com' \
    --to=dmoncayo@gmail.com \
    --cc=14333@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).