From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#49954: 28.0.50; TRAMP: cannot kill child processes: "Forbidden reentrant call of Tramp" Date: Sat, 11 Sep 2021 01:32:27 -0700 Message-ID: <87pmtfjyw4.fsf@secretsauce.net> References: <875ywf9ea7.fsf@secretsauce.net> <871r72ssqi.fsf@gmx.de> <874kby7wn5.fsf@secretsauce.net> <875ywdquds.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 49954@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 11 10:33:14 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 1mOyRj-0001bP-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 10:33:12 +0200 Original-Received: from localhost ([::1]:37562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOyRi-0002bE-Gi for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 04:33:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOyRb-0002b3-1p for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOyRa-0008VP-9t for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOyRa-0000Gx-4E for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 04:33: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: Sat, 11 Sep 2021 08:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49954 X-GNU-PR-Package: emacs Original-Received: via spool by 49954-submit@debbugs.gnu.org id=B49954.16313491481002 (code B ref 49954); Sat, 11 Sep 2021 08:33:02 +0000 Original-Received: (at 49954) by debbugs.gnu.org; 11 Sep 2021 08:32:28 +0000 Original-Received: from localhost ([127.0.0.1]:39515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyR2-0000G6-K4 for submit@debbugs.gnu.org; Sat, 11 Sep 2021 04:32:28 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOyR0-0000Fr-4L for 49954@debbugs.gnu.org; Sat, 11 Sep 2021 04:32:27 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9D7665C009E; Sat, 11 Sep 2021 04:32:20 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 11 Sep 2021 04:32:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=jDIBCFWvT4CARE5poAJvkivrkr xIsdGE7P1bYKFi2T8=; b=cGB/ept925UyDrqqDe9nvkUtowcqYuRT1BUchkTv9U pFMUV1FZpSRnfU3B9gu0Vhh7yKsu+eUz3BXziG9TK4aRFIOtDndY28ggkGQxwDbe B3apfO//MpX7S716Fdc+XdiQaH346VZk+nzinukhXHSxGjrikeBm4Cvc3tg4WMNL s8AuWoZyWdZmb59LjYXXiNLCPew2VPV7Ir2pajGTlPQDPZq8rr0dX9x1/4Ssy/oj RREwBIugSk0mK+MI+jK060pNpK+c4NOqJshkxPIxMW2FKXcZ0tDTChVI7HjFpjwq JljS+Vgepsb3epuFsuvHDccDYCucY56xAfVh5+0fjStg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=jDIBCF WvT4CARE5poAJvkivrkrxIsdGE7P1bYKFi2T8=; b=SvEqreKXnfNY9l3pDi5NcP 3gXKdgzHoqRw4IiOvpHu9koR50IOVkmoyBgVPlQWHrHqdfB0MX+zupqCjCNxVmlJ lQNodKLt6j0qCcASvB9sRqz5pQOM55IKQnA53e2o+HldfDRFdFEYH7yWqhT1aLRr 5eU999XSZL+Rqdo/Ecz+u/KtnB8CFx8cPKpHar8OXOU8uVNy1tWLeMrdw5WTUx2n wFjdoUKAun48PmbKC12IdmTr2HybsROq0G+iz4uN3FofLNmZd98LNDOU92ozT5mO T26hCcH4FQyAYtjPoBcsd6ikdOVzWsLOLMxKNkm5AM/x0exx7MhRByiVldK3pkGw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegfedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Sep 2021 04:32:19 -0400 (EDT) In-reply-to: <875ywdquds.fsf@gmx.de> 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:214048 Archived-At: Hi Michael. So I've seen this a number of times now, and it really looks like the caching mechanism is the problem. Every time I see "Forbidden reentrant call of Tramp" when trying to C-c C-c a remote process, I re-evaluate tramp-get-connection-property with (when (and (not (eq cached tramp-cache-undefined)) ;; If the key is an auxiliary process object, check ;; whether the process is still alive. (not (and (processp key) (not (process-live-p key))))) (setq value cached cache-used t)) removed. This effectively disables the caching mechanism. Then I can C-c C-c my process, and it dies like it's supposed to. TRAMP feels slower after than, as expected, so I put tramp-get-connection-property back to what it was. Eventually the problem comes back, and I do the same dance to "fix" it.