GNU bug report logs - #35665
27.0.50; shell-mode over TRAMP can no longer kill processes with C-c C-c

Previous Next

Package: emacs;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Fri, 10 May 2019 02:15:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 27.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35665 in the body.
You can then email your comments to 35665 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35665; Package emacs. (Fri, 10 May 2019 02:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dima Kogan <dima <at> secretsauce.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 May 2019 02:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dima Kogan <dima <at> secretsauce.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50;
 shell-mode over TRAMP can no longer kill processes with C-c C-c
Date: Thu, 09 May 2019 19:04:37 -0700
Hi. This is a semi-recent regression. I've been observing it for a few
months now, but have only now tried to track it down. I'm currently
using a very recent build of emacs from git:

  http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=7dafbe3ab91

Recipe:

1. C-x C-f /ssh:someserver:
   Opens up a TRAMP ssh connection to some server. This opens up the ~
   in dired mode

2. M-x shell
   Opens up a remote shell.

3. sleep 10000
   I.e. make the remote box do something that doesn't quit immediately

4. C-c C-c
   This SHOULD send SIGINT to the process to kill it. And it did that
   previously, but it doesn't do that anymore. Now it just hangs

I just did a bit of debugging. C-c C-c invokes
(tramp-interrupt-process). This calls (tramp-send-command) to send a
"kill -2 PID" and then (tramp-accept-process-output) to wait for a new
shell prompt; I think. For whatever reason, the server is not getting
the "kill -2 PID" anymore, so the waiting for the prompt now hangs
forever. I'll poke at it some more, but it's likely somebody more
knowledgeable will be able to figure this out much faster than me.

Thanks!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35665; Package emacs. (Fri, 10 May 2019 07:48:01 GMT) Full text and rfc822 format available.

Message #8 received at 35665 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 35665 <at> debbugs.gnu.org
Subject: Re: bug#35665: 27.0.50;
 shell-mode over TRAMP can no longer kill processes with C-c C-c
Date: Fri, 10 May 2019 09:47:16 +0200
Dima Kogan <dima <at> secretsauce.net> writes:

> Hi.

Hi Dima,

> I just did a bit of debugging. C-c C-c invokes
> (tramp-interrupt-process). This calls (tramp-send-command) to send a
> "kill -2 PID" and then (tramp-accept-process-output) to wait for a new
> shell prompt; I think. For whatever reason, the server is not getting
> the "kill -2 PID" anymore, so the waiting for the prompt now hangs
> forever. I'll poke at it some more, but it's likely somebody more
> knowledgeable will be able to figure this out much faster than me.

Looks to me like a duplicate of bug#35506, could you pls check? That bug
report contains also patches, which might help you.

> Thanks!

Best regards, Michael.




bug Marked as fixed in versions 27.1. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Sat, 18 May 2019 16:22:02 GMT) Full text and rfc822 format available.

Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 06 Jun 2019 07:00:02 GMT) Full text and rfc822 format available.

Notification sent to Dima Kogan <dima <at> secretsauce.net>:
bug acknowledged by developer. (Thu, 06 Jun 2019 07:00:03 GMT) Full text and rfc822 format available.

Message #15 received at 35665-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 35665-done <at> debbugs.gnu.org
Subject: Re: bug#35665: 27.0.50;
 shell-mode over TRAMP can no longer kill processes with C-c C-c
Date: Thu, 06 Jun 2019 08:59:34 +0200
Version: 27.1

Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Dima,

>> I just did a bit of debugging. C-c C-c invokes
>> (tramp-interrupt-process). This calls (tramp-send-command) to send a
>> "kill -2 PID" and then (tramp-accept-process-output) to wait for a new
>> shell prompt; I think. For whatever reason, the server is not getting
>> the "kill -2 PID" anymore, so the waiting for the prompt now hangs
>> forever. I'll poke at it some more, but it's likely somebody more
>> knowledgeable will be able to figure this out much faster than me.
>
> Looks to me like a duplicate of bug#35506, could you pls check? That bug
> report contains also patches, which might help you.

No News are Good News. I'm closing this bug, assuming it is solved in
the master branch. Feel free to reopen if there are still problems.

>> Thanks!

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 04 Jul 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.