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: Wed, 30 Dec 2020 13:13:31 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005e8d9005b7b4fb72" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45518@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 23:28:27 2020 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 1kujxC-0001Dy-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 23:28:27 +0100 Original-Received: from localhost ([::1]:48540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kujxC-00026r-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 17:28:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kujwo-00026Z-0g for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 17:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kujwn-0005r1-Ns for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 17:28:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kujwn-0000kc-Jp for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 17:28:01 -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: Wed, 30 Dec 2020 22:28:01 +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.16093672602847 (code B ref 45518); Wed, 30 Dec 2020 22:28:01 +0000 Original-Received: (at 45518) by debbugs.gnu.org; 30 Dec 2020 22:27:40 +0000 Original-Received: from localhost ([127.0.0.1]:51364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kujwR-0000jq-HL for submit@debbugs.gnu.org; Wed, 30 Dec 2020 17:27:40 -0500 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:44007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuimy-0007LN-FB for 45518@debbugs.gnu.org; Wed, 30 Dec 2020 16:13:49 -0500 Original-Received: by mail-io1-f41.google.com with SMTP id o6so15687522iob.10 for <45518@debbugs.gnu.org>; Wed, 30 Dec 2020 13:13:48 -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:cc; bh=tUS4MZByuhWsKC3DbYPVoO32pwFfGaAnRzrQNU+HYTk=; b=YQrY2FDJli4cYbQugqWUuLubbT4JB/EbYRV2EH4HABLqB+sGM2AS0NPRBmE7cEPZpQ A+3fHB9yI11tSN1r4iZImmi603dLH33U5+hjnAA7y81ETShVHCfJ6sPfrfhGZwTnU9Kc iNN9Scn1ZBQvW7vPa9nYX7181Wskuy74stkQXgPwlhLF9CtPGA9GgWzMXOfsh2iabIo+ 1GUUMGnuumv/4aisy8Pe89+L20/gnKBHjcgPlVrIbgO6djZk9U5MWzyI1+F+VUScMTq+ Hz9gnHDlD014h480YczsTfzpZbRJaeuqwO2VgzCKVEv+nLq4Utib3iACisGCx6KWvPk3 j53A== 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:cc; bh=tUS4MZByuhWsKC3DbYPVoO32pwFfGaAnRzrQNU+HYTk=; b=Fg20sTrsUdHst9Ja5blC+PaR8CustxdMsrqn86jkiCplfAIM85upoItitnHMokxnXg rPqb4vci2Tx/JooOUNgLe+in8yyNIaqHgZoeQlTNW7U9549OT//q1vu8jTfpLYeSIuAh eq4FYbn6t/okORJoFw6UgybPew0iIGTe1Fyf+ibAGK9Nt9hZO373ixvWI5FSIZvsf4G2 T+U7FRzLH779kjuWIPssVrlvQZ//DfV55y7oWQirZ8eJ8qI1RFRGC1R4Gh3dxYofpSj6 Wy0VvspfrMIIc4nhaszNONwUgQJM5ImPN8Q134wnElzKslATZ7w2KixAp3WGgfJiFf/K T86w== X-Gm-Message-State: AOAM5304Y0sfPkq1SAC+bwwt+di5yw4BZuplBRTtqJTmdN/Nc43FyBmm wJseHq6OaQEWkXIjqK4u//R6iR5i9vZgaE//gCU= X-Google-Smtp-Source: ABdhPJzX3ZXYQAdAJ03+VFm+eMulc+JSmhqA64Z15FszxpEGJg8UbEm9J8kEeoD3ZlphlzU77UO73NSLPErZ3+KEhrw= X-Received: by 2002:a5d:9a8e:: with SMTP id c14mr45298669iom.178.1609362822826; Wed, 30 Dec 2020 13:13:42 -0800 (PST) X-Mailman-Approved-At: Wed, 30 Dec 2020 17:27:38 -0500 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:197053 Archived-At: --0000000000005e8d9005b7b4fb72 Content-Type: text/plain; charset="UTF-8" Hi Michael, On Wed, Dec 30, 2020 at 2:36 AM Michael Albinus > wrote: > Duncan Greatwood writes: > Hi Duncan, > > In emacs 26.2, Ctrl-G (usually ctrl-g three times) would interrupt the > > hung Tramp window, and indeed cause the errors to be displayed in the > > window as best as Tramp is able. > > > > In emacs 27.1, Ctrl-G does nothing in this > > "tramp-hung-while-compiling" situation. I also tried ctrl-c ctrl-c, > > but that also does nothing. It appears that the only way to kill the > > hung Tramp compile is to force-quit emacs as a whole at the OS level. > Well, in this area several changes have been applied since Emacs 27.1 > has been released. Could you, pls, try the Tramp ELPA version (2.5.0)? > [DG] I note in passing that in my emacs 27.1 build, I already have Tramp 2.5.0 installed as per: M-x list-packages ... tramp 2.5.0 available Nonetheless, I downloaded from this page: https://elpa.gnu.org/packages/tramp.html tramp-2.5.0.tar, 2020-Dec-29, 1.61 MiB I expanded the tar to a local directory, call it ~/.../tramp-2.5.0 I then added the following to my .emacs file: (add-to-list 'load-path (expand-file-name "~/.../tramp-2.5.0")) (require 'tramp) Happy news - with this addition to .emacs, pressing ctrl-g three times once again interrupts the hung Tramp window, and .emacs as a whole does not crash. I tried adding and removing the .emacs lines several times, and the matter produces perfectly: ctrl-gx3 always works when the .emacs lines are present, and never works when they are not in emacs 27.1. The only slight wrinkle I noticed with this newest version of tramp (vs. emacs 26.2 tramp) is that, after pressing ctrl-gx3, it feels I have to click around to another window and back in order to see the error output from the compile appear in the tramp compile window, wheres in emacs 26.2 the error output would start appearing in the tramp compile window as soon as ctrl-gx3 was pressed. No terrible hardship but JFYI. Is there anything I can do that would help diagnose / pinpoint or whatever? Either with the ctrl-gx3 matter, or indeed with the underlying hang in the tramp compile window which requires the use of ctrl-gx3. Best regards, Duncan > Even if it still blocks Emacs, there is a new option to write Tramp > traces to file. This would help us to find the culprit, if still > evident. > > Thanks as always. > > D. > Best regards, Michael. --0000000000005e8d9005b7b4fb72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Michael,

On Wed, Dec 30, 2020 at 2:36 AM Michael Albinus <michael.albinus@gmx.de> wrote:
Dunc= an Greatwood <dgbulk@gmail.com&g= t; writes:
Hi Duncan,
> In emacs 26.2, Ctrl-G (usually ctrl-g thre= e times) would interrupt the
> hung Tramp window, and indeed cause th= e errors to be displayed in the
> window as best as Tramp is able.>
> In emacs 27.1, Ctrl-G does nothing in this
> "tram= p-hung-while-compiling" situation. I also tried ctrl-c ctrl-c,
>= but that also does nothing. It appears that the only way to kill the
&g= t; hung Tramp compile is to force-quit emacs as a whole at the OS level.Well, in this area several changes have been applied since Emacs 27.1
h= as been released. Could you, pls, try the Tramp ELPA version (2.5.0)?
[DG] I note in passing that in my emacs 27.1 build, I alrea= dy have Tramp 2.5.0 installed as per:
=C2=A0 =C2=A0 M-x list-pack= ages
=C2=A0 =C2=A0 ...
=C2=A0 =C2=A0=C2=A0=C2=A0 tramp = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02.5.0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 available

Nonetheless, I downloaded from th= is page:=C2=A0https://= elpa.gnu.org/packages/tramp.html
=C2=A0 =C2=A0=C2=A0tramp-2.5= .0.tar, 2020-Dec-29, 1.61 MiB
I expanded the tar to a local direc= tory, call it ~/.../tramp-2.5.0

I then added the f= ollowing to my .emacs file:
=C2=A0 =C2=A0 (add-to-list 'load-= path (expand-file-name "~/.../tramp-2.5.0"))
=C2=A0 =C2=A0 (= require 'tramp)

Happy news - with this addition to .= emacs, pressing ctrl-g three times once again interrupts the hung Tramp win= dow, and .emacs as a whole does not crash.

I tried= adding and removing the .emacs lines several times, and the matter produce= s=C2=A0perfectly: ctrl-gx3 always works when the .emacs lines are present, = and never works=C2=A0when they are not in emacs 27.1.

<= div>The only slight wrinkle I noticed with this newest version of tramp (vs= . emacs 26.2 tramp) is that, after pressing ctrl-gx3, it feels I have to cl= ick around to another window and back in order to see the error output from= the compile appear in the tramp compile window, wheres in emacs 26.2 the e= rror output would start appearing in the tramp compile window as soon as ct= rl-gx3 was pressed. No terrible hardship but JFYI.

Is there anything I can do that would help diagnose / pinpoint or whatever= ? Either with the ctrl-gx3 matter, or indeed with the underlying hang in th= e tramp compile window which requires the use of=C2=A0ctrl-gx3.
<= br>
Best regards,
Duncan
=C2=A0
Even if it still blocks = Emacs, there is a new option to write Tramp
traces to file. This would h= elp us to find the culprit, if still
evident.
> Thanks as always.<= br>> D.
Best regards, Michael.
--0000000000005e8d9005b7b4fb72--