From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63865: 29.0.90; call-process while owning the X selection hangs other processes Date: Sat, 03 Jun 2023 20:07:33 +0800 Message-ID: <87wn0kn3zu.fsf@yahoo.com> References: <83edmt9j8i.fsf@gnu.org> <87bkhxnhpk.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33318"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 63865@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 03 14:08:22 2023 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 1q5Q3S-0008Ss-D8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jun 2023 14:08:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5Q3B-0008Fo-Ns; Sat, 03 Jun 2023 08:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5Q38-0008FR-US for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 08:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5Q37-0000KB-Tk for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 08:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5Q37-00008U-OP for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 08:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2023 12:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63865 X-GNU-PR-Package: emacs Original-Received: via spool by 63865-submit@debbugs.gnu.org id=B63865.1685794071504 (code B ref 63865); Sat, 03 Jun 2023 12:08:01 +0000 Original-Received: (at 63865) by debbugs.gnu.org; 3 Jun 2023 12:07:51 +0000 Original-Received: from localhost ([127.0.0.1]:41753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Q2x-000083-5c for submit@debbugs.gnu.org; Sat, 03 Jun 2023 08:07:51 -0400 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]:34518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Q2u-00007k-HV for 63865@debbugs.gnu.org; Sat, 03 Jun 2023 08:07:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685794063; bh=ekrRgSvsUTC/kTqrzSD6LQF4S4SJ5LVWu7Z0EQWvx2M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=c1F8fodOdY5Zd24cJFZ2XYZCYlKpbfeIFvnD/LJVuPIG627eVXeEdJIncQnfLsDd4U6pphKFH3/EMfJfdHBj1qhPHU3TMfBJGo7tZprnWKdRENvBpMknApJKhvnpcBiO27vrQ9/Dmw3MvbumaZ1+avruljZMebeezo0sRtPtTQGiOSWYLL2Jz2agNKaFpXu/uc+lF2QtcssIgforsBvPbVrcbZFX4Byblk+von7je25mFwvPUzuZwcXmTTOwI5DGGz3r0I/mKwhE1/7N1ppvc8ACB8P3VsFFqZKIXqASiEsAv5SKet4ZHsJhyK4W0Ytw1giGiKgeVErkX4C+bYDnqw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1685794063; bh=rlbXCdwY0uMG0OmAKX2sDTn1xLtpplM02YMvQt82nT0=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=girBXQD7c0VZJmbp7LBZ6k1MG3dhF0Ba+RlZ6eglYc0Lb/ersXbAh1MOPI/u6BebzbwnY/XOXuEXT3BSAvyfnc+yvWYGQ/rCbBERsVJRH9Gjn9N+jV4kSzbkOcPrz9rgV7Npqz97uE6udFZk2ayTm8xo5Eb2AGbWH8/2KMkonjVpT1kdeZXQDa5TF0FYRp6yKV2PaPLAKxbumP9Sqt+YMuO2a5m/lh8doitwsbqA3CpZon6LbncsDnNfdGFWRueNHgpHIMPDXK+3Ya8aXPAXsGzXEnGYvijht6r0pfcgjhGcGmj3+oVcvrND0f8jyd+jGCAS/ufbbAut532AqumZ8A== X-YMail-OSG: TYzryggVM1kzp4gr5r2NrJ4nUvYAFiCCrv7uw5fPGc5jXXbrLI8eCX68wP1yaMK 9tTAS5I.VA7YN_fMLmLntWz0OcvElRZUnbQt0wi4TMxHDchxAq7esJUU1ccVDJOECGtOlJqoKxY6 t7KLkEZCWd4l4l.bp9yEND3x8Ptr_3NAWu1MOlBPSluSnKhd7P1qtJ70KxMkTidWdcEmfOaFjIs. i2QPX4bUBkXQUoulrdJ4weyA8ip6zbKhChs79ItKLcQVtW5_sGIV1wMelWwngsXfMNB7xAeoI7si e3Ph6ACN9MlsxiCCGSenOa2dLN6bcAZt8AKyOWnlLx6ulFJRnw.kcPKevrHqEzbewltus.B0St5j 7bz0JbcwID0CTv39iuCqr.q4Z3sG83FCVT4RxtrkeUhAKBS2.V_zh1qgn.p3t77FF3vutwM2mYdH IGImJ0L836yz6wRlkNbqWtPoHCje_Q_JbaZm2P67RyFlHR70wFTGxLcBwCMvuTNBSIKN1s3B_ZN8 XqJIDlN4A8UlJkmXq.8c5lla7PvyakKcraL7bWZxPMdVfWXV.D7LBpMWAXzz2vPoNQtxY.ozSyq. g5MIVMAaFDqEMSfa0tvaIlIkE87Px.j52Sybhx_TEnobPjMxHYFvisSIGS1ZpNn77A7HyxBzw1Np 7cTp83RSbJOLviF4.n0V8u0OVFZobtHsCoGyDxigMo7yhQzm8FgOgtgILCYDPL3C9.We2.OO3ArN M7l1Pw6aA2dh3RULyWhkdu49y5CO3pNAZLF0sXwkIeDKv6rAq_l7Lg0x.JmTBqMDqATf9ybQp0o2 IhmWwGnf1K3Zm51WxUan3Nhq_zu3.b4ixLHd4ZjFdJ X-Sonic-MF: X-Sonic-ID: 0e4c8958-bc1d-4456-968c-890ee46c89a9 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sat, 3 Jun 2023 12:07:43 +0000 Original-Received: by hermes--production-sg3-748897c457-24pr6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0b9e54814892f91cdd4d32a36c3c2e68; Sat, 03 Jun 2023 12:07:40 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Sat, 03 Jun 2023 07:10:41 -0400") X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262825 Archived-At: Spencer Baugh writes: > Po Lu writes: > >> Eli Zaretskii writes: >> >>>> From: Spencer Baugh >>>> Date: Fri, 02 Jun 2023 21:55:09 -0400 >>>> >>>> >>>> 1. Under X11, with the GTK or Lucid toolkits: >>>> emacs -Q >>>> 2. Become owner of the clipboard selection by killing some text; the >>>> starting comments in the scratch buffer are a good candidate. >>>> 3. Immediately afterwards (i.e. without copy and pasting text in another >>>> window), run: >>>> (call-process "sleep" nil nil nil "inf") >>>> 4. Now other applications will hang when they attempt to paste text. >>>> Google Chrome and Slack are two examples. (GTK-based applications >>>> seem to be fine. So much for proprietary software...) >>> >>> Thanks. >>> >>> Does this happen also with the latest pretest, v29.0.91? >> >> I can't reproduce this, but the closest thing to Google Chrome on the >> computer I am currently using is Firefox 10.0.7. > > BTW, this can also be reproduced using just Emacs. If I try to paste in > another Emacs instead of in Google Chrome, I get a hang, followed by: > > gui-get-selection: (error "Timed out waiting for reply from selection owner") Emacs doesn't hang... > With -DTRACE_SELECTION on both Emacsen, the selection-owner Emacs prints > no logs, while the pasting Emacs prints the following log: > > 48866: Get selection UTF8_STRING, type _EMACS_TMP_ > 48866: Start waiting 5 secs for SelectionNotify. > 48866: Waiting for 0 nsecs in addition. > 48866: Got event = NO > 48866: Get selection TIMESTAMP, type _EMACS_TMP_ > 48866: Start waiting 5 secs for SelectionNotify. > 48866: Waiting for 0 nsecs in addition. > 48866: Got event = NO > >> So would you also build Emacs with -DTRACE_SELECTION, and show what is >> printed by Emacs when the requestor hangs? > > Emacs prints nothing while stuck in call-process and the requestor > (Chrome) is hanging. OK, but then this is not a bug: Emacs can not respond to selection requests when it is not reading keyboard input.