From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#9081: 24.0.50; crash in X Date: Sun, 14 Aug 2011 17:00:41 -0400 Message-ID: <87wrefemiu.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313355692 5217 80.91.229.12 (14 Aug 2011 21:01:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 21:01:32 +0000 (UTC) To: 9081@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 14 23:01:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QshoF-0004tN-Ts for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 23:01:28 +0200 Original-Received: from localhost ([::1]:38028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QshoF-0000Ct-HD for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 17:01:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QshoD-0000Ck-Af for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:01:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QshoC-0007Hx-DG for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:01:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QshoC-0007Ht-Bj for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:01:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qshpl-0003a5-KK; Sun, 14 Aug 2011 17:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2011 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9081 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9081-submit@debbugs.gnu.org id=B9081.131335574713718 (code B ref 9081); Sun, 14 Aug 2011 21:03:01 +0000 Original-Received: (at 9081) by debbugs.gnu.org; 14 Aug 2011 21:02:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QshpA-0003ZA-FY for submit@debbugs.gnu.org; Sun, 14 Aug 2011 17:02:26 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qshp8-0003Z3-7s for 9081@debbugs.gnu.org; Sun, 14 Aug 2011 17:02:23 -0400 Original-Received: from furball ([64.134.68.235]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7EL0gij003595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for <9081@debbugs.gnu.org>; Sun, 14 Aug 2011 17:00:43 -0400 In-Reply-To: (Sam Steingold's message of "Thu, 14 Jul 2011 12:29:07 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 14 Aug 2011 17:03:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50080 Archived-At: Thanks for the bug report. This crash occurs when Emacs is waiting for a reply to a selection event. During this waiting period, X errors are being caught. One of the events that come in during this period caused Lisp code to run via safe_run_hooks, which triggers the following in internal_condition_case: /* Since Fsignal will close off all calls to x_catch_errors, we will get the wrong results if some are not closed now. */ #if HAVE_X_WINDOWS if (x_catching_errors ()) abort (); #endif Anyone have a clue about the rationale of the above code? It was inserted by RMS on 2006-03-11, but I don't see anything in the emacs-devel or bug-gnu-emacs archives discussing this. Note that there is no corresponding check in internal_lisp_condition_case. Note also that x_reply_selection_request has a record_unwind_protect to uncatch X errors. If no one has any idea, I propose to remove those lines.