From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: crash in delete_window Date: Wed, 18 Nov 2009 09:11:51 +0100 Message-ID: <4B03AC47.5080102@gmx.at> References: <90F618D6-EAAC-4593-979F-E0176B465F2F@gmail.com> 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 1258532370 29462 80.91.229.12 (18 Nov 2009 08:19:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 08:19:30 +0000 (UTC) Cc: Emacs discussions To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 09:19:22 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 1NAfl2-00030B-Vt for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 09:19:21 +0100 Original-Received: from localhost ([127.0.0.1]:47127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAfl2-0005pO-Bv for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2009 03:19:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAfkO-0005ZY-8u for emacs-devel@gnu.org; Wed, 18 Nov 2009 03:18:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAfkJ-0005X2-H7 for emacs-devel@gnu.org; Wed, 18 Nov 2009 03:18:39 -0500 Original-Received: from [199.232.76.173] (port=33443 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAfkI-0005WO-V2 for emacs-devel@gnu.org; Wed, 18 Nov 2009 03:18:35 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:59341) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NAfkH-0006YI-2x for emacs-devel@gnu.org; Wed, 18 Nov 2009 03:18:34 -0500 Original-Received: (qmail invoked by alias); 18 Nov 2009 08:11:52 -0000 Original-Received: from 62-47-61-175.adsl.highway.telekom.at (EHLO [62.47.61.175]) [62.47.61.175] by mail.gmx.net (mp055) with SMTP; 18 Nov 2009 09:11:52 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19JRu5rx9ZJgkD+yCN+FtJr4pwR/muJtIL8Gis2+j jSwdEUJWPFzH6H User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <90F618D6-EAAC-4593-979F-E0176B465F2F@gmail.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:117153 Archived-At: > I just had a crash in delete_window and thought I'd do something about > it before/rather than filing a bug report.... From the trace below, > it seems like Fdelq is called, followed by a process_pending_signals > and some redisplay, which probably crashes because the window has been > half-deleted. IIUC it was about to delete a single-window frame > 30 org.gnu.AquamacsEmacs 0x0000000100018d9e delete_frame + 474 (frame.c:1474) so the first question is whether there were other frames left at that time. > Would it be sensible in this case to add some BLOCK_INPUT statements > to delete_window, or maybe SET_FRAME_GARBAGED? (Sorry if this is a > naive suggestion.) The downside of BLOCK_INPUT is that it makes Emacs unresponsive in the sense that you can't even see a garbled frame when something goes wrong. But yes - some general advice on why, whether and how BLOCK_INPUT should be used would be very welcome. martin