From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Sat, 25 Feb 2017 22:02:17 +0000 Message-ID: References: <83lgsuqacv.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1488060238 18284 195.159.176.226 (25 Feb 2017 22:03:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2017 22:03:58 +0000 (UTC) Cc: 25875@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 25 23:03:55 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 1chkRU-0004E8-SO for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2017 23:03:53 +0100 Original-Received: from localhost ([::1]:44417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chkRa-00071X-Tu for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2017 17:03:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chkQj-0006cE-St for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 17:03:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chkQg-0004NA-Qm for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 17:03:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chkQg-0004N4-N8 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 17:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chkQg-0005Wp-Bu for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2017 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Feb 2017 22:03: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.148806017521238 (code B ref 25875); Sat, 25 Feb 2017 22:03:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 25 Feb 2017 22:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:56097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chkQZ-0005WT-1Q for submit@debbugs.gnu.org; Sat, 25 Feb 2017 17:02:55 -0500 Original-Received: from mail-ua0-f176.google.com ([209.85.217.176]:35454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chkQX-0005WF-Er for 25875@debbugs.gnu.org; Sat, 25 Feb 2017 17:02:53 -0500 Original-Received: by mail-ua0-f176.google.com with SMTP id 40so29973906uau.2 for <25875@debbugs.gnu.org>; Sat, 25 Feb 2017 14:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lDbmci8/4YOUq9Dm6S6co29SyOmtwANuz8Lo/DjodGE=; b=PT+BSTzDG/lB+WGBEgbzi5cVmbXuFwYwBiqN4jO6DaYHJqPNjVI7LsMkgeY55yR+vS ntv7Q/BH2h9Wm/rG4PTQfjTF5+VgsfXTMkx5XVwpgiLosuqUTrF7o9ievemXxLuaS6O+ ee7aJs4GnRcE4sJICcm9+dvdb3Wj5GghV60kx05/S0RFkMOcFPKFvOOXi5E90jlQqgXn Zandbgt89+ihlv3EjKK93Ks4A7pIk+5QN5c2mxraMly9y9QLOUMF1ojGHNpmBDma79zr gtA0LsO853L7YMuOkooa1kSoLy/KIng/oOhmr7k/oSlKb43OnEWS89ZYGqaEKVSlrF7X KMvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lDbmci8/4YOUq9Dm6S6co29SyOmtwANuz8Lo/DjodGE=; b=lb7+IAPTQBMxfJnltKpeH43aVYuhgIG3zRZloBmBevrNVgJYEGk+BsSL92DdkBAwpl YzU0zEjUJlPezoI27KPBUvBlLZ+G7MfftIRYkrFtsmbSWfTtA7+6tNrJFJLbGFylQC5O P4QGeFUlLcdIwqgvTSXhRAlLAAZEb/FXm3uLbikAoCCwbbeBQ0rdC/2mReAbBPsBgLoc /0smUOAr7J94QIuZBZ+jJFnFV0KLY4NMWOhQL2cWaOw4hsF41Wjk/J7LZYMfQUDxr2Oz k00UcUH6ub7E4PyD8iBCl1mQVjZIxBIEtAKwwCMpz85/QXdD68fOkqtbcRcWTTHxGvvb //LA== X-Gm-Message-State: AMke39mK/2wpayim/C0t6hIBGP2A++tvOv9iBngPYiToDijzAUcInj0bxAiOGqxMOA51wd3vsKwEUj9wqIcxEA== X-Received: by 10.159.56.193 with SMTP id w1mr4648576uaf.72.1488060168045; Sat, 25 Feb 2017 14:02:48 -0800 (PST) Original-Received: by 10.159.37.33 with HTTP; Sat, 25 Feb 2017 14:02:17 -0800 (PST) In-Reply-To: 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:129806 Archived-At: On 25 February 2017 at 21:37, Richard Copley wrote: > On 25 February 2017 at 21:30, Richard Copley wrote: >>>>> 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? >>> >>> It's part of a patch that sets the AppUserModelID of the Emacs >>> process and of the shortcut created by addpm.exe to the same >>> string, so that if I pin the shortcut to the taskbar, that icon >>> will combine with the taskbar button of a running Emacs process. >>> I can't imagine it's relevant to this issue. >>> >>> [Would you like to see the patch? It would only be a starting point, >>> since it wouldn't compile on earlier versions of the OS in its >>> current state. And I'm still not ready to assign copyright.] >> >> Hmm, that doesn't make much sense, does it? I only need those >> flags in addpm.c, not for the rest of Emacs. Perhaps it's left over >> from another experiment. I've taken it out of my build script, but >> I haven't rebuilt because current master doesn't build from pristine: Builds fine without that flag, so I'll stop using it. Thanks. A negative test result: from "emacs -Q", this recipe doesn't cause a hang: ;; open an Ediff control panel frame M-x ediff-buffers RET *scratch* RET *Messages* RET ;; Restart the computer. ;; (Result: the computer restarts normally.) Another data point: I observed the same thing (i.e., Windows failing to shut down, followed by Emacs being in a state where it doesn't respond to keyboard and mouse input) on my work Windows 7 laptop. (Didn't attach GDB and didn't try "taskkill.exe" that time.) So this doesn't seem to be related to my hardware or Windows 10. But it could be influenced by my config (which is all but identical on both machines), since I haven't reproduced it from "emacs -Q".