From: Duncan Greatwood <dgbulk@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 45518@debbugs.gnu.org
Subject: bug#45518: Ctrl-G Fails to Interrupt Hung Tramp Remote-Compile in Emacs 27.1
Date: Sun, 3 Jan 2021 11:27:17 -0800 [thread overview]
Message-ID: <CAN_Aq+rxqAWPopNwuV5O=COM07hhvr7DxNrujv_KRGx1oR0zRw@mail.gmail.com> (raw)
In-Reply-To: <CAN_Aq+py7nv+O+y-hRgcbbuzHohdYuB3pxEU=SWeSyw=PFjvyg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5698 bytes --]
Firstly, my apologies. The test.cpp I supplied was an attempt at a quick
simplification, and as you said it doesn't produce "enough" syntax errors
actually.
I am pasting below a test.cpp that I have verified on my setup does hang
the tramp window.
I'm afraid that there is another complication for reproducability. I cannot
get the issue to reproduce when I do "M-x compile" then invoking "gcc
test.cpp". It appears to reproduce only when doing "make" on a larger /
more complex project containing test.cpp. This is true even when test.cpp
is the first file that compiles in the project upon "make".
I attempted to make a small autotools project containing test.cpp, but even
that doesn't seem to reproduce the tramp hang. Only by including test.cpp
in a large preexisting project does the hang occur, at least for me.
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.
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.
Regards,
D.
======= Hung Tramp Window ==========
-*- mode: compilation; default-directory:
"/ssh:username@TWR1HM:/home/username/Dropbox/progs/thisprog/sbshared/src/"
-*-
Compilation started at Sun Jan 3 11:02:36
make -k
make all-am
make[1]: Entering directory
'/home/username/Dropbox/progs/thisprog/sbshared/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-std=c++11 -Wall -Werror -Wclobbered -Wempty-body -Wignored-qualifiers
-Wmissing-field-initializers -Wsign-compare -Wtype-limits -Wuninitialized
-Winit-self -Wcast-align -Wfloat-equal -Wformat=2 -Wno-psabi
-I/usr/include/libxml2 -I../../../kilo -I../../../rapidxml -g3 -Og
-DDEBUG=1 -MT test.lo -MD -MP -MF .deps/test.Tpo -c -o test.lo test.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -std=c++11 -Wall -Werror
-Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers
-Wsign-compare -Wtype-limits -Wuninitialized -Winit-self -Wcast-align
-Wfloat-equal -Wformat=2 -Wno-psabi -I/usr/include/libxml2 -I../../../kilo
-I../../../rapidxml -g3 -Og -DDEBUG=1 -MT test.lo -MD -MP -MF
.deps/test.Tpo -c test.cpp -fPIC -DPIC -o .libs/test.o
==================================
// test.cpp - for lots of syntax errors
#include <mutex>
#include <string>
#include <vector>
#include <memory>
class A1
{
int f1();
int f2();
int f3();
int f4();
int f5();
int f6();
int f7();
int f8();
int f9();
};
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
class Nested
{
A1 m1;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
class A2
{
std::shared_ptr<A1> a1ptr;
A2() {A1 a1; a1ptr = &a1;}
};
#define AN_BODY \
A1 x1; \
A1 x2; \
std::string s1(x1); \
std::string s2(x2); \
Nested n1; \
const std::vector<std::string> v1(1, a1); \
const std::vector<std::string> v1(1, n1); \
std::vector<std::string> * v1_cptr(&v1); \
return(s1+s2);
int A1::f1()
{
AN_BODY;
}
int A1::f2()
{
AN_BODY;
}
int A1::f3()
{
AN_BODY;
}
int A1::f4()
{
AN_BODY;
}
int A1::f5()
{
AN_BODY;
}
int A1::f6()
{
AN_BODY;
}
int A1::f7()
{
AN_BODY;
}
int A1::f8()
{
AN_BODY;
}
int A1::f9()
{
AN_BODY;
}
int A1::f10()
{
AN_BODY;
}
int main(int argc, char* argv[])
{
AN_BODY;
}
// end test.cpp
==================================
On Sun, Jan 3, 2021 at 2:27 AM Michael Albinus <michael.albinus@gmx.de>
wrote:
> Michael Albinus <michael.albinus@gmx.de> writes:
>
> Hi Duncan,
>
> >> 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.
> >
> > I will try to reproduce it locally. Since I don't know where to start
> > with debugging, I cant give you instructions for this yet.
>
> I've tried to trigger this error, but I cannot. Calling "M-x compile",
> and invoking "gcc test.cpp" then, returns immediately with one error
> message:
>
> --8<---------------cut here---------------start------------->8---
> -*- mode: compilation; default-directory: "/ssh:detlef:/home/albinus/tmp/"
> -*-
> Compilation started at Sun Jan 3 11:23:16
>
> gcc test.cpp
> test.cpp:2:13: error: expected constructor, destructor, or type conversion
> before ‘(’ token
> 2 | DummyClass(
> | ^
>
> Compilation exited abnormally with code 1 at Sun Jan 3 11:23:16
> --8<---------------cut here---------------end--------------->8---
>
> What does it need to hang Emacs/Tramp, compiling this file?
>
> >> Best regards,
> >> Duncan
>
> Best regards, Michael.
[-- Attachment #2: Type: text/html, Size: 7615 bytes --]
next prev parent reply other threads:[~2021-01-03 19:27 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 1:10 bug#45518: Ctrl-G Fails to Interrupt Hung Tramp Remote-Compile in Emacs 27.1 Duncan Greatwood
2020-12-30 10:36 ` Michael Albinus
2020-12-30 21:13 ` Duncan Greatwood
2020-12-31 8:42 ` Michael Albinus
2021-01-03 10:27 ` Michael Albinus
2021-01-03 19:27 ` Duncan Greatwood [this message]
2021-01-06 13:37 ` Michael Albinus
2021-01-06 22:54 ` Duncan Greatwood
2021-01-11 10:58 ` Michael Albinus
2021-01-11 16:52 ` Duncan Greatwood
2021-01-11 17:56 ` Michael Albinus
2021-01-12 4:34 ` Duncan Greatwood
2021-01-12 9:02 ` Michael Albinus
2021-01-12 15:02 ` Michael Albinus
2021-01-29 5:15 ` Duncan Greatwood
2021-01-29 8:53 ` Michael Albinus
2021-02-10 15:40 ` Michael Albinus
2021-02-11 15:22 ` Michael Albinus
2021-02-14 1:38 ` Duncan Greatwood
2021-02-14 14:15 ` Michael Albinus
2021-02-15 20:21 ` Duncan Greatwood
2021-02-16 20:09 ` Michael Albinus
2021-02-17 5:41 ` Duncan Greatwood
2021-02-17 15:39 ` Michael Albinus
2021-03-16 1:36 ` Duncan Greatwood
2021-03-16 18:30 ` Michael Albinus
[not found] <CAN_Aq+rYcM7wHHWXKBqyY4P0Ew04RfkqnQUioqtUk0AOUeaRMA@mail.gmail.com>
2021-02-25 18:33 ` Michael Albinus
2021-03-15 20:49 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN_Aq+rxqAWPopNwuV5O=COM07hhvr7DxNrujv_KRGx1oR0zRw@mail.gmail.com' \
--to=dgbulk@gmail.com \
--cc=45518@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).