From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14333: 24.3.50; Emacs hangs when trying to exit Date: Fri, 12 Sep 2014 11:11:33 +0300 Message-ID: <831trh8dhm.fsf@gnu.org> References: <83tx6pb6ay.fsf@gnu.org> <83ha2paz0h.fsf@gnu.org> <838uo1auca.fsf@gnu.org> <83vbr080d3.fsf@gnu.org> <83iomq4w29.fsf@gnu.org> <83egx9kg3l.fsf@gnu.org> <83mwafe6v6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410509550 17513 80.91.229.3 (12 Sep 2014 08:12:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 08:12:30 +0000 (UTC) Cc: 14333@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 10:12:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSLxt-0007ST-KH for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 10:12:21 +0200 Original-Received: from localhost ([::1]:43242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLxt-0005tq-5r for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 04:12:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLxk-0005rh-Oe for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 04:12:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSLxa-0002aO-F4 for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 04:12:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLxa-0002aK-CJ for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 04:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XSLxa-00009T-0L for bug-gnu-emacs@gnu.org; Fri, 12 Sep 2014 04:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Sep 2014 08:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14333 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 14333-submit@debbugs.gnu.org id=B14333.1410509500553 (code B ref 14333); Fri, 12 Sep 2014 08:12:01 +0000 Original-Received: (at 14333) by debbugs.gnu.org; 12 Sep 2014 08:11:40 +0000 Original-Received: from localhost ([127.0.0.1]:38833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSLxD-00008q-4F for submit@debbugs.gnu.org; Fri, 12 Sep 2014 04:11:39 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:55469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSLx9-00008f-Sb for 14333@debbugs.gnu.org; Fri, 12 Sep 2014 04:11:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NBS002003YOED00@a-mtaout22.012.net.il> for 14333@debbugs.gnu.org; Fri, 12 Sep 2014 11:11:34 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NBS002AO439BZ20@a-mtaout22.012.net.il>; Fri, 12 Sep 2014 11:11:34 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93293 Archived-At: > Date: Fri, 12 Sep 2014 08:14:40 +0200 > From: Dani Moncayo > Cc: "14333@debbugs.gnu.org" <14333@debbugs.gnu.org> > > KERNELBASE.dll!GetModuleFileNameW+0x3bd > KERNELBASE.dll!GetModuleHandleW+0x29 > KERNELBASE.dll!GetModuleHandleA+0x34 > emacs.exe+0x135a ?? at cygming-crtbegin.c:0 > emacs.exe+0xf6827 shut_down_emacs at emacs.c:1991 > emacs.exe+0xf2238 SUBRP at lisp.h:2471 > emacs.exe+0xf0add XSUBR at lisp.h:914 > emacs.exe+0x185bcf Ffuncall at eval.c:2815 > emacs.exe+0x1c685c exec_byte_code at bytecode.c:916 This looks like an assertion violation (that somehow leads to a deadlock). The call to Ffuncall at eval.c:2815 should have called Fkill_emacs, after extracting its function pointer: 2814 case 1: 2815 val = (XSUBR (fun)->function.a1 (internal_args[0])); 2816 break; Instead, it seems to hit the assertion violation inside XSUBR. Could you next time attach GDB to a running Emacs (before it hangs), or start Emacs under GDB to begin with, put a breakpoint in 'die' and in 'Fkill_emacs', and see what happens when you exit? If the breakpoint inside 'Fkill_emacs' breaks, just type the "continue" command; Emacs will probably exit normally. But if the breakpoint in 'die' breaks, please see what kind of object do you have in 'fun', the value that is passed to XSUBR on line 2815 above. Do you have some hooks that are run via kill-emacs-query-functions? If so, what are they? Also, is it possible that you are exiting Emacs from a client frame, i.e. a frame that was created by emacsclient?