From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Greatwood Newsgroups: gmane.emacs.bugs Subject: bug#45518: Ctrl-G Fails to Interrupt Hung Tramp Remote-Compile in Emacs 27.1 Date: Sat, 13 Feb 2021 17:38:06 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006f0f3105bb41ecba" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17171"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Albinus , 45518@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 02:39:22 2021 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 1lB6Nd-0004JB-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 02:39:21 +0100 Original-Received: from localhost ([::1]:37292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB6Nc-0005QM-3u for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 20:39:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB6NK-0005QD-F5 for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB6NK-0006PO-69 for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lB6NK-0003Qf-3t for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:39:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Duncan Greatwood Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45518 X-GNU-PR-Package: emacs Original-Received: via spool by 45518-submit@debbugs.gnu.org id=B45518.161326670713141 (code B ref 45518); Sun, 14 Feb 2021 01:39:02 +0000 Original-Received: (at 45518) by debbugs.gnu.org; 14 Feb 2021 01:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:35275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6Mk-0003Pt-Rj for submit@debbugs.gnu.org; Sat, 13 Feb 2021 20:38:27 -0500 Original-Received: from mail-il1-f182.google.com ([209.85.166.182]:37224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6Mh-0003Pd-2t for 45518@debbugs.gnu.org; Sat, 13 Feb 2021 20:38:24 -0500 Original-Received: by mail-il1-f182.google.com with SMTP id d20so2727315ilo.4 for <45518@debbugs.gnu.org>; Sat, 13 Feb 2021 17:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=u2MO+rUuCLmc1zeBGsRqUrS+XO1YtE2FfBd5/+r470I=; b=RUHb3TFOxVgXaKJ06PfG+eXpXFzY+XOjk75GUXBz4fyaVL+SUi7Teqsr+LJs0Wy0aA IkK3WhkVtLqE3MZnqvwdO1Cb9vH6Lr1GxKd9c7ZgJIIAFSyrWVRDDHU4sxkqMDg3oHst m5Kj2bQk6DWdeLx7875JxN9pj6FA1Pst9zRSz19qj0Cuz/g02zD6HQ/4pfZMO42sHrTh nyPapUSLxmDu1ufUhZBDh4qoMo9cTq3AnxPNkiH8kZheE+jmGYsYwd/tOxbrXX+uYFCq t130n6rkBSzyX32RaQna2fyNtK5TqNZKzkgXi5IgcnW1ng60zYt8z04aq21wIVe+KVu3 s4cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=u2MO+rUuCLmc1zeBGsRqUrS+XO1YtE2FfBd5/+r470I=; b=AJ06N3cYGnqVBCkkBOLL4exmk45Xq7933Csx6JQPWQ9t9GWAM5g6HLsV6txwX+SBrF BGFupBnTszufSR19PYcRvRnbh40g5BhvPhldqXoS2KDj9gkPzPDO8k9eDbdE0uXUnI+o HL5zt2QGsZJ/5P7MPTEXek6mJGngFGtUBLgmIO+D+m6sUC8BDxGgr1/BmApO2lg9OG4h AJVPep5tBuYn3ilGToqrIzxfjQjbPqQRyJJNZAg3AHXL/niUdo/6hODiYAIDyqUpSNLF RXP4adwZAs/ln9OzcNUlLz5yGcfBOmRC/GbUU1ZN5k4W0G+yD/jsEUg0ftSMVa7x//0V op4Q== X-Gm-Message-State: AOAM533u3FgezpURVnHb3XKqrNo5Rgm5vIXwlC2DcdBBswkJa5BunesH lhC7Db0V8B7tPPwcX9cqrKtu17jyiKRV2iTQl4Q= X-Google-Smtp-Source: ABdhPJzrQohFSnsi7e5VHvdWEE/SP+8zGP7lBse/X2+VWQDcA5CizoXjOPbFrP6gukDkrXvw1nXzRPj6v9Yo7VeONgw= X-Received: by 2002:a05:6e02:1608:: with SMTP id t8mr8079125ilu.79.1613266697521; Sat, 13 Feb 2021 17:38:17 -0800 (PST) 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:199975 Archived-At: --0000000000006f0f3105bb41ecba Content-Type: text/plain; charset="UTF-8" Hi Michael - On Thu, Feb 11, 2021 at 7:22 AM Michael Albinus wrote: > Michael Albinus writes: > > Hi Duncan, > > >> There is still one tramp hanging issue I saw in my testing. This is a > >> much less serious issue (pressing ctrl-G once "unhangs"), but thought > >> I'd mention it here. LMK if you'd prefer a separate bug report and > >> I'll create one. > > > > Just an update. I've played with this for a while. I could reproduce, > > and I also know where it hangs. It is accept-process-output of the Tramp > > process which tries to view the file you have clicked on, vs > > accept-process-output of the compile process. Both don't cooperate > > sufficiently, and both hang. > > > > I have no idea (yet) how to solve. One idea would be to start the > > compilation process in another thread, but this will raise other > > problems. There is some WIP to make Tramp thread-safe, but this is > > stalled ATM. > > Since I don't know a general solution yet, I have prepared a small > patch, which suppresses visting remote files as result of a > compilation. Silently. When compilation has finished, everything is back > to normal. > > See the appended patch, whether it makes the situation better for you. > [DG] I have applied the patch to tramp-integration.el. The earlier patch in this thread (to compile.el, fixing the main hang) was also applied. Unfortunately, the symptoms for this secondary "minor" hang are unchanged for me. This is on an Intel Mac running macos 11.2. GNU Emacs 27.1 (build 1, x86_64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2 (Build 20D64)) of 2021-02-13 I looked at ./Contents/Resources/lisp/net/tramp-integration.elc inside /Applications/Emacs.app and it seemed to contain the patch as expected - at least it contains the string: Don't allow remote file operations while compiling I'm not sure what's up, but LMK if there's anything I can do. --0000000000006f0f3105bb41ecba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Michael -

On Thu, F= eb 11, 2021 at 7:22 AM Michael Albinus <michael.albinus@gmx.de> wrote:
Michael Albinus = <michael.alb= inus@gmx.de> writes:

Hi Duncan,

>> There is still one tramp hanging issue I saw in my testing. This i= s a
>> much less serious issue (pressing ctrl-G once "unhangs")= , but thought
>> I'd mention it here. LMK if you'd prefer a separate bug re= port and
>> I'll create one.
>
> Just an update. I've played with this for a while. I could reprodu= ce,
> and I also know where it hangs. It is accept-process-output of the Tra= mp
> process which tries to view the file you have clicked on, vs
> accept-process-output of the compile process. Both don't cooperate=
> sufficiently, and both hang.
>
> I have no idea (yet) how to solve. One idea would be to start the
> compilation process in another thread, but this will raise other
> problems. There is some WIP to make Tramp thread-safe, but this is
> stalled ATM.

Since I don't know a general solution yet, I have prepared a small
patch, which suppresses visting remote files as result of a
compilation. Silently. When compilation has finished, everything is back to normal.

See the appended patch, whether it makes the situation better for you.
<= /blockquote>
[DG] I have applied the patch to=C2=A0tramp-integration.el= . The earlier patch in this thread (to compile.el, fixing the main hang) wa= s also applied.

Unfortunately, the symptoms for th= is secondary "minor" hang are unchanged for me.=C2=A0
T= his is on an Intel Mac running macos 11.2.
GNU Emacs 27.1 (build = 1, x86_64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2 (Build 20D64))= =C2=A0=C2=A0of 2021-02-13
I looked at=C2=A0./Contents/Resourc= es/lisp/net/tramp-integration.elc inside=C2=A0/Applications/Emacs.app and i= t seemed to contain the patch as expected - at least it contains the string= :
=C2=A0 =C2=A0=C2=A0Don't allow remote file operations while= compiling
I'm not sure what's up, but LMK if there's= anything I can do.
=C2=A0
--0000000000006f0f3105bb41ecba--