From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.bugs Subject: bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Date: Mon, 23 May 2022 16:02:44 -0300 Message-ID: <86zgj8rs17.fsf@phe.ftfl.ca> References: <83r3ifstzb.fsf@gnu.org> <86wps7dpn1.fsf@phe.ftfl.ca> <83lh8mqxhi.fsf@gnu.org> <86twn99k1q.fsf@phe.ftfl.ca> <83bn9hozre.fsf@gnu.org> <86mvt19gge.fsf@phe.ftfl.ca> <83y4clnhyg.fsf@gnu.org> <861tacamk1.fsf@phe.ftfl.ca> <878rrvsxky.fsf@gnus.org> <86v8uyd38g.fsf@phe.ftfl.ca> <87tuai6l58.fsf@yahoo.com> <877d6cr815.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12180"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: Po Lu , Eli Zaretskii , 22214@debbugs.gnu.org, Brian Burns To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 23 21:04:05 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntDLZ-00031I-5J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 21:04:05 +0200 Original-Received: from localhost ([::1]:48130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntDLW-0001a9-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 May 2022 15:04:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntDKY-0001YC-Pg for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 15:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntDKY-0005MF-8f for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 15:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntDKY-0000GN-5u for bug-gnu-emacs@gnu.org; Mon, 23 May 2022 15:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Mingrone Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 May 2022 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22214-submit@debbugs.gnu.org id=B22214.1653332576982 (code B ref 22214); Mon, 23 May 2022 19:03:02 +0000 Original-Received: (at 22214) by debbugs.gnu.org; 23 May 2022 19:02:56 +0000 Original-Received: from localhost ([127.0.0.1]:50219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntDKS-0000Fm-19 for submit@debbugs.gnu.org; Mon, 23 May 2022 15:02:56 -0400 Original-Received: from mail-qt1-f173.google.com ([209.85.160.173]:38834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntDKP-0000FU-Nu for 22214@debbugs.gnu.org; Mon, 23 May 2022 15:02:54 -0400 Original-Received: by mail-qt1-f173.google.com with SMTP id g21so4770743qtg.5 for <22214@debbugs.gnu.org>; Mon, 23 May 2022 12:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=EKkeqQnAhtu8tALmne3swzaF0CD0prje7AfEcKPvdEU=; b=Hy2IlhFF8daQPOmdzOBNNXmRxnyC3n68MvfXvbaosBcAETOYlZkfVtWVbj0KKfm+g8 5tn72fSNEPMwrtfi0Uzdwq5LZkfPtH2En0/rmttQrrc5w4gH8vwXxHxJ9/OqjFPN0kN5 gGBW61usQb8hxOqmf0KL+RuOVy30frHXz1dOM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=EKkeqQnAhtu8tALmne3swzaF0CD0prje7AfEcKPvdEU=; b=YmKhnPlENLg4XkOkIOVLZhFbja+fekebQ4mRR2Z3r3lCCBjGA5ooy90nLwXp7OOq0K 5fSJjb/vW8fSn8Wo7KVZTjNeOu/GFRPnCwKD9TPI5CiPmdR2yah/eH/YZzjGWcGeUOH9 vsNx1U0ctBuOvyDiTaak3bFB5KGEZU7VV56cLgLACepeI4FEvoQPXugRQqRa/+rMHnpt hrBKnjsPbvY0WskgvwJJBu/saeuRsZRZgNcO4gwrpk6sstWPDOoq+yMl2SOMQxDHgWMe GlO16R4NRYjx3TNKkG9+rpPjA73d8XXKvVNZ46e1wLywkPYOKjSXOjKAmIysNVBateMW NDHg== X-Gm-Message-State: AOAM5332KgFeAfYT79N4No8OskwUs5MVu8S46b/H3WEsNfN+3XgLSonC 01B3xLt+YPN8VMxCvR/7jnqaKg== X-Google-Smtp-Source: ABdhPJy+as7TZjNMD6bwF2wjh8UXj6pBDiE1G4F3Gyg2Vk03pnM7JuFfc9ngLmYfRijee9EsSL2RKQ== X-Received: by 2002:a05:622a:188e:b0:2f3:dc9f:946 with SMTP id v14-20020a05622a188e00b002f3dc9f0946mr17648214qtc.682.1653332567879; Mon, 23 May 2022 12:02:47 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-156-34-173-250.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.173.250]) by smtp.gmail.com with ESMTPSA id a16-20020a05620a125000b006a37503afb9sm3527657qkl.67.2022.05.23.12.02.45 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 May 2022 12:02:46 -0700 (PDT) In-Reply-To: <877d6cr815.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 23 May 2022 10:02:30 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232985 Archived-At: On Mon, 2022-05-23 at 10:02, Lars Ingebrigtsen wrote: > Po Lu writes: >> Joseph Mingrone writes: >>> I stopped using clipmon shortly after this bug was reported, but I just >>> cloned the repository and ran >>> % emacs -Q >>> (load "/path/to/clipmon/clipmon.el") >>> (run-at-time nil 2 (lambda () (gui-get-primary-selection))) >>> (menu-set-font) >>> When I dismissed the dialog box, sometimes things were fine, but other >>> times, Emacs started to use 100% CPU and would not respond to input. >>> Now I am able to kill the run-away emacs process and regain control of >>> the system. Below is information about my current installation. >> Does this fix the problem? > Joseph, did you have a chance to try Po's patch? >> diff --git a/src/xselect.c b/src/xselect.c >> index 6d167c0b6f..eb297e9cba 100644 >> --- a/src/xselect.c >> +++ b/src/xselect.c >> @@ -1255,7 +1255,9 @@ x_get_foreign_selection (Lisp_Object >> selection_symbol, Lisp_Object target_type, >> int nsecs = (timeout % 1000) * 1000000; >> TRACE1 (" Start waiting %"PRIdMAX" secs for SelectionNotify", secs); >> wait_reading_process_output (secs, nsecs, 0, false, >> - reading_selection_reply, NULL, 0); >> + /* Don't run any timers, since this >> + code isn't reentrant. */ >> + reading_selection_reply, NULL, -1); >> TRACE1 (" Got event = %d", !NILP (XCAR (reading_selection_reply))); >> if (NILP (XCAR (reading_selection_reply))) Hello all, Sorry for the delay. I lost track of this thread. I just rebuilt 5a1a67a with the patch applied. Using the same recipe as above, when I tried to dismiss the dialog box emacs became unresponsive and stared using 100% CPU. I had to use xkill. Joe