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#15794: Core dump after SIGTERM during GC marking Date: Sun, 03 Nov 2013 19:39:24 +0200 Message-ID: <83eh6x9ygj.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1383500418 5696 80.91.229.3 (3 Nov 2013 17:40:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2013 17:40:18 +0000 (UTC) Cc: 15794@debbugs.gnu.org To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 18:40:22 2013 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 1Vd1ew-0000Us-5Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2013 18:40:22 +0100 Original-Received: from localhost ([::1]:45908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd1ev-0008A5-Hu for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2013 12:40:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd1el-00089n-Rn for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2013 12:40:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vd1ee-0005am-Hb for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2013 12:40:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd1ee-0005aJ-75 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2013 12:40:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vd1ec-0004U7-O1 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2013 12:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2013 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15794 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15794-submit@debbugs.gnu.org id=B15794.138350038317179 (code B ref 15794); Sun, 03 Nov 2013 17:40:02 +0000 Original-Received: (at 15794) by debbugs.gnu.org; 3 Nov 2013 17:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:32864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vd1eH-0004Sz-9t for submit@debbugs.gnu.org; Sun, 03 Nov 2013 12:39:42 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38072) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vd1eD-0004Sj-Ah for 15794@debbugs.gnu.org; Sun, 03 Nov 2013 12:39:38 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVP008007J1DB00@a-mtaout20.012.net.il> for 15794@debbugs.gnu.org; Sun, 03 Nov 2013 19:39:30 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVP0082X7PU4L90@a-mtaout20.012.net.il>; Sun, 03 Nov 2013 19:39:30 +0200 (IST) 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:79921 Archived-At: > Date: Sun, 3 Nov 2013 00:28:09 -0400 > From: Barry OReilly > > I noticed a core dump file in my file system that was almost a week old. > I'm not certain what was doing You can find the equivalent of "C-h l" in the variable recent_keys. > but I think I was developing Elisp code > around the time which may have inf looped and led to me issuing the SIGTERM > indicated in the backtrace. > > I have attached the output of 'bt full'. Executive summary: . Emacs was in GC . You killed it with SIGTERM . Emacs started emergency shutdown, and as part of that invoked the hooks in kill-emacs-hook . One of those hooks hit a bad regexp, and tried to signal an error . 'signal' aborted because it noticed that Emacs is in GC Since kill-emacs-hook is nil by default, it is hard to know what exactly happened. Please try to find out whoch function was run by the hook at the point of the crash. The easiest way of doing that is to call "xbacktrace" (which is always recommended when reporting bugs, btw). In any case, running Lisp in the middle of GC is intrinsically dangerous, so perhaps the error in regexp is due to that; hard to know without seeing the pattern that was passed to compile_pattern_1.