From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka 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 21:28:18 +0100 Message-ID: <497B79E2.9050905@gmx.de> References: "u7i4mujro.fsf@gnu.org" <497A1417.8040306@gmx.de> <497B22CA.4080203@gmx.de> <497B5641.7010501@gmx.de> <497B67DB.2010203@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232828919 29306 80.91.229.12 (24 Jan 2009 20:28:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 20:28:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 21:29:52 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 1LQp8Z-0002m4-RJ for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 21:29:52 +0100 Original-Received: from localhost ([127.0.0.1]:46614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQp7I-0007Kv-70 for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 15:28:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQp7F-0007Km-4g for emacs-devel@gnu.org; Sat, 24 Jan 2009 15:28:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQp7C-0007Ka-Pd for emacs-devel@gnu.org; Sat, 24 Jan 2009 15:28:27 -0500 Original-Received: from [199.232.76.173] (port=50304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQp7C-0007KX-JP for emacs-devel@gnu.org; Sat, 24 Jan 2009 15:28:26 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:47323) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LQp7B-00075c-UL for emacs-devel@gnu.org; Sat, 24 Jan 2009 15:28:26 -0500 Original-Received: (qmail invoked by alias); 24 Jan 2009 20:28:24 -0000 Original-Received: from p57A0AD1B.dip0.t-ipconnect.de (EHLO [192.168.1.3]) [87.160.173.27] by mail.gmx.net (mp064) with SMTP; 24 Jan 2009 21:28:24 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18fm34i57gfz8T4EAeFd6sAyiH5YOWzA7yUnm36T9 E9kMU/QG1BuNUH User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:108201 Archived-At: Eli Zaretskii wrote: >> Date: Sat, 24 Jan 2009 20:11:23 +0100 >> From: grischka >> CC: emacs-devel@gnu.org >> >>> if (gc_in_progress || waiting_for_input) >>> abort (); >>> >> Here too. >> >>> Can you see which one of gc_in_progress and waiting_for_input is >>> non-zero? >>> >> I'd bet for "waiting_for_input". > > Maybe; but I don't think Emacs should wait for input in the middle of > processing. It only does so when it is idle. If that is right then the flag state must be wrong. > >> However the problem starts earlier at: >> >> #4 0x081a9a78 in scan_lists (from=8, count=1, depth=-1, sexpflag=0) >> at syntax.c:2805 >> >> where it hits the "lose" label. > > That just makes it signal an error, which should not cause an abort. > Okay, so it's two bugs.