From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#35665: 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 Message-ID: <877eaz3w0a.fsf@shorty.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="35705"; mail-complaints-to="usenet@blaine.gmane.org" To: 35665@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 10 04:15:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOv42-00099d-Qb for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2019 04:15:11 +0200 Original-Received: from localhost ([127.0.0.1]:35522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOv41-0007j4-Mt for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 May 2019 22:15:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOv3v-0007iu-Eq for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:15:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOv3u-00056i-FB for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOv3u-00056d-Bv for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOv3u-0000OX-6M for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 May 2019 02:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35665 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15574544911482 (code B ref -1); Fri, 10 May 2019 02:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 May 2019 02:14:51 +0000 Original-Received: from localhost ([127.0.0.1]:36806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOv3j-0000Nq-9U for submit@debbugs.gnu.org; Thu, 09 May 2019 22:14:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOv3h-0000Nb-98 for submit@debbugs.gnu.org; Thu, 09 May 2019 22:14:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOv3c-00050u-61 for submit@debbugs.gnu.org; Thu, 09 May 2019 22:14:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOv3b-0007hs-2Z for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:14:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOv3Z-0004zX-Mm for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:14:43 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50617) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOv3Z-0004yK-BQ for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 22:14:41 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5C11F24417 for ; Thu, 9 May 2019 22:04:40 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 09 May 2019 22:04:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=3R8ZUs3nPonip3/7Cj81bzPUBogtDKAlPVg4OdqKQXA=; b=tP/omt1V o8CRsMBWnhtNdVM9Lq7XlLqx/09JOj3V9H291VFmu+mwh9dwNnH/2wFAARZ8vLQ0 P3jQtRuurJEOxhGptSsf85ZAIpwi6pjj/ySsVVZAollK4d0ugu/iryBa9wAn7iIQ URKxotwrjUSS5VKtWhfT61toUTbIcxzRAGDT1ZZq1K6O2mms3o1qYZdgqV9a48+2 GC+2830G6+ykH3p1IgKmkg4qPIsBEuf51h6GP7U4bii5RL1Grpi1NIiMyDMgNQ3R k3VoBSeyR8soGbJnoxaGDSVlRPTc3YAulU/O4aSbl6+xajNQK8m9iYLs2vbZbtmw w2XOQalIspKN6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=3R8ZUs3nPonip3/7Cj81bzPUBogtD KAlPVg4OdqKQXA=; b=yRtALtF0B8UsHeeeIIY1mpdpGDayNxVcbXnfnGnU+WpOn X+nBxHNJNm/O9k4qSspti7iqk//69D1gUBWNJswEBtjxwFsAaw/zIFSA2LjJVi5o xSC8oF7DHiulKCnVaQ7n73ia6yptnEsxZjE8Ms+Wbwvz9FTeLoqHUyo1vZfOGquR jSY/HklD8AvOKbaSYvQ8VvEkBf4snvwjI3gXEIrn4D/mhy2ePXP+zTWDbZ+4/BAk 49sgUOvyW9crD/WPNO1XDI2aM5yvglFYj4rnnRTk/NUfjkdITbijX+SYg7gjQ9CL nyzbcFx3BNZyzEQ4Z/ucxwg/akhsd2e4kNZQK3OMA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeeigdduheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgt vgdrnhgvtheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppedvtdejrdduhedurd dvvdefrddukeelnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshhhohhrthih rdhiqdguihguqdhnohhtqdhsvghtqddqmhgrihhlqdhhohhsthdqrgguughrvghsshdqqd hsohdqthhitghklhgvqdhmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Original-Received: from shorty.local (nat-guest-189.vonkarman.net [207.151.223.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 8AABE103D2 for ; Thu, 9 May 2019 22:04:39 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.90) (envelope-from ) id 1hOutp-0001rv-W5 for bug-gnu-emacs@gnu.org; Thu, 09 May 2019 19:04:38 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159014 Archived-At: 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!