From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM Date: Sat, 24 Jan 2009 18:14:30 +0200 Message-ID: References: "u7i4mujro.fsf@gnu.org" <497A1417.8040306@gmx.de> <497B22CA.4080203@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232813683 18303 80.91.229.12 (24 Jan 2009 16:14:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 16:14:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: grischka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 17:15:56 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQlAo-0005wi-2N for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 17:15:54 +0100 Original-Received: from localhost ([127.0.0.1]:57813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQl9W-00079T-Dz for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 11:14:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQl9S-00079I-T3 for emacs-devel@gnu.org; Sat, 24 Jan 2009 11:14:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQl9S-00078y-6o for emacs-devel@gnu.org; Sat, 24 Jan 2009 11:14:30 -0500 Original-Received: from [199.232.76.173] (port=37914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQl9S-00078u-3U for emacs-devel@gnu.org; Sat, 24 Jan 2009 11:14:30 -0500 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:20462) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQl9R-000578-Lv for emacs-devel@gnu.org; Sat, 24 Jan 2009 11:14:30 -0500 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KDZ00300GWVH700@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Sat, 24 Jan 2009 18:14:44 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.6.113]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KDZ00400H4JFGM0@i_mtaout5.012.net.il>; Sat, 24 Jan 2009 18:14:44 +0200 (IST) In-reply-to: <497B22CA.4080203@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108192 Archived-At: > Date: Sat, 24 Jan 2009 15:16:42 +0100 > From: grischka > CC: emacs-devel@gnu.org > > >> Btw, with SIGINT emacs (GTK) quits like this > >> Fatal Error (6)Abort > >> Is this a bug? > > > > If that's the result of "kill -INT" from the shell prompt, then Emacs > > should shut down. Sounds like somewhere along the shutdown procedure > > it hits a call to `abort'. A backtrace would help. > > > > Happens when pressing Ctrl-C after starting emacs at a xterm prompt. Pressing Ctrl-C where? Emacs redefines SIGINT so that it is produced by C-g, not by C-c (because the latter is used in many key sequences), so I presume you don't mean typing Ctrl-C into the Emacs window. But then where did you type it? Also, by "starting emacs at a xterm prompt", do you mean "emacs -nw" or do you mean a GUI session started at the shell prompt? > IIRC to reproduce it it suffices to call 'pp' in a kill-emacs-hook. You mean, call 'pp' in a kill-emacs-hook and _then_ deliver a SIGINT? Or do you mean that having `pp' called from kill-emacs-hook will cause the abort even if Emacs is shut down normally, via "C-c C-c"? > "prj-print-list" (0xbfa56bd0) > "progn" (0xbfa56d10) > "if" (0xbfa56d90) > "when" (0xbfa56e10) > "let" (0xbfa56f00) > "let" (0xbfa56ff0) > "progn" (0xbfa57080) > "if" (0xbfa57100) > "when" (0xbfa57180) > "prj-saveconfig" (0xbfa57200) > "prj-saveall" (0xbfa57320) > "prj-on-kill" (0xbfa574ec) > "run-hooks" (0xbfa57584) > (gdb) What are those prj-* functions?