From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Sat, 25 Feb 2017 22:33:20 +0200 Message-ID: <83lgsuqacv.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488054912 6696 195.159.176.226 (25 Feb 2017 20:35:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2017 20:35:12 +0000 (UTC) Cc: 25875@debbugs.gnu.org To: Richard Copley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 25 21:35:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chj3a-00015y-IN for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2017 21:35:06 +0100 Original-Received: from localhost ([::1]:44151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chj3g-0002IH-HB for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2017 15:35:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chj3Z-0002GG-OT for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 15:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chj3W-000880-Hk for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 15:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chj3W-00087W-EY for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 15:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chj3W-0003NL-7k for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 15:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2017 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25875-submit@debbugs.gnu.org id=B25875.148805485312912 (code B ref 25875); Sat, 25 Feb 2017 20:35:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 25 Feb 2017 20:34:13 +0000 Original-Received: from localhost ([127.0.0.1]:56060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chj2i-0003MC-NZ for submit@debbugs.gnu.org; Sat, 25 Feb 2017 15:34:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chj2g-0003Lx-TH for 25875@debbugs.gnu.org; Sat, 25 Feb 2017 15:34:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chj2X-000812-Mv for 25875@debbugs.gnu.org; Sat, 25 Feb 2017 15:34:04 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chj2X-00080y-K6; Sat, 25 Feb 2017 15:34:01 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1chj2U-00024v-PJ; Sat, 25 Feb 2017 15:34:01 -0500 In-reply-to: (message from Richard Copley on Sat, 25 Feb 2017 19:35:28 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129799 Archived-At: > From: Richard Copley > Date: Sat, 25 Feb 2017 19:35:28 +0000 > > On MS Windows, Emacs sometimes hangs when shutting down or logging out. How did you shut it down in this case? This part: > #2 0x0000000400266caf in sys_sleep (seconds=1000) > at ../../repo/src/w32.c:3075 > No locals. > #3 0x0000000400238225 in w32_wnd_proc (hwnd=0x1f076a, msg=22, wParam=1, > lParam=0) at ../../repo/src/w32fns.c:4805 seems to indicate that you shut down your Windows session or something? > (This build includes 5114b3a204..: Eli Zaretskii 2017-02-23 Avoid > quitting inside a critical section on MS-Windows, see #25279). > > I've included backtraces for all the threads having Emacs functions on > the stack, because I can't tell which are deadlocked, if any. (2 and 3?) I'm not sure I see any of them deadlocked. Each one is waiting for something it should. > Also got these from thread 2, frame 2. > > (gdb) print crit > $1 = (CRITICAL_SECTION *) 0x401bc6a20 > (gdb) print crit_real > $2 = {DebugInfo = 0xffffffffffffffff, LockCount = -1, RecursionCount = 0, > OwningThread = 0x0, LockSemaphore = 0x0, SpinCount = 33556432} Any reasons why this drew your attention? > Configured using: > 'configure --prefix=/mingw64 --with-modules > --enable-locallisppath=/c/emacs/site-lisp > CPPFLAGS=-D_WIN32_WINNT=_WIN32_WINNT_WIN7 'CFLAGS=-O0 -g -ggdb'' Why are you setting _WIN32_WINNT to this value when compiling Emacs?