all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: 9081@debbugs.gnu.org
Subject: bug#9081: 24.0.50; crash in X
Date: Sun, 14 Aug 2011 17:00:41 -0400	[thread overview]
Message-ID: <87wrefemiu.fsf@stupidchicken.com> (raw)
In-Reply-To: <svhb6o6d2k.fsf@smsv2-L.wtc.algo> (Sam Steingold's message of "Thu, 14 Jul 2011 12:29:07 -0400")

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.





  reply	other threads:[~2011-08-14 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14 16:29 bug#9081: 24.0.50; crash in X Sam Steingold
2011-08-14 21:00 ` Chong Yidong [this message]
2011-08-17 21:38   ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrefemiu.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=9081@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.