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, 6 Jan 2021 14:54:39 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e8e98a05b843350d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39078"; 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 Jan 06 23:56:10 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 1kxHir-000A29-Lc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 23:56:09 +0100 Original-Received: from localhost ([::1]:59376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxHiq-0004eS-HE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 17:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxHij-0004e8-Vd for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:56:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxHij-0006kK-OD for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxHij-0006BK-N3 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:56: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, 06 Jan 2021 22:56: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.160997370223688 (code B ref 45518); Wed, 06 Jan 2021 22:56:01 +0000 Original-Received: (at 45518) by debbugs.gnu.org; 6 Jan 2021 22:55:02 +0000 Original-Received: from localhost ([127.0.0.1]:45858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxHhl-00069k-70 for submit@debbugs.gnu.org; Wed, 06 Jan 2021 17:55:02 -0500 Original-Received: from mail-io1-f51.google.com ([209.85.166.51]:34318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxHhg-00069K-0k for 45518@debbugs.gnu.org; Wed, 06 Jan 2021 17:55:00 -0500 Original-Received: by mail-io1-f51.google.com with SMTP id i18so4344263ioa.1 for <45518@debbugs.gnu.org>; Wed, 06 Jan 2021 14:54:55 -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=vNeQvSe9ZoyrADnz30OIQU8VB+yb7nWOazVWqvod9p0=; b=hE0KT9A0FKYfZw7j5uEyJy3rCHWiR5d/dcPlVEEMUW7648abyLQBaWD4zbDOjPf+d1 ab8c+1Fx1FUPGw4t0VZ5UpMy+rgq3w6ZZRIjyT3oFpnhVZDSENAkHxCtVrmLG3BEK1Dh 07Pi8Swg8TASbint78vYnhGBh+lGrQjSgaRiY8+c/kZu6x30IfSXMerhITbQon02aPOJ pY6oniDF0q55DOzZOqWgFVCeB/5FZnSgbJyRwEBxk7xP7lRLUrvw61IejkDivw9PHg7J OyLFcDq6D1aM2ZKtTc9YMi20PZdbTTgVc3cVx5/ZH2Y+c1vP6IGwZcG4vf6nLziZinxM CRSQ== 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=vNeQvSe9ZoyrADnz30OIQU8VB+yb7nWOazVWqvod9p0=; b=FEtkNJXffUg5yEKhBNDm5lFGzmroCh6TMTwwamos4mLjYy/6NY9FXthGphaG1TXfvo Ppe5X3p/FFmdlXkMAa/i0j7gFZ+wR7M6Rh0M5c4BGI1yEnm9UN2VKo2PVUJv2iKQexMn VKmeJGyj3r/+lqxCLwLU0Fu1ddsytRCYnOuYRIaZ2XmpgTCTeHmnEA0aToaq1SAeauPF DTE8tBN9FWNkxZmN8oz3+XdwoiZVdADEyYLTVsoMzCOpopggga2FLX9lnGJk8UZmsnTP b3NVb+g/zgVVGNVv4rHf2wXS0r79vXmYsaR/YZbFo/Ujy18lqSnZ8aeDfqm8nCJ2AUxh 1QBg== X-Gm-Message-State: AOAM533EM90nOfQ7rm7SHL2B1R07Z04Gcf2cYKRHibNqwBdyuSESjp8d Ln05qLGKCnfveZlIEIg5wrS1HZ5hYuUDDoJev60= X-Google-Smtp-Source: ABdhPJwozahb5LtH9uzF1JuMtJCn1T5ZxLhXzR+WnnPPg6+rE2a8SKhiY/SSlD8+2agoBEgO0eIU4YAjv8VKg6MsyNo= X-Received: by 2002:a02:3213:: with SMTP id j19mr5536805jaa.79.1609973690328; Wed, 06 Jan 2021 14:54:50 -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:197461 Archived-At: --000000000000e8e98a05b843350d Content-Type: text/plain; charset="UTF-8" Michael - On Wed, Jan 6, 2021 at 5:37 AM Michael Albinus wrote: > Duncan Greatwood writes: > > Hi Duncan, > > > I would suggest that you take a favorite large C++ autotools project, > > add test.cpp to the source tree and Makefile.am, and see if the hang > > reproduces for you. > > I don't work with C++, so I haven't. > [DG] Oh, no worries. Let me try and give a more explicit recipe. This is what I did: Download the autotools "hello world" program, and modify it as follows. Go to https://github.com/shanecelis/amhello (or *many* other places), and download the "hello world" code (click Code button on the github page, choose "Download zip" for simplicity). Expand the zip file, and cd into amhello-master directory. This is on a linux machine, an ubuntu machine in my case. Open configure.ac in a text editor. You'll see a section headed: # Checks for programs. We need to add AC_PROG_CXX and AM_PROG_AR, so this section will look like: # Checks for programs. AC_PROG_CC AC_PROG_CXX AM_PROG_AR AC_PROG_LIBTOOL Save configure.ac, and exit the text editor. Copy my test.cpp file into the src subdirectory of amhello-master. Open src/Makefile.am in a text editor. Added test.cpp to the sources line, so that line looks like: hello_SOURCES = main.c test.cpp Save src/Makefile.am and exit the editor. I presume you already have the autotools toolset installed, but if not, install them. sudo apt-get install -y autotools-dev autoconf Now at the shell command line (*not* in emacs) on the target linux machine, in the amhello-master directory: autoreconf --install ./configure make You should see the many syntax errors of test.cpp spewing out in the shell. Now *in gui emacs*, from a mac machine using Tramp, open amhello-master/src/test.cpp remotely (using tramp) on the remote linux machine. With that remote test.cpp open, In emacs, do M-compile Use the compile command: make -k Tramp window hangs As you noted prior, if you use compile command "gcc test.cpp", tramp does not hang. Only if you use compile command "make" does it hang. I was using my macbook laptop for the GUI-emacs-with-tramp, and ubuntu for the target linux machine. I was using emacs 26.2 gui-mode, but no reason to suppose it varies with other emacs versions. I did try it with a Linux laptop, running emacs-gui (26.3) and tramp to connect to the remote Linux host. However, in that case the issue did *not* reproduce for me, at least using this method. Perhaps emacs/tramp must be running from a mac for the issue to show up. Hope this helps. Thanks once more. Duncan > > > For your reference, I am also pasting the output from the hung tramp > > window when I added test.cpp to a library within one of my own larger > > projects. > > I tried to mimic that, but it still just shows all errors, and no hung > window. Tested with recent Tramp 2.5.0 and all Emacs versions 26, 27, > 28. See appended compile output. > > > Regards, > > D. > > Best regards, Michael. --000000000000e8e98a05b843350d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Michael -

On Wed, Jan 6, 202= 1 at 5:37 AM Michael Albinus <= michael.albinus@gmx.de> wrote:
Duncan Greatwood <dgbulk@gmail.com> writes:

Hi Duncan,

> I would suggest that you take a favorite large C++ autotools project,<= br> > add test.cpp to the source tree and Makefile.am, and see if the hang > reproduces for you.

I don't work with C++, so I haven't.
[DG] Oh, = no worries. Let me try and give a more explicit recipe.

This is what I did:

Download the autotools &= quot;hello world" program, and modify it as follows.

Go to=C2=A0https:= //github.com/shanecelis/amhello (or *many* other places), and download = the "hello world" code (click Code button on the github page, cho= ose "Download zip" for simplicity).

Expa= nd the zip file, and cd into=C2=A0amhello-master directory. This is on a li= nux machine, an ubuntu machine in my case.

Open configure.ac in a text editor. You'll= see a section headed:
=C2=A0 =C2=A0=C2=A0# Checks for programs.<= /div>
We need to add AC_PROG_CXX and AM_PROG_AR, so this section will l= ook like:
=C2=A0 =C2=A0 # Checks for programs. =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 AC_PROG_CC
=C2= =A0 =C2=A0 AC_PROG_CXX
=C2=A0 =C2=A0 AM_PROG_AR
=C2=A0 =C2=A0 AC_PROG= _LIBTOOL


Open src/Makefile.am in a text editor.


=C2=A0 =C2=A0 make

You should see the many syntax errors of test.cpp spe= wing out in the shell.

Now *in gui emacs*, from a = mac machine using Tramp, open=C2=A0amhello-master/src/test.cpp remotely (us= ing tramp) on the remote linux machine.
With that remote test.cpp= open, In emacs, do=C2=A0
=C2=A0 =C2=A0 M-compile
=C2= =A0 =C2=A0 Use the compile command: make -k

Tramp = window hangs

As you noted prior, if you use compil= e command "gcc test.cpp", tramp does not hang. Only if you use co= mpile command "make" does it hang.

I was= using my macbook laptop for the GUI-emacs-with-tramp, and ubuntu for the t= arget linux machine. I was using emacs 26.2 gui-mode, but no reason to supp= ose it varies with other emacs versions.

I did try= it with a Linux laptop, running emacs-gui (26.3) and tramp to connect to t= he remote Linux host. However, in that case the issue did *not* reproduce f= or me, at least using this method. Perhaps emacs/tramp must be running from= a mac for the issue to show up.

Hope this helps.<= /div>
Thanks once more.
Duncan

=C2= =A0

> For your reference, I am also pasting the output from the hung tramp > window when I added test.cpp to a library within one of my own larger<= br> > projects.

I tried to mimic that, but it still just shows all errors, and no hung
window. Tested with recent Tramp 2.5.0 and all Emacs versions 26, 27,
28. See appended compile output.

> Regards,
> D.

Best regards, Michael.
--000000000000e8e98a05b843350d--