unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joseph Mingrone <jrm@ftfl.ca>
Cc: 22214@debbugs.gnu.org
Subject: bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
Date: Sun, 20 Dec 2015 17:54:30 +0200	[thread overview]
Message-ID: <83oadlt8sp.fsf@gnu.org> (raw)
In-Reply-To: <86y4cpk53i.fsf@phe.ftfl.ca> (message from Joseph Mingrone on Sun, 20 Dec 2015 02:26:57 -0400)

> From: Joseph Mingrone <jrm@ftfl.ca>
> Date: Sun, 20 Dec 2015 02:26:57 -0400
> 
> If clipmon-mode is enaled and a gui dialog box is displayed, then
> emacs will lock up and its process will use 100% CPU.  This happens
> with both
> 
> GNU Emacs 25.0.50.1 (amd64-portbld-freebsd10.1, GTK+ Version 2.24.29) of 2015-12-20
> 
> and
> 
> GNU Emacs 25.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-11-11.
> 
> Here is a recipe to repeat the problem:
> 
> % emacs -Q
> evaluate (load "/path/to/clipmon-20150306.1223/clipmon.el")
> S-<down> <down-mouse-1>
> 
> Thanks,
> 
> Joseph
> 
> Sometimes X will lock up and the only way to regain control is to
> switch to a virtual terminal and kill emacs.  Running emacs on a
> remote box, with the same recipe can lock the local window manager.  I
> will bring this to the attention of the clipmon developer in case this
> is a problem with the package.

What is your value of x-selection-timeout?

I think there is indeed a problem in clipmon: it calls
x-get-selection-value from a timer that runs every 2 sec.  But if the
call times out, and the value of x-selection-timeout is more than 2
sec (the default is 5, I think), then this will indeed wedge Emacs
cold, for obvious reasons.  In addition, the function that waits for
the timeout to expire also runs timers, which probably exacerbates the
problem.

Can you attach a debugger to Emacs when it is wedged, and see which
threads run and consume CPU?

Thanks.





  reply	other threads:[~2015-12-20 15:54 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20  6:26 bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Joseph Mingrone
2015-12-20 15:54 ` Eli Zaretskii [this message]
2015-12-21  2:31   ` Joseph Mingrone
2015-12-21 15:24     ` Eli Zaretskii
2015-12-21 16:41       ` Joseph Mingrone
2015-12-21 17:50         ` Eli Zaretskii
2015-12-21 19:42           ` Joseph Mingrone
2015-12-21  0:21 ` Brian Burns
2015-12-21  0:45   ` Joseph Mingrone
2015-12-22  7:56     ` Brian Burns
2015-12-21 15:26   ` Eli Zaretskii
2015-12-22  5:21 ` Joseph Mingrone
2015-12-22 16:06   ` Eli Zaretskii
2015-12-23 17:00     ` Joseph Mingrone
2015-12-23 17:12       ` Eli Zaretskii
2015-12-23 18:18         ` Joseph Mingrone
2015-12-23 18:22           ` Eli Zaretskii
2015-12-23 20:16             ` Brian Burns
2015-12-23 21:21               ` Joseph Mingrone
2015-12-24  7:43                 ` Brian Burns
2015-12-24 16:20                   ` Eli Zaretskii
2015-12-27  7:29                     ` Brian Burns
2022-04-23 14:06                 ` Lars Ingebrigtsen
2022-04-24 13:23                   ` Joseph Mingrone
2022-04-25  0:50                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-23  8:02                       ` Lars Ingebrigtsen
2022-05-23 19:02                         ` Joseph Mingrone
2022-05-24  0:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-29 15:51                             ` Joseph Mingrone
2022-05-29 23:58                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-30 13:00                                 ` Joseph Mingrone
2022-05-30 13:34                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83oadlt8sp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22214@debbugs.gnu.org \
    --cc=jrm@ftfl.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).