GNU bug report logs - #49954
28.0.50; TRAMP: cannot kill child processes: "Forbidden reentrant call of Tramp"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Dima Kogan <dima@HIDDEN>; merged with #60534; dated Mon, 9 Aug 2021 09:09:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 49954 60534. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 18 Sep 2021 20:50:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 18 16:50:24 2021
Received: from localhost ([127.0.0.1]:37040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mRhI0-0003Fv-AU
	for submit <at> debbugs.gnu.org; Sat, 18 Sep 2021 16:50:24 -0400
Received: from mout.gmx.net ([212.227.15.18]:43853)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mRhHw-0003Fe-Cn
 for 49954 <at> debbugs.gnu.org; Sat, 18 Sep 2021 16:50:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1631998211;
 bh=8hdRc37UZyg/5+9z1DDvl4nUMdPZRZYMn3Inqix/sxM=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=JxnhqPVKTv2TghqEJWOOuLRRX0USq2CEzegP6u7o6s2+rdMiH0b/QUhlOLtaKdw3K
 0tINsRpF4o1dj7Vpy4L0BcoZzlSUcuB9LOerN5vvS7LeBEMrgkXP9z3kVBmaNpXXWP
 qeVT3Zkpvw/BSbQN5Vr0tLJDcVUicQREDwW6sd7g=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([79.140.124.143]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M89Gj-1mVo1Y1ctn-005Iyq; Sat, 18
 Sep 2021 22:50:11 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN> <87v930msrk.fsf@HIDDEN>
 <87mtoch23c.fsf@HIDDEN> <878rzwmnhv.fsf@HIDDEN>
 <8735q1eiye.fsf@HIDDEN>
Date: Sat, 18 Sep 2021 22:50:10 +0200
In-Reply-To: <8735q1eiye.fsf@HIDDEN> (Dima Kogan's message of "Sat,
 18 Sep 2021 13:18:17 -0700")
Message-ID: <87v92xfw1p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:JwjoHUQk5BH5q62TizGWCYwGGreWCMwIQ13gMrePVmkwiH19kis
 jqNm+JJfWAMx8RvSa5wRcewSDc0RxQrjRExgShwcqMeGYakucD4Ioo1+MYDRj86gDuWv+w0
 CM3naMYIC951gmoPlk4uDiNDhRTsRPE+KRnCaMPrCSzfKMQheLkjeKMlB5fSK3CS4W5/v5d
 xvrMQKeAve2NkhUYRBV+A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:4PRW36hzOB4=:/SkyoJqEa7OunnQWLs8hAJ
 ZsxODVO/XwN3571z3TlmWWsfJaVTxC5YdQg/K77/zn6MxapIaLVMJzrNzVG/+1CQrrKbAsfGS
 3SXefKgI5u1oLvG5x1tWfq0umiTzlIGw1wmJYYf0jQDoF7WmvrWvTjno7DcYgtTAPzHtxHnxI
 yQUsN0SI+fgHHUYjilQTJi86cYwmXYygNSOi50LEYvFCsO9nlRC0GJHlB6qmfqoxLeg1YH+NQ
 KXXs0103VtH3akXhWMo8KAhTgcZ8vMeZ2yklYM+zcPIcYFLwvAXJ6VUouIics1cPaGbPuGZET
 7W8UruMSGbojBtU85eQpEX0QpsjhJUq41xDku2QkkPPb37YXZVQERj0ohD7hPMh7j9rYKuoIO
 7E0leg6hf/IH20vSk6D45zZJNvMpy3/AFSjGxQsgLS+AlJ0c1xYOV501N+KNGC97ZP5agT134
 yjnnRlnTSHc6VFrPaCxX0Zq9di5VpWc3kFxBrQ+lI/vtz5BqBneP6cLtf8gn4P1v1WzMAIWno
 8FyV25MglFj1gqNoLexASrha8L8PuJYpdvyScrjYaALiMGoeTiGfewO8d2RjkmTkR/NIhykG7
 Xtx8+ZySYFV5gjwC2kxo3+7ihsQQXbmeSQOgH63Lmo3MjHp7O5RZmUnp04ibDUV2x522wQ4DY
 GaSPBxOn7nKbH6cRlxppIjyLfWQcmHORPgdgaLDZ9XBh4ejOaUNoJvy/fCvDOTRwHTHlBv6mC
 Q9QA4DG75EoSuLjdoMsju765FcnGbW63WqRBsG05iCYuz6P0QRzbdmUXgzlYQ40DROlu2zSfx
 GkVQF+dkTUPI4Tg1CGfasGADQ6Vmmuwhj/4QktYUq6M3kKKqQRl8iEUs1Q2qbpj9QniLK6KIz
 p26wHo559keypIkVQy9TqrN/m4m83ykrEStEe2ZR5WxbM+1o+42fL5bvBRM+7FUYdczzDYWNI
 kuJmvc9EGDoYa22AkgrMBDTCildC2LwwAPxh1WC8Z351bYGt/x6AlJNF965TRP8LeG5VZx5AE
 7jWaifsEULzPAC5vLPDiMIrXRkk14cOhpwsJl2Lcclckr8XZY10Xbk+z9uiUcYgbBiMNwS8hw
 fDMrwN13prhirI=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Dima Kogan <dima@HIDDEN> writes:

> Hi.

Hi Dima,

> I just hit this error again, and tried to work around it with
>
>   (setq debug-ignored-errors
>     (cons 'remote-file-error debug-ignored-errors))
>
> as you suggested. It doesn't work to kill the process, though. I C-c C-c
> in my M-x shell, and it fails with a different error:
>
>   tramp-accept-process-output: No catch for tag: non-essential, non-essential
>
> Doing my caching dance actually makes C-c C-c do the right thing. Does
> this make sense?

If the "caching dance" helps you you might continue with this. But I
won't recommend it to the public, I fear too many undesired side-effects.

The best solution would be to fix the problem itself. As always.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 18 Sep 2021 20:18:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 18 16:18:08 2021
Received: from localhost ([127.0.0.1]:37025 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mRgmm-0002Ru-4w
	for submit <at> debbugs.gnu.org; Sat, 18 Sep 2021 16:18:08 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:41399)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mRgmj-0002RM-AT
 for 49954 <at> debbugs.gnu.org; Sat, 18 Sep 2021 16:18:07 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 42F14320055E;
 Sat, 18 Sep 2021 16:17:59 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Sat, 18 Sep 2021 16:17:59 -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=ahHMRyuHHaKoVLB2ZjAp/jdcuX
 pSZt05N9y6tW54nqI=; b=WSW0y0P3JsW2KONKoHMN9bmpxntHeIsZsxnfS2Z+V/
 z7N1xQZmWRAUCCF070rQtUpOCGxGQ8qbPVPr8K0MFtRDxhgjYvpvEcmodV2L5R9d
 hqzN3u7b441GeDLBDzERJfXGbdjNnD0c8jDthbz/o2pwkVlgzk2ELuyW1WlnWG2B
 ZdZ/d9BQo/bTIqT+LGdUkiuqkBlM/AEiHuS8Cy44IHtn0tjPMaPlN2pu020nQ3bt
 FexbyqDHIGeNQC0FXz0r2KoSKhP2c39IEso0VqnzSCByxIclD5ufxKOhJmrH9r9O
 IiEbwaxkPdjK/z3OkmHjO8pen8XmjNRkHt467jPP1+vQ==
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=ahHMRy
 uHHaKoVLB2ZjAp/jdcuXpSZt05N9y6tW54nqI=; b=uUXv4BHq+PWa2oADITHDp7
 e6iQcUPxMeaGnd6BXfjnTtT0mUKinUXcZS6NBRQnfobLz/+Cd09bOVSsMtmSiyaZ
 jI/gQFSU1CZjMlSOl97Zzer/fD5eVrhqqCjc0GB15c6zgf5mPNHSnm8Nwkdefn9D
 Exo9svnRUlSJlCCv8I9mlb/BxVO7/PDQOcHgVHKx5eEY7EwsHcM5GBsxlQuQUivQ
 qfJIhI78okOWPXwrxLnAOk1p+cwtUsWDPXV50LQjQaC3DT1uC+0YM4MFrd4luq30
 tD7M9O10ntJGV1uGugTnCE1qMNgq3koZvmIy3jBU4otXEt/oEbiyO6w8s1nCmmOA
 ==
X-ME-Sender: <xms:dklGYc_auOr8Ud7Iss3kKb8Uya8lOuZ9_WqW7iB9kmKIlbaanX1piw>
 <xme:dklGYUtAFYbCXu3XVHZttdn8prYHo_oAmSPgjQhUl9fOORIWliV6I2_MGE-zZzPEI
 ow7vF-SDMZMPSX5>
X-ME-Received: <xmr:dklGYSAaVHUBLBNKoXp-uwXR7IPg1HUqxDvWwnOv1dOGIqWyraW6-L--_pNBqJhhFByAjHoGF2JPk7Pn1Mc2Lrua7ZlaGiNdF2QBjQ0dAXWlRwUzebQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehkedgudeggecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr
 ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg
 htthgvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtiedu
 ueekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 guihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:dklGYcdLq5777B6NTz7nd5s8I7la6dvxxCSCuZNXuXuvk2pYILTwvQ>
 <xmx:dklGYRPSux4SoUVjtMQIU1xXZjVWPqu88Ay-UaOUHpC2ZusD98uWjg>
 <xmx:dklGYWkgIHl4aKJ01MdxpcsT7AUxEGF1csOE1tFu1s_ulgxsFKM58w>
 <xmx:dklGYTVb_iqwipExbzTq3tpKE1DmShFAoPP5mN_Eb_LvPlkJaOcnBQ>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 18 Sep 2021 16:17:57 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN> <87v930msrk.fsf@HIDDEN>
 <87mtoch23c.fsf@HIDDEN> <878rzwmnhv.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <878rzwmnhv.fsf@HIDDEN>
Date: Sat, 18 Sep 2021 13:18:17 -0700
Message-ID: <8735q1eiye.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi. I just hit this error again, and tried to work around it with

  (setq debug-ignored-errors
    (cons 'remote-file-error debug-ignored-errors))

as you suggested. It doesn't work to kill the process, though. I C-c C-c
in my M-x shell, and it fails with a different error:

  tramp-accept-process-output: No catch for tag: non-essential, non-essential

Doing my caching dance actually makes C-c C-c do the right thing. Does
this make sense?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 16 Sep 2021 17:36:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 16 13:36:26 2021
Received: from localhost ([127.0.0.1]:56490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQvJC-000133-3q
	for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 13:36:26 -0400
Received: from mout.gmx.net ([212.227.17.20]:32783)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mQvJ8-00012k-HR
 for 49954 <at> debbugs.gnu.org; Thu, 16 Sep 2021 13:36:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1631813773;
 bh=V2B2jRYxCLHjdDjwtot+ral6euR2OYWg1phQByYO8ow=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=GbTr6Vda8e1P5TmYcS2bnipFDBxdzrqxhPAKMCCdsj/sDaiwZTw/LWvMOHnTbWASC
 GUow0ZLieeGCkwvQxVQ2XeGzPtb6GIgAhbwStLbo8T2RZuSA4bk5Ywm6GHpP95N4H8
 +QlpnCihe1JINLqQxdbXEBqpLkkH6MghVOBjMTh4=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.158.132]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MgvrB-1n7RGC156T-00hRAl; Thu, 16
 Sep 2021 19:36:13 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN> <87v930msrk.fsf@HIDDEN>
 <87mtoch23c.fsf@HIDDEN>
Date: Thu, 16 Sep 2021 19:36:12 +0200
In-Reply-To: <87mtoch23c.fsf@HIDDEN> (Dima Kogan's message of "Thu,
 16 Sep 2021 10:17:27 -0700")
Message-ID: <878rzwmnhv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:2UFp6UIdcfAM/xxtqL7GLLSi6Z9/sSA3Ugas09wIepbYllL4QxR
 01HYisoZOlgKR6AnpFTVYIRrTg+hZTaekfPUz1qd185Zt8Vh/VqFeVTCDwruuRnJyGzJmgO
 DEBmfbhkVne454EQCkBe8RZqwgB97F8UL/N8PD939XrQEYYZ599XwQN32LbOiDUWQK+q/Gq
 sPle3iCEdYOyZU+24HaFg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:KXubcKw/tVg=:iHBavY4U5LQR3nxTajb76j
 Qk+Nl0jpJrjhcJzElWIFAo8XKbmYtkJkO7L6qp0QksuUPlAeK0a/vLyEx0ck0P4BsQAB0MU2/
 PBFnfeWG2B3pMaKPV8uqIWB9nXao61JbtTdxdVmyXcc39YjoWbeU2HYok4OJxeSYBjSCECuOL
 7iljuJKiuK1/CQ63QqP+df+NgP9ZiQFKpVldGeEi8vSZXfFrOaNlrK33CheBbkHTVebHTtAv/
 ugLclw9A8OkVb/mijwGKy3+BMtcmew03dIDliKgSIfkmQG8oeQ7GCnPkNIuGKWm24zd3kFPRo
 +eUBh0XrZCHtk73ayXLRjV6bRtqtqrIePMBkPOzpCzwwNQT9YMOqblOdPnobDkq6swubqfst4
 Fw4nKGA808STiTfKGO5nTNHUUunPnZjpqRAOOTjbZhk6LJQM6yELCyZX73QVzRc6YdNJ6I4+P
 FzBhRm67z9MX1CspHHAxBsxlmmXa5/9E8+5TPsXzJ7p5MZXpkKYVu5zBYxE/uQfGz2B1sb3gX
 2ToX+j12Q8yvuMdNyqNflJxGpszRiDaGvhKFbym9bGCotemsztVdU5VRV0skH8QmnSFWkXiho
 Q9l3rFTh5PhZ6Za8ms11mdi081LqkwDbUbzU26IpwtqEMpONPoTe2VXxZKoRGofdHcMzXVqA1
 D2+x9+39oIq/IhRQOyHDcxLwpcBIL4Ajw341tc62Z1zqPQ/5x9ORXbDWMszgjGC27u6MIUu4T
 3YehdKWLXfRRJsJXcJfho+Gj3KhpNzIGfsfnSHHiZOtaIx58X7L+lYTPkq7J25WHFz0Rlj+ct
 cmGko9JpBzD4rZs6I0hyhwW68F3yR75OjD0e/sZ0JT6m4MoGTVNhBbp3OjYKRTOHglvyOm6hW
 AfhszBVBPG8kzsHbjQ+g2jidZKZyE0mkVl3qTP5FYSVTq0CZ/j0MzHY54R/fafmNd9HQMUyKg
 iYQ3HK4oSPdFVADbIoz/lvk0jzqDLdAwGUnJwjnh+uVrKib74TMxek3w5on8GaTcn4hLtznS1
 AdsZlS1H5usKrkkcnf3+QecGxQYg1GY31FmzQeRVmd+e8XDc7x2r6TPTF8JYazmaaelZ5fY9F
 MmSVOB0QfwVIlQ=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dima Kogan <dima@HIDDEN> writes:

Hi Dima,

>> Why do you mess with Tramp's cache? Adding remote-file-error to
>> debug-ignored-errors, as I have recommended, shall mask the error
>> sufficiently.
>
> Tweaking the cache is the method I've found to work, before I knew about
> debug-ignored-errors. I'll do what you suggest next time.

Thanks! I didn't want to bash you, sorry.

> Thanks

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 16 Sep 2021 17:17:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 16 13:17:22 2021
Received: from localhost ([127.0.0.1]:56461 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQv0k-0000UI-IY
	for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 13:17:22 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:35049)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mQv0i-0000U1-5S
 for 49954 <at> debbugs.gnu.org; Thu, 16 Sep 2021 13:17:21 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id D80FA320091E;
 Thu, 16 Sep 2021 13:17:13 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Thu, 16 Sep 2021 13:17:14 -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=pJFl//Jubfu24l1D9h9NK7jteG
 lT1vqAZM1CFc8LfXA=; b=BP4fpTgzwkBKunzeqwXCN2HIDiz6rqN811N5YYxkPn
 dErlovD3TnG9za8OfQ8AwxcYcYnjtM2VblUhiCwLDwZ6ycuURL8Bty7eRPhfhbpZ
 kPBNB/jY3A8sWWV/rMo29AmC+Adog9tH6XuarNpbqRTmQwbij2KdUuchLIi20AZl
 1qnBeQh5kRgtlUAMNP2kOdbtHQWH4oPv5IPckqnPyYXMHCLsIB6+CxlggBBvBQx5
 elvMjW9T0VfEfRH1LLxmSQXwlQcNHj8mjYTKTBc93yHrxPEyG/UTh0WSBR+U0JoM
 BkRLtcxT6hx4cmV1OtJy6AOodWUFV9G0SgEZv/dxTGQw==
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=pJFl//
 Jubfu24l1D9h9NK7jteGlT1vqAZM1CFc8LfXA=; b=QfbhDKAJmTjW0iRyKAiIDc
 5rloBM77RLm/6nstsWIGX46Cx7xkO+KhyrKX4MKjP6qywJxShIUH0/oFrnB5H3nw
 jZmHSa/qsHjsfapvoLL/QgHGoXEmKEHqwvuZIv2PLWs/TlGrKcflG/BWJ7pQqdK4
 iH+nowSPy2TMz+2/JIvmQ3igG8qFBaPLZzfMtQFSHJj5M+4liPunOzTzA+RpaVnn
 E0avDArDMhHQ0MP0elOAv75pYzSAIktjTB6zAQKTi8NuORwhhIx+L1KMTtsR/p0I
 jR7bW804jl6YlKOXaBy7QFX1zHEoLPBIijfR47lc6nGNJAb0TtEjF17PuvBnldDg
 ==
X-ME-Sender: <xms:GXxDYXoaDaZW5p-mxhbWvI9Kk4wTSCoLknj-cowthV92LZX6I_8GMA>
 <xme:GXxDYRr-y_WLS9FID3C6TOwDaw9qsoShXlfin-WpriZRxazDE7gsgPKC_Wm02HigD
 dq6S7AC4mpQPBeN>
X-ME-Received: <xmr:GXxDYUPlfrGn-6H9M0NnG97d0A2BD297VDJJ85mD7Gb2_cHoK4HRUjNPsA88tqKTFRY_FZ2PkuKj2D7WX8glktVMrruPlNV9MJRfY2by_PrDLE1txGs>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedguddthecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr
 ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg
 htthgvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtiedu
 ueekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 guihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:GXxDYa47qU0Ipr41BiIyy4GSJEK98oYAqsgss7YGwIbjnzutzSFRng>
 <xmx:GXxDYW6BWEF_Yq6zPLauwgysAAuBG5CDWvEHva6_4pk8H-eoqDByQA>
 <xmx:GXxDYSiMRo2-8v2ksElzh6qVleNxz3AVUPel_EsBDjQailxw-vfSZw>
 <xmx:GXxDYbhHvJk91LVJRMbb3Axf7H6tq_qPAItcKdc9-8XfM7T7jPqO8Q>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 16 Sep 2021 13:17:12 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN> <87v930msrk.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <87v930msrk.fsf@HIDDEN>
Date: Thu, 16 Sep 2021 10:17:27 -0700
Message-ID: <87mtoch23c.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Albinus <michael.albinus@HIDDEN> writes:

> Why do you mess with Tramp's cache? Adding remote-file-error to
> debug-ignored-errors, as I have recommended, shall mask the error
> sufficiently.

Tweaking the cache is the method I've found to work, before I knew about
debug-ignored-errors. I'll do what you suggest next time.

Thanks




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 16 Sep 2021 15:45:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 16 11:45:52 2021
Received: from localhost ([127.0.0.1]:56280 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQtaB-00068E-Qc
	for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 11:45:51 -0400
Received: from mout.gmx.net ([212.227.15.18]:32903)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mQta8-00067y-9H
 for 49954 <at> debbugs.gnu.org; Thu, 16 Sep 2021 11:45:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1631807139;
 bh=3M/0d2GzIAdl57TIOYtHWUUC5YTuiQcf2P4ahMUsWgo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=kd7CMJH4YUQ7aRsLeTNXvSmuKGI14nKM7fkP3hYk5bi/6mKMJMRb87PmOmYGJ/vqX
 SPNsAKNsthKDMYcSb0t0J8JtRqM8fUkhVKq00hsGPJZcvSUkeAWNwV0wnJ+Ze+9t3o
 6lMwtz4y7VoHT7tli2spyxPnRKBJa2jz/bv+UP14=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.158.132]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MybKp-1mq0gJ4BWH-00yzdv; Thu, 16
 Sep 2021 17:45:39 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN> <87ilz1iqu4.fsf@HIDDEN>
Date: Thu, 16 Sep 2021 17:45:38 +0200
In-Reply-To: <87ilz1iqu4.fsf@HIDDEN> (Dima Kogan's message of "Wed,
 15 Sep 2021 12:25:23 -0700")
Message-ID: <87r1domsm5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:7cQnocjtRCsWFrYJ5KvVSsH3nEx1pdtWOKM9VRguvj0Cm+kWc+S
 VwmioxXoRGlg/ohuQ7ZGpp0EpaFxef8+ezaNNreWu3tzwudd+cgiHsRAxWZxW/UXjZInNqt
 m7DjWaTJc94EjuKmpwonokpmBoBIcwspy3wwFWj/JAmf01wU+HD/2TXx5r9sZQBQ0mXrrmb
 hsYHTFbifyW5XDqwQAITw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:Xhib/nu/kxA=:56LIbpAl9amFozCLlKfcvX
 rbEBVrr2shfQy/hMcfglKKh+KMNUpmMO9fEWJjB2BpiYW64yVzYRXf0S3uUFpDQ8Z7nljUdLM
 +zGiTs5pJhU+t2l05LGc5BD24c/98Y7+EjXazyYmN+mz7csrQC72fCzinAuFYAkbA7KpVQ4eT
 90zmc9Hb8bdhtTG8gbCnkp9V2J9fiaqd+ojiw8F9KJObfwwrsmNqxGWsvccscFsE4uTnBHKlv
 1Ao5a07tHxHGFmnVcsXKASqgTpiQunnLNXrvQqnxHf+x5QGilD/PTNXf20YDYjJXlBfVzxSCv
 H8PKLEzavc7/5tuk8RzH7JShVGt+c7gLD5RjFQShw3BuO9bCPWqQICBRZCmL/cTYv+dbb7pvE
 rf/btDW+RMKl6KYwe6ugcahiVT3+Tc/zFL8TEn1QP8mWAl3/pw8UwTgzn9WWtvvS/8yE/P4R+
 kOVpj6yGaKAVhYzn71DE8wfe7HGS3wfTbyI69SEnSHz9TX1t14PnyGpr/9E6lNJ3JJZpvgovz
 Qcp82pC4L79putqgKTDnQM52VXY9z0sb/l+mmW4n716t74tYApefgm2GqA8Cv/3FFNFZN38nm
 ZQKdMfSIs3POWI/N9H7iwC/cWQdL8jHGeO2tqnSyjgEbRCCvfjFSXpm3qZQZBzZlNyXktbzUp
 H1IZIuozgTSNG1Sq0fECFUKytHaBnCM2+sJbZp+QzqFPSf+Ix3xxyRuPae6+oRlWDGwkTIBOb
 IFSpczTuXdFHCRwpLMfDHCn2FIPXdohzvh7cfkRkFTxCnHmrIJjOoY5CwcuUvj7CNKwdHYhrK
 LnomUWn8qXbZXVXuxcnstDNA9YrnnWywv/jOr7t1x3ItD6TK3oRvy458lrcERW+u1eVM5BOEl
 enNmoMx62i3ZBzvCWgUUmOri6RBxEb3YpHbNl7jr+UFw7Tvp1FqV30Nrw59SRLy9Zr7o8nhrd
 D/KZA/dzmLR+Xmn1zr0e/v9kSSs4wjkQOOxSJex3fLbrICN31dJfY88bNnJ1yCKZao4JyftL8
 WwRr4dfgwZvlT7yYnLcbxf4e1jmFu+0kZI+CTEkCGg2TaZdDMM+sNHe1y0WD2zevIAlhzGoxX
 TIHs56RIU1JFlY=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Dima Kogan <dima@HIDDEN> writes:

Hi Dima,

> I paid more attention to my usage patterns recently. I often have
> multiple remote M-x shell buffers going at the same time, using the same
> TRAMP connection. One shell might be running a long job, writing stuff
> to the console, while I use another shell to do stuff. Could this usage
> trigger the race condition you're talking about? If so, setting up an
> experiment to try to reproduce the breakage wouldn't be too hard.

I have not the problem to reproduce the bug,
tramp-test44-asynchronous-requests of tramp-tests.el is good enough.

My problem is to find a solution. I'm thinking about using threads, but
there are some hairy details I need to solve first.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 16 Sep 2021 15:42:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 16 11:42:35 2021
Received: from localhost ([127.0.0.1]:56269 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQtX1-00062n-4g
	for submit <at> debbugs.gnu.org; Thu, 16 Sep 2021 11:42:35 -0400
Received: from mout.gmx.net ([212.227.17.20]:46529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mQtWy-00062Y-LX
 for 49954 <at> debbugs.gnu.org; Thu, 16 Sep 2021 11:42:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1631806944;
 bh=2leSNsBNi0zfx4108m6KIO3z+CL+CKIHHDzh95ky984=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=LipgL58zoiCOptBOTVTdSg0ypykjqoT/tZtj1dF4FmT1YC+ptQTxhgynSUU3YvTLo
 HuSnhdCUBMha9N+pD+HE61+8w/kVbDzhWgPLP+GOmue3l3faU01NKZExxELfy/uVJH
 xS6ISJ0lB/zHcCmzuaolaRjvFmzl9poYP5LHf1U0=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.158.132]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N17YY-1mszG61HqM-012U1T; Thu, 16
 Sep 2021 17:42:24 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN>
Date: Thu, 16 Sep 2021 17:42:23 +0200
In-Reply-To: <87o88uisee.fsf@HIDDEN> (Dima Kogan's message of "Tue,
 14 Sep 2021 17:39:21 -0700")
Message-ID: <87v930msrk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:3fpCk3i9MDZId8XtQveoooIxxCw4TGkWkYUpUU8yYRpwF4oat1n
 By0rs3PX8UgcYe8jV/8t7u33KlibXGtfiOZzPHgs0Ee/jkpeROkFfiZNCn+Mk5NVnFT0Bru
 e3RCvu7GK72Q3tZ+K5LcR/Xu/ERpW3v4Kji0F6A01a4hyBxqUjbXC2785UGqjKJItx/UKQx
 yq1imyY3WLZQZb9f+0N6A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:u7FAdFOeddk=:LfXwft6AJO412SWjw+KEPl
 1qNkCWJSe7EgMFeNpWqynl2UyqSrFWhORYXLg+fg3X75MQTkGJHy6EvVH1fsO5SLIQQeZ5U6H
 aZBIunRPebK2J0mKigo1pbkqYRgtfJF2g/EPhYdd1c9NBHiJp2NnZoeZIrux0sNvEBMM2FJQt
 2K7Tk1xhgW9beRNI7Wk1pg1x0bKH+emrwlCaIArV2/GjtaKhkMnjeX2jcKJmL/uEMj5gAvyT8
 zVCAOg93c5Zq45uSBIEUwRrXkP9fQVQJUUiGxk1H+3ByQeKOymhAUse4+Pgymy7hvFY6Fuedn
 cqdDN+bR8A+rkQ2IdLeOF3wR4GGTdJZdPMiHWXSJjQayTP5+AqiJTVi64asFvARDJH2x5bOuQ
 /IsSmUaSIzigrDO29P2pvJI2Tn+VLlyoKyS/VWlBliPzGQ9NagkQZJUH00gL77PcfpGwhAimH
 ejwV2MUgUTo40pTIS2BsY0MBT9ear+CWBbqVUOgmJQGU1cewDBpkoULA+il6+ypfEhgn9/Q/J
 LlkMIvhCH8ikEyrV75p2ieU2im1oExwVVPbIHUsTsM6It290GVdhc2cJJkN2VAX1bsreAFS8o
 yIZPAFnPaHhWh8xsoEEj/xOGj5tDw+oK5e9pnZRR3gKLlucM2esISIiJ3PPa88c9EVObrntkL
 F+je/FyTUfuItwHgnaebMBFhBn6sHMdLBDQYrGfMpPnblKz/MTa9UmtxhClyUcx+wWeWeDUk8
 WoQRU99oNKufiRRUOWuNu6EhjwSjsXb5zbj8LVWnoerZOihcW+cBgyA79payyZqe2BDpBHfnF
 ouJY0vzvuDNt6+zZa2CelvNyZhl8watjfIlQqJJYFROYnG9gY9rLcPDbLVAro3Hdcpwc2Qshm
 j/BKgP0FnKy8ZH/zdApSAYZGuJNyxwLtcOH2Xw9EaVzVgsBCNJKb3kq/sKRQOo1N0NaMSGEyY
 c530txb+yKfvYevXp3G77BBSH8OVXksvPODWToR1EZURtGSFxA9veJ1Znj/VsPrKx2vMEEkrk
 RtRIy+Lvstf45A+Y1TkKWeW66AddUJJpRF2RNEHIYiExFnUWEaYhyyEmGo0xw5ppMW6k0C8Tx
 6I+oie7WmZPFX0=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dima Kogan <dima@HIDDEN> writes:

Hi Dima,

> Thanks for the explanation. What would be an example of an asynchronous
> process? I have several remote 'M-x shell' buffers and probably some
> dired buffers looking at remote directories. Is each 'M-x shell' child
> an "asynchronous process" for the purposes of this issue?

It is an synchronous process, indeed.

> Does it make sense to you that disabling caching fixes it?
>
> Usually, I can C-c in "M-x shell" just fine. When this bug is triggered,
> though, I cannot C-c in remote M-x shell processes at all: it fails each
> time. Disabling the caching, getting one successful C-c, and re-enabling
> it makes it work that time and in the future. Is this consistent with
> the failure mechanism you're thinking of?

Why do you mess with Tramp's cache? Adding remote-file-error to
debug-ignored-errors, as  I have recommended, shall mask the error
sufficiently.

> Thanks

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 15 Sep 2021 19:25:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 15 15:25:18 2021
Received: from localhost ([127.0.0.1]:53317 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQaWz-00084L-Rz
	for submit <at> debbugs.gnu.org; Wed, 15 Sep 2021 15:25:18 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52645)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mQaWx-000845-Pi
 for 49954 <at> debbugs.gnu.org; Wed, 15 Sep 2021 15:25:16 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 53DD15C0192;
 Wed, 15 Sep 2021 15:25:10 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Wed, 15 Sep 2021 15:25:10 -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=0Uprd/NmRZGsvUIhaw25a7vGIi
 jGwH74SEC/rThBW1k=; b=O6C1ja/3uUDh0XEDThvrjJq3IfXc9kb/AjxWQg9cBB
 Z81typXKb4RDpl4ydfS82DCYscE4+Vt+dcdvHvURgxW3jwugELZjNXGDWZxZgnby
 ypHr11BiTfn8ffiR/N/QcEGOVrgBB//vkQCAin1jMqLZSZdXL2geygndUNQzVXRr
 mt8ohamgay4NTlhgjxPO92oJuc5dF2yLrlxBuj7rRq+JzVbtz+a2nzdyEc2AV0MN
 8hrp1EsU8pFZaCvLuOvhqh3VN2sCoNU0azQhWxKkL0l0DnM1H9kJFB44toRNyZtD
 illdHg4z2RhVJ39nAk63nwBiYCwSfu7yq8vhzyfMZ0+g==
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=0Uprd/
 NmRZGsvUIhaw25a7vGIijGwH74SEC/rThBW1k=; b=Z9xUQuY37BNRxmWDj5hNIF
 qrJuxCEy5F5zqujGS5V7XndWxLL5zqxA5+qQFgtRrwp+p/YtWSkuHYnPmuNa+uh1
 QV+3zaCLeLX0KT2D2tFUXpyQQBZgqFFc7A0f7C1GYIqbiFn1xJz9mnKKTVcZicu8
 L15KAONgDwXlrC3LAyxxZhiYVLseBNdTZobAhymoyHES0YSPSHORiFj4eAmfQ6bh
 Q27wr3yOFhPGh7TrTz0d2OnMoklkL7ec92zIROaT60aw2qphOuRg0qbJ9Zn9BzPU
 d/Lku7OZfQxPPL64Rw5YmU90oKL34mzo6L8i7A7LUZWxxISZj7NikGlX9onFJDCw
 ==
X-ME-Sender: <xms:lkhCYVq57pkhyv9wELINEq91wYBBuCZn146kIrjQZ9up_ZuNoRk6NQ>
 <xme:lkhCYXrjGTj_qHz-yGaanvrZ_GS1W6Wc6iLH7dSVflluA-Js1CLWb0ZDU_mnskfPx
 SQziLzpMeDOHSUy>
X-ME-Received: <xmr:lkhCYSPPPZ08Y7xzX-l733Dj83BUo6ku9yoVLww9cY9XbRZ3FFblSPcn5KlvNMdJx1uEpx9flVLsgoAj__x23lB5Bc9YbBctQtWaD2Hq0JlI1l03DLI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehuddgudefvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr
 ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg
 htthgvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtiedu
 ueekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 guihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:lkhCYQ4Qkg5LpEPNklPaxFLYNgGwNlLJA0PDgSZG7cI7NixH2-fe9g>
 <xmx:lkhCYU4uyZuS9Erv-hYDKyKUeJ7zxcCawn1KkyRdCGVty9R7fFnOBQ>
 <xmx:lkhCYYhnEekD5T3exiDztW0KsopF6CuSp3gwhVPBhYGOcI6qmBvS6A>
 <xmx:lkhCYZiN-n358vtb0JYKwZ5TyxANA_my_baMJeT2GVfd0NY-AEf_aQ>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 15 Sep 2021 15:25:09 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
 <87o88uisee.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <87o88uisee.fsf@HIDDEN>
Date: Wed, 15 Sep 2021 12:25:23 -0700
Message-ID: <87ilz1iqu4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

I paid more attention to my usage patterns recently. I often have
multiple remote M-x shell buffers going at the same time, using the same
TRAMP connection. One shell might be running a long job, writing stuff
to the console, while I use another shell to do stuff. Could this usage
trigger the race condition you're talking about? If so, setting up an
experiment to try to reproduce the breakage wouldn't be too hard.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 15 Sep 2021 00:39:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 14 20:39:19 2021
Received: from localhost ([127.0.0.1]:50442 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mQIxK-0001ZY-O7
	for submit <at> debbugs.gnu.org; Tue, 14 Sep 2021 20:39:18 -0400
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38187)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mQIxI-0001ZL-Kp
 for 49954 <at> debbugs.gnu.org; Tue, 14 Sep 2021 20:39:17 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 5BA285C01EB;
 Tue, 14 Sep 2021 20:39:11 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Tue, 14 Sep 2021 20:39:11 -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=r/mkeP1T3Ls5l8xrGtZCN2KpzO
 OCTolYuPOgzAguXss=; b=k1lmDAjM/dCKPjNd6/R/fZ9mO037+eo5VNLDRUk2Hw
 6qkwLNAFvGZFnP0G+vzOxukUGdsBdEne330qtwhbtk99cvHjupbkSPBk8agFewMW
 GpLKsT+tcgFSrRqwgpircUJnWf6Ljij1p6C6IW+qdIj5skbMGfEgjScTkksMVSWJ
 oApOKkdFB4w3iL1uRlmUfGMir/fisKxP6oTk2zVi2lMCCVqOrhoiA7yqIo2cpLfZ
 cQEfDtwjiv3PSnCQZwT/UkkfjqZVgYmItNAb2CCgW8kXzK7GwRRs5MJ0TUnbXGCo
 PGGDHE07VRbBBp84s8VxRWPbbGozsXb/8jLdboJupbyg==
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=r/mkeP
 1T3Ls5l8xrGtZCN2KpzOOCTolYuPOgzAguXss=; b=eXW1/+elLn8mPvLljP6ON6
 ijVbG86ZH8Gnmp7kXmdgjxYslCkpFw41/u9vX9cCs0f5+2rQxIZYHSLUu03tOJ53
 dZYClKI8I/jdTELeUqDSqP/k8rPQ9/0ULQCCpnzWAEKy5XGnrP4Fpxx8kXTSsj8x
 AlF4V6/ZEeuYNKX8tqwmr0Ehz+QLRlxU9BoribJI7qe0ZB+svZJKcyngkPbXCB1v
 cNV3LjdEKXQZrojjvJzerw8Z55d/LgAb0P7YQhSndFS9YYV/mny/1xIllZ9Yna0/
 EhBHYfAsFAYu0Zfx3QCULqIBv7L/i0ZqzMHPZq8iUZ/fJ9jqWXMC29MMA78+utmw
 ==
X-ME-Sender: <xms:rkBBYQUBGif61LaBxGXGLn87f460qdcb4i_V2UXOBICLHbGXnwIGgw>
 <xme:rkBBYUkJj5GszepG21aHYpUN-nZylpyE9J6QO6jxN-u64kP0dSZgyohKBS-k3IfHx
 MFOzCMIJIyaqjma>
X-ME-Received: <xmr:rkBBYUbi6lBXiSzqQjkfxVYiPncZZc4L_h3Zq-SU2cDmZ3O0txvScG7TitxcIU_5vHMhZ0PqnXKTNFvsqInWLKpKSPzHcNQllZCcYhUgbye7-3ykkH0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehtddgfeejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu
 mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth
 htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu
 keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 himhgrsehsvggtrhgvthhsrghutggvrdhnvght
X-ME-Proxy: <xmx:rkBBYfWnuAyJ18yzzY7Pdrj1FLoQgBwzE9_htn0hwTyZOb4b9mGmsQ>
 <xmx:rkBBYallpdkUrks8AVroasW2Bj8z2bbXIdbb5CSIMWCVjOILqfeHAg>
 <xmx:rkBBYUe7dAuWkBgSLvyWMt3vZfSKyNGMNMMtLWhnOm3dM4x16_ai-w>
 <xmx:r0BBYRvCO6dFNd4VnaLeoeddgDyma1My00T9i5q1DwMRbSjPwyrfrA>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 14 Sep 2021 20:39:10 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN> <878s03s3t1.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <878s03s3t1.fsf@HIDDEN>
Date: Tue, 14 Sep 2021 17:39:21 -0700
Message-ID: <87o88uisee.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Thanks for the explanation. What would be an example of an asynchronous
process? I have several remote 'M-x shell' buffers and probably some
dired buffers looking at remote directories. Is each 'M-x shell' child
an "asynchronous process" for the purposes of this issue?

Does it make sense to you that disabling caching fixes it?

Usually, I can C-c in "M-x shell" just fine. When this bug is triggered,
though, I cannot C-c in remote M-x shell processes at all: it fails each
time. Disabling the caching, getting one successful C-c, and re-enabling
it makes it work that time and in the future. Is this consistent with
the failure mechanism you're thinking of?

Thanks




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 11 Sep 2021 12:19:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 11 08:19:19 2021
Received: from localhost ([127.0.0.1]:39664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mP1yZ-0008Bs-HG
	for submit <at> debbugs.gnu.org; Sat, 11 Sep 2021 08:19:19 -0400
Received: from mout.gmx.net ([212.227.17.21]:54371)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mP1yX-0008Bf-Ln
 for 49954 <at> debbugs.gnu.org; Sat, 11 Sep 2021 08:19:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1631362747;
 bh=bCOkM4GDz+jICNhw6nafAuwCYGF2w8WyEzJjZ284aLA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=HIbCinORsjSdb+l8qSgcHUr4LjUshW/ktRrfcwjCISbrUDfk8AMT/weuaG/ikDBBS
 A375bmszMIwPzaUyJOseVo8I2I7t+50xCkO2qa7misFvXNZyqcDCS6fBPUKp2mb5DC
 m8XWJ6ZkuD4p8Gkr29Wg0LeZpY7pEW7s+V8UmPBY=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.148.126]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKKYx-1meD4e1wA3-00LjuO; Sat, 11
 Sep 2021 14:19:07 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
 <87pmtfjyw4.fsf@HIDDEN>
Date: Sat, 11 Sep 2021 14:19:06 +0200
In-Reply-To: <87pmtfjyw4.fsf@HIDDEN> (Dima Kogan's message of "Sat,
 11 Sep 2021 01:32:27 -0700")
Message-ID: <878s03s3t1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:kQAzV1VJgUtWN7ZMUsgEjMph8k+OWyXRfWpS1dnNtZpXFYREM6R
 uaaAsirSj3Rkf1wt2UbAIcnWGuy35HXMFn+EwTQvEbmHqtk2kigQ+GT7LAxvjDFGEvTPgwb
 jwTbY4663LpOYwaIgvJFLOtaE97STgw9aGGztRMWorbFo2i0s4Orwk21wGe3OLIfXO8N2zL
 XF+BE2RtwWq90lwy8RoYg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:Qq40gcKe484=:D2Z1SaYkluRVhws0IMIwbK
 6OWflJoImWKlDtU18tnW+RLnJjlpFSnnZsynMBWQ98Jbaepy70AxQLIlEKA4l8dFNZSPSHUl/
 hLb60ZnzAMzzNoeHtHlaheN92dz0lH89Xw2cnKCU+UIlZoN7B0stXbwQS0kWLkD3ewGjnNg4f
 6eBZ1XRJVEvT4H+3hM+1WE7XIrChb2oSEdgLZVQYVWNWE58dZgOuNT5l/Twu4vDcLGF84rktp
 8hM65/7etP7mOejRilerJAadbWs9LVYJfz4HUedUbvnLL08GI/FjVmy6QyWgj38jWaXZSNdWX
 u8p8+eybOr6ZwUWopF5Mk2Od/EC2tD/yHOxbi+IAMHAayscyOkewkyDnLKd+mkGGKkTH1ZInf
 P5r8zHT83Or8SwBmxP3Lx8iOB08f8fH5W1YVbWIXgYRbEC5yGflt10fOL4wQhZp6XpUcVPhCA
 1k4zjfjOOFQyEVjWzpiw6VAA4L9sQe158EEqI3m9JeKy8fVJ/avOcHqC0SFLczavPid9AHZgV
 zKwmovK6ajD5g0UhhXMXfIQ0sv3YeAyHFuwBlNT68J4stJOqE8VK8sZjtOqaZiZ2jwn6QoP+2
 lgXCUEHWpaP8jnCMpRh867crM1atG7pq2IawWWnMZHD8yZ6zyRtspz+ZDGDUbNfoTUF77eaPW
 8wS2whpR1XOX1EWKT+Hx+zDVVeBJNgh23uS8Y+sBbkKtLT0S+EGQcFcsOPlfLOG7/kbe3CJQg
 N86ISsIOQb7x8GCliabZxYrBiE0aU1jDTWYb9XDSGmWItW2Ze0uozGj4zK7g8YFPuQ2siGj01
 oNShLOzmbDqVFzbUE6KWFxNdl5LmmPBYOLOLme9VqN1glaY51SVphFXAkT6jj6mK5ZaPSTvPg
 aQbIei+6kIS4r5mY0nZqhJ6dZ67GjVz+Iesyh0/REMXy5rku2kFqWQudYCpf9S3nqYuWeLfYF
 DigB05v8TbaC1ATZHWUrUK/Qpo4qD/2l5cg8rBrfRPM/tv0fGftvpWI2crcCKbZSbysXhUUGJ
 CxC96Gw3I189jBrNX1lxXG1yKd48YfIlv9XcAQuHH/mpGUK6OrIa3lOd/rQDsUqgqjWfd24Qf
 ERlpGv+ocp4oqw=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dima Kogan <dima@HIDDEN> writes:

> Hi Michael.

Hi Dima,

> So I've seen this a number of times now, and it really looks like the
> caching mechanism is the problem.

No, it isn't. Tramp uses its cache just as memory. The problem is
somewhere else, see below.

> 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.

The Tramp manual tells you how to bypass the problem, see Frequently
Asked Questions:

--8<---------------cut here---------------start------------->8---
   =E2=80=A2 I get an error =E2=80=98Remote file error: Forbidden reentrant=
 call of
     Tramp=E2=80=99

     Timers, process filters and sentinels, and other event based
     functions can run at any time, when a remote file operation is
     still running.  This can cause TRAMP to block.  When such a
     situation is detected, this error is triggered.  It should be fixed
     in the respective function (sending an error report will help), but
     for the time being you can suppress this error by the following
     code in your =E2=80=98~/.emacs=E2=80=99:

          (setq debug-ignored-errors
                (cons 'remote-file-error debug-ignored-errors))
--8<---------------cut here---------------end--------------->8---

In order to understand the problem, let's assume the following scenario:

- You have connected to a remote host, say "/ssh:host:". Tramp uses
  internally the process *tramp/ssh host* for communicating with that
  process.

- You have also started another asynchronous process to that remote
  host.

- Now, while normal use of Emacs, the function (file-attributes
  "/ssh:host:/path/to/file") is called. Tramp sends a command to the
  process *tramp/ssh host*, like "stat /path/to/file".

- While Tramp waits for the answer of the "stat ..." command, your other
  process has finished. It might have a process sentinel, which is
  called exactly at this time, because Tramp is in a loop
  (accept-process-output ...).

- This process filter might trigger another file operation, like
  (delete-file "/ssh:host:/tmp/tmpfile"). This would require to send
  another command to the *tramp/ssh host* process like "rm -f /tmp/tmpfile".

- Since the first command, "stat ...", hasn't been finished, this would
  result in inconsistencies. Tramp detects this situation, and raises
  the "Forbidden reentrant call of Tramp" error.

Not so easy to solve. Ideally, remote file name functions initiated in
process filters, process sentinels, timers and alike shall wait, until
the currently executed remote command has finished. Don't know how to
achieve this.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 11 Sep 2021 08:32:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 11 04:32:28 2021
Received: from localhost ([127.0.0.1]:39515 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mOyR2-0000G6-K4
	for submit <at> debbugs.gnu.org; Sat, 11 Sep 2021 04:32:28 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45881)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mOyR0-0000Fr-4L
 for 49954 <at> debbugs.gnu.org; Sat, 11 Sep 2021 04:32:27 -0400
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)
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: <xms:lGk8YS6FkKYG_mppiiBCsFLUVnPrlY8p6U8NAwKafk1NK90MU8gl4Q>
 <xme:lGk8Yb4kjrXQ22KEGUrKPEhMK8NIX23-yNwif4x4BLqkdoskOYlM-ZzTx99d-FFE5
 RaAllsYyqhsdguM>
X-ME-Received: <xmr:lGk8YRexEJ147dkSXVK7rW_DnDbLigoHXyYfLBkZlibhgFBwT7vYiUrpfHJXjOKrnspajFmQ3bNd_CYq8BYTTScwcl4mqaGR>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegfedgtdehucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu
 mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth
 htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu
 keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 himhgrsehsvggtrhgvthhsrghutggvrdhnvght
X-ME-Proxy: <xmx:lGk8YfJ8TVdrJpWSdJXxqv26Ogq9ip5_4d2z4mkPlXQI1Uxs-fy8Sg>
 <xmx:lGk8YWJjmxG_UDVRFnIs8C3yE3ElSi0gLgEaVbvc6im_2b4j2RWVIA>
 <xmx:lGk8YQz5sTWtpCV15is4eo_ptmBe2hCfndeLlz_7DvRg5dyIXFT1Ag>
 <xmx:lGk8YQw6xKYdNy7R3wJ0rVYcLqSp0SHnyMnaSuHtFRU4chNDR24d-g>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 11 Sep 2021 04:32:19 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN> <875ywdquds.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <875ywdquds.fsf@HIDDEN>
Date: Sat, 11 Sep 2021 01:32:27 -0700
Message-ID: <87pmtfjyw4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 10 Aug 2021 13:53:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 10 09:53:03 2021
Received: from localhost ([127.0.0.1]:58803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mDSBj-00078E-B6
	for submit <at> debbugs.gnu.org; Tue, 10 Aug 2021 09:53:03 -0400
Received: from mout.gmx.net ([212.227.17.21]:53241)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mDSBe-00077f-Rt
 for 49954 <at> debbugs.gnu.org; Tue, 10 Aug 2021 09:53:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1628603569;
 bh=mQvZ/B2LNuDrn5RD3w9NN+JmHJizSYxGW1iwtDHGTpg=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=Fxqkcgjn15gtjR3bpghEl+PNDHnHMMFXX0WAH2A5bsUTQoxdVIVQQ2MUv1JAdZ0Sd
 r9cVl/5Ic5PMGyFF4IG9MBooaQVLG4DMbdGEgf7u4ZkIYCf6AZ2XLQREDFiYERA298
 iHFZTaY0nQ+y4CY8e6tBAo5pyPSA3DipnCxrJrIQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.147.198]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9Wuq-1mAAOT1Ri8-005d0C; Tue, 10
 Aug 2021 15:52:49 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
 <874kby7wn5.fsf@HIDDEN>
Date: Tue, 10 Aug 2021 15:52:47 +0200
In-Reply-To: <874kby7wn5.fsf@HIDDEN> (Dima Kogan's message of "Mon,
 09 Aug 2021 21:26:38 -0700")
Message-ID: <875ywdquds.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:ipxtwv8ivUWckEwWuSq0agHSl7BWCI0LlEdy5zB8kjw4RLO69C7
 07rNKA+m2VYCOtMXrntHFC8f9O1TBpuZFQksXJWrh0c8K2MQdVxek81gUPqVPGXD0nWYgsQ
 h4qo31SUL7Et0V849MjOQexdrJgDTF4wMQzxCjMF2ZglPrkNq3jOlQwetyqCjYJ/hUsUkkU
 9PVO+i6+vQet0a73Agomg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:2Z3Sib9qaPc=:3skVxbhMHHaAQalLL2n76o
 QiTamzz+5MZIt0zmQ44U2w6/siNHVG8m5+beiVuXiQDYgIIEM3PQxXgjgfgIlCO++ZzPtw+wD
 bVMNOfsDyvum+MY2zEdn848/SdO+TH5GB3ZvCiYLkW9LNkRlv7t50HOE1aVwryYQw2zFkhYb4
 ayPPnQM+Lpj+NFxWcg4EAqURZi0UE0CTPpc8jobx1jYvre/GuY0MUePK3VoqVv/TD7vJLl5XW
 wKWqubodM7l9ZjFEM+LRNEazTsiVUL1eR6PgC14m47y5DYfnGxfUmqKtFzsvTSo4kaFgsLtjk
 ZJA+fd04deyT+CQ8C76+ZuemC8d29FlcEP851a4sl3ZBqC1B6SEKFX1MHv9C27uUOVN1AunNy
 CVJNB/CbiwnQN670rvEHNg5bmh8qKoHwVmHjJe4V9TVqv3PT3xUss0yRlHR4EzVzwNK4kvBg1
 hmEDejdmGLkoi41SWRCOco7UUvm6/ZELohVK7MQUXv6ZYEokighHfjlvl43p1wLdw9JghXzMy
 T5jPlPJNrVIF5fY3gXuVCGuahf1SV2xEfgDpbCUWlplBdb2Htf7Z8MH7SKTDmel4cr7iKWAJ/
 W/i+Rv2nGeb1iSpJ3zL29jDzmvNHVCpKanf3+56SI7X+ibBtVApaRbPCn1sqDggcz5VLAZ6aN
 SNXAB8KRFBDI8SQOP+inv26As4HDR/oq4BGk3VJ1mJwNQsr/FEPEwVwC2+5B17eBZmnfxZOsR
 6cvmyRsSqZbkPxCWpMI0rHIM7qOojIE579eACBT2/3yifP+Rgcp2P/rAuwjiywAvU59fVwUca
 n/VMlKVbmD3vR2rTJ5HjgEYArEz7MG2MSS+j+V+0cVDl16UWOMxUkfmWUdDmv5vkYDAln2jrB
 j4GUtz9CaXCbN43HI+0CyRgVvNiHWgdp/LMQi5YvWG+91CrE6N/EDAvsE7CEE+qPyNprdGoc3
 A85YeedV8nGKb0vHmU5LVxyyQT4wMwI1vPPFRRosNOxQvrwBMwTk/aT8VtsCucH5OlTy7Lo3l
 ZDw98Cx3vyMfX3F2ccyDprC221Jdb9CAxD6LOSEI2SOcaDoQ/TsmWFPl3ax+Dd9reb1rbxas1
 /uUcJ2RzhTqzH/Iy2r2sLJcsx70MHo0ZbiJu7tJbnrLmj9lDnWWxhI9Mg==
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dima Kogan <dima@HIDDEN> writes:

> Hi Michael.

Hi Dima,

> I did some debugging, and it appears that the tramp property-caching
> mechanism is failing. We exit the (with-tramp-locked-connection ...)
> form, but when we try to enter the next (with-tramp-locked-connection
> ...) form, it looks locked because
>
> (tramp-get-connection-property proc "locked" nil)
>
> is evaluating to t. I instrumented (tramp-get-connection-property), and
> I can see that this t comes from the property cache. I can "fix" the bug
> by removing the
>
>     (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))
>
> form from (tramp-get-connection-property)
>
> Can I get the intent of this form? Are you trying to use this form if
> the process is alive, or if the process is dead? My process is very much
> alive, so this form is being used. Is this what we want?

No, I believe the mechanism is working correctly. A lock is placed on
the connection process of Tramp, and it is kept until the related
operation has finished. The process is expected to be alive, the
additional check of process-live-p is just a reassurance.

> If it is what we want, then the cached value of t is the problem. I
> haven't looked into why that's happening yet.

The problem is the following: Tramp sends a (shell) command to the
remote host, and waits for the reply. This must be atomic, no other
command shall be sent in parallel, in order to get the proper reply.

If there is asynchronous code running, from a timer, a process filter or
sentinel, or process interrupt, this can happen: a second command is
sent, while the other command didn't get its reply yet. The macro
with-tramp-locked-connection shall protect us in this case, and it
raises the respective error. That's not a perfect solution. A better way
would do use threads with mutexes, so that the second command can wait
until the first command got its reply. Something like this needs to be
implemented.

> Thanks!

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 10 Aug 2021 04:26:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 10 00:26:50 2021
Received: from localhost ([127.0.0.1]:58184 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mDJLm-0007Tl-G2
	for submit <at> debbugs.gnu.org; Tue, 10 Aug 2021 00:26:50 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:58053)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mDJLj-0007TV-Ij
 for 49954 <at> debbugs.gnu.org; Tue, 10 Aug 2021 00:26:49 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.west.internal (Postfix) with ESMTP id 5D609320024A;
 Tue, 10 Aug 2021 00:26:41 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Tue, 10 Aug 2021 00:26:41 -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=2LhiVjNekSL/Z9/WePaWCSRAl1
 dC8qdaYRGw5Fts4iI=; b=fVZm4R1LNr6qUybeNeRubvzFT8n4U720JzJuN+Fe20
 NNYErt7b5V2t4obdss6aOWjoQZqy+3E3w3Ibh9iYNkuVO0t2UWtaexhS2y833YAg
 enJvfOxP6OBYcXQ7+mgBW1YOYZBUu1UCtusyZ3RaXtt8a3N9zZoVq76dMSoX3h4h
 qRlvkdnFBtg2rZzP/fW/trraO+kxF7TaT2giftuknB1128quss9JUWFnRc8oMQ0g
 yZPRbCKctB37kjS1aZkfwtAAV700+ued/TR15EWH8dvRfnBQby1nVfF+LiCMx9cq
 mOxibalfAYL5sCmmk+ycak/mHhK6ijyRGA+yLF1+sHTQ==
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=2LhiVj
 NekSL/Z9/WePaWCSRAl1dC8qdaYRGw5Fts4iI=; b=j9DGrd0M9bEo5IK5gT03i9
 SeukhlNm8DX2inQHFV9+e8EQkTqu2V9SUo8qer/iho9uMsYA3wknxpTqJR13pMkw
 ySabIGoR1VCTFOqiA8sIQyz24hHz/jbEK9nJa/CIPfrs+J7R+8yJVDuanCufGGWd
 ixfrWMUqH9EGxGDd8hD9dcqKISU9UQ0LuKcgLvJ/t4d2pr+9ozt1EOaH1qP++P1e
 bP3+JsB53IIKGfWRWZ05oQdhu6mpCx1HW5MDEvVYf17GQPynsGVSEgB+ZsciWQH1
 WkYJgtop+dihpd/8cDeoiCGVQeH26NjyQuAEp1ASrzDwbMr1Pm+NimO5fOf1A56Q
 ==
X-ME-Sender: <xms:AAASYSfcJPtZqTWfcAaJjjYxvH1T_cC3gV7F3xM40arDUEszbnH6gw>
 <xme:AAASYcPiZhos7OIftTL1u_Y8qx-7etd9QOQ4dyscO0wAe0WIUKX9py2sN3fE4UPXC
 6O0ytYXqkfJVSTS>
X-ME-Received: <xmr:AAASYTgXrsqurNh995L51hx9yzYTUS6HX_qRZAZTgguvynz2ahaVp2jj7Ut_lbaHxOl57w0bSiADlV92dH4lEVb3alVTCpFrWsOOzjnRBXz7rDk0Yb0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeekgdekgecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgrucfm
 ohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtth
 gvrhhnpeefveefgfettdefvdetgfekvddtffevhfevleelhfejheelgfduffdtieduueek
 heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguih
 hmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:AAASYf-ef_EkmDlSHKAAXGD5uH4G_lxEvzFW5vyiFAdYgY16sEMxjA>
 <xmx:AAASYeuQh2064EGgUUqOpcrWo_FWujleI6NhPTb4fxtwGuhLL-y1Kw>
 <xmx:AAASYWFydlLogVywCPa3FGYbfZm1eOm8phFDgwF1UokJq217BF_U0A>
 <xmx:AQASYU3jQYzG-uc6ny7QPTBomTwhPeVjgiOn-Mv-Q-MLatn_10QXSw>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 10 Aug 2021 00:26:40 -0400 (EDT)
References: <875ywf9ea7.fsf@HIDDEN> <871r72ssqi.fsf@HIDDEN>
User-agent: mu4e 1.4.15; emacs 28.0.50
From: Dima Kogan <dima@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
In-reply-to: <871r72ssqi.fsf@HIDDEN>
Date: Mon, 09 Aug 2021 21:26:38 -0700
Message-ID: <874kby7wn5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Michael. There's no rush to work on this. I'll reply here for
whenever you get around to looking at it.

I did some debugging, and it appears that the tramp property-caching
mechanism is failing. We exit the (with-tramp-locked-connection ...)
form, but when we try to enter the next (with-tramp-locked-connection
...) form, it looks locked because

(tramp-get-connection-property proc "locked" nil)

is evaluating to t. I instrumented (tramp-get-connection-property), and
I can see that this t comes from the property cache. I can "fix" the bug
by removing the

    (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))

form from (tramp-get-connection-property)

Can I get the intent of this form? Are you trying to use this form if
the process is alive, or if the process is dead? My process is very much
alive, so this form is being used. Is this what we want?

If it is what we want, then the cached value of t is the problem. I
haven't looked into why that's happening yet.

Thanks!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at 49954 <at> debbugs.gnu.org:


Received: (at 49954) by debbugs.gnu.org; 9 Aug 2021 12:33:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 09 08:33:23 2021
Received: from localhost ([127.0.0.1]:56270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mD4T5-0004Fw-IU
	for submit <at> debbugs.gnu.org; Mon, 09 Aug 2021 08:33:23 -0400
Received: from mout.gmx.net ([212.227.15.19]:47315)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1mD4T2-0004Fh-4v
 for 49954 <at> debbugs.gnu.org; Mon, 09 Aug 2021 08:33:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1628512391;
 bh=0tCg7iGwyFYFKX23kN28POzTfNEXITMZZHmWVzYgSVw=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=ggrR7u3vFe3SZgvsMFDQnzIi53yLvhcTXLZFKULhX9hq6mSK462FblBOL+OKRKABd
 HXRlafsLa72DCZcCR5Ly+3F3H4xLu9qpmQH+UHqEJsTYXVq2nWLmdRNL1jTXkExCX/
 ww8fyIgvLAnK5aPi4gjkrwWpwu7KxJSqmkMtdnKY=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([212.91.238.138]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N2V4P-1nGQhd3clD-013vUJ; Mon, 09
 Aug 2021 14:33:11 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Dima Kogan <dima@HIDDEN>
Subject: Re: bug#49954: 28.0.50; TRAMP: cannot kill child processes:
 "Forbidden reentrant call of Tramp"
References: <875ywf9ea7.fsf@HIDDEN>
Date: Mon, 09 Aug 2021 14:33:09 +0200
In-Reply-To: <875ywf9ea7.fsf@HIDDEN> (Dima Kogan's message of "Mon,
 09 Aug 2021 02:08:00 -0700")
Message-ID: <871r72ssqi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:go6eKnGfIyL8iDSO5JlCs8RgCCyeExvK7wyrRpZT8t5zHnVjwg0
 CT+f2wFHYt980CyxD4NplD/ay0qub+GM7Jbn6k1JaYAVsvkWSpundYHB6uFckRO1LPDbiC2
 q1M25/9An9OBAZ3v7RY9/Jt2U9SQRyzsomlxsqBMc/KFwP5Gk9lWN9eSVT7p9XNj78oSx5/
 0mZNWvqL2z9YNqmj0q9LA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:cLCbWLIb8nM=:HjSpnz3lohnGBh+XeGVU6X
 oyLqlpz37OSB9qDt0m7yEo8BL+t2kCravEsCOxtbG7B802ckgrg/ByxmOxrqBycAn07uu7OHo
 AC4YtucqblDMREwCDBR98oTg/sfbnyLqbbU5jxAH205SOXvzsyq1GiBpjZH6ybVKK1joj0XJd
 GgkJ5AXhP+/2WtHwCWMrdMiyeZGlTXzOfPUtDyO9Dui7DAHvgHgE/IOarEktdXNbVk8waqnoI
 B5dxaESmfFETBPENX/o7zk2t3rYpAIZR+UqCL/MJDt6eHyS5/lSXccZFdLlftomFvIlSjWbB0
 yS7dQ2YfakRM5XqSLKphyUtTHcjU7HnLVjXbx0Ems3mdGgahL8htIfC38iOelvph4stApH3sY
 QycMOHzsCmprdUFxdugBDxsD0x43NBdy5lhOAH51o7hK+3miRGWFwUJYZWHG8EH7Xivtn7/Im
 /SHKyjUvgGbb3BuMw3rwfbmOndMDzpVb39jP5aaDYCDufJRg7ucb/jAphD6/qrQKkqedc/2jq
 9zG/OUk6Qkq/t+P06kqA9seMD8mJQNOLTZ9u5uPi3rXnUolUrCdjgEB5u4PKIMSoszNv9oK1k
 mWUWHW06VG7dQS0LYgzOQ2OixdYKGOazCRKFpUoxoG61HF4djK4CMQPQx7XI9oWJP6jDEQoXN
 6OEIIGC5OSe+b2lGcUEQdQWsSrERVk/ynIlFV63iRixYYdFGa/C8aDEaDYdl2AzgCyzbSyDef
 w6Yh1Y7Eb+kbXQj2lwVmoR0Brnne6Rkf/MsWm7VrkGMuIHbl6P4PX/EJ8fTUtY9QFGIXHgxWM
 UiWE9O3G9z2STtnDDldeeeWyAC+Wcso6F5OfpGUrcZlKbY0FDmwvXswdhnMbPHqcDdh3BBCU6
 4TpZHznKRjxVkOQ6qhBXke4aNkQYIqKsA23MpcWLMu4Oqb8Mv3OgLJHT9MYViw4jvijkIsbNU
 8mdTbDMZAQgrWzrli/I6VNnHL5kTwdQ72Buc30/N5iqcmxPoW4pamaAj2tgc9Uv/PjyDzkVhB
 Bh57sqbCg6twtkHV19vwksaYt070j5ygP0hfLNSQjsjFqg8A1gHxutuaDp9jWOXHXvIAVRwPj
 dsLseJO4H+XLgAPnr0yEdMSOyVZie9qqEGWP6uPQSVvxXQ3E3awraJJAw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49954
Cc: 49954 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Dima Kogan <dima@HIDDEN> writes:

> Hi.

Hi Dima,

> I don't know how it's unlocked. Debugging suggestions? Should I just add
> more diagnostics in every lock/unlock path? Do we think this may be
> fixed in the latest emacs?

This error message has been added to Tramp 2.5 in order to get more
diagnostics when the problem happens. It is an indication that a remote
opeation has been started asynchronously, from a timer, a process filter
or sentinel, or other asynchronous invocation (like interrupt process).

I don't believe it has been fixed yet in Emacs master, I haven't done
anything in this area for weeks. I'll try to fix your use case, but it
might take time - these days I'm occupied otherwise. Holiday season.

See the respective entry in Tramp's FAQ (info "(tramp) Frequently Asked Questions")

See also the discussion on the Tramp ML
<https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=forbidden&submit=Search%21&idxname=tramp-devel&max=20&result=normal&sort=score>

> Thanks!

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 09:08:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 09 05:08:13 2021
Received: from localhost ([127.0.0.1]:55728 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mD1GX-0000cV-28
	for submit <at> debbugs.gnu.org; Mon, 09 Aug 2021 05:08:13 -0400
Received: from lists.gnu.org ([209.51.188.17]:33808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dima@HIDDEN>) id 1mD1GT-0000cK-Dq
 for submit <at> debbugs.gnu.org; Mon, 09 Aug 2021 05:08:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36528)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dima@HIDDEN>)
 id 1mD1GT-00041s-1Z
 for bug-gnu-emacs@HIDDEN; Mon, 09 Aug 2021 05:08:09 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:40589)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dima@HIDDEN>)
 id 1mD1GQ-0006Bs-FD
 for bug-gnu-emacs@HIDDEN; Mon, 09 Aug 2021 05:08:08 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id EB26D32004CE
 for <bug-gnu-emacs@HIDDEN>; Mon,  9 Aug 2021 05:08:02 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute4.internal (MEProxy); Mon, 09 Aug 2021 05:08:03 -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=
 fm1; bh=yHifl772bQoXdaZ8A5RxZ4iZhRqKC7tzt8mI7kh775M=; b=Hj254fH3
 W8O6MkEaZFu1UFBj3NDxYJuZheesWd9p/cROzwc9L8P/CQWjInurP5Vm1fxxU8Wc
 wpAUUIM7isnljGIUn/rUcl1pQwK1U4NfBLEQ/vONJhk9HcLCbfY1y5GLykcXm+iI
 NNczne8XKo/nThP2bHkcK9gQX0o8XtWVDET2M8lVVP2P1VBTZEEbLAtsmgB+WLsG
 6iPDyiOsYCmE7mtsA9A3x66eREyKmvMms+9zP3u++LXHBCCO5ohkl/zCQ8FNn2Vs
 BkO415Klyf0v5L8HopP7hCmH3js8hUDXeXMvbTX/SlkwHioeAnbNMBgTkayluHJ5
 CXH0Kzb4Rwh4Ng==
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=fm3; bh=yHifl772bQoXdaZ8A5RxZ4iZhRqKC
 7tzt8mI7kh775M=; b=A3V3CqRIXP+AZpu6NO27AP8MSDMS3HhykzliOKtiAmTSR
 sRU1TDmy0TsTzCXedu/WbhMEMCJaz0N7cZNpDI/PM3G7GnCWRewppFdEWXyKptSs
 ARewOXoNmtwJ04A5Cde4a6cbdnJZQD2tSKra9niexNmGvQ57V8Z3f50ZByj/pG20
 zN8fawbwCpxmLw7MkSUe9wv8lIne4LdmmnRcRPzrUJlj5Fjijv+FRghS/haPG9mX
 GUegtXJpKABaSQolcIu+kP/UaxyNm70p4i9q/cEzjG0QYknMzHKS2Rq98qxBffj0
 0Y6jO3GO1MmBn0B7eUk/P28bWPsNcSy+TouHl1fFA==
X-ME-Sender: <xms:cvAQYbHqRNKFBxjuXLInfmHCpGcCxabj8_BD4O5y_jFITF9RhaqJ-g>
 <xme:cvAQYYUPVZMILgeHWlHrerlbRRJAl9_HeVK4urmZBGSDYGDqr7tNKH6k3excRAS1E
 cLW5JRgRGk8j3sn>
X-ME-Received: <xmr:cvAQYdJxJcPG4KsSkWKjQMuz2YhSFUORxnm17dWYfyUsZjJxYPQLcPOFBHyVIr8SphIaQwBygdpqKCjO1ZZr8JNwq-m4dHaKdY37JGfBut3X-WhKPEM>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeejgdduvdcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddttd
 enucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggv
 rdhnvghtqeenucggtffrrghtthgvrhhnpeffvdffudfhkeffhfeifefhffdvtdfgfeejve
 euvdefudejjeduveeftdeggeeuvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr
 mhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvth
X-ME-Proxy: <xmx:cvAQYZGOrwl1EAD2v1q-PWywHrzC7KYjJg7tbL5ohvKvzRbK2yptaw>
 <xmx:cvAQYRW-xUEM8p-Mw--kXazFq4vjbXWZKscy6enHu0YvqBVTc_ilkw>
 <xmx:cvAQYUNpO5zMO48MvHeJ1sBr6sFGlLA7YMy4c4-bYgoScu5MC_MUjg>
 <xmx:cvAQYQDOlxt0Jgr7a_kTbmvBW4eSPz4xgdrYmjS66GQYSlSeSJXwBw>
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Mon, 9 Aug 2021 05:08:02 -0400 (EDT)
From: Dima Kogan <dima@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; TRAMP: cannot kill child processes: "Forbidden reentrant
 call of Tramp"
Date: Mon, 09 Aug 2021 02:08:00 -0700
Message-ID: <875ywf9ea7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.147.123.21; envelope-from=dima@HIDDEN;
 helo=wout5-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hi. I see this problem often in everyday use of emacs, but every time I
try to construct a reliable reproducing recipe, it always works ok, so
some of this report is a request for debugging help.

I've seen this sort of bug for years, so probably it exists in the
latest emacs. Today I'm seeing it in a build from a few weeks ago:
553ad9c9e85 built on 20210716. I don't know how to reproduce in the
latest emacs. In the session I have running (from the 20210716 build) I
have a shell buffer that shows the problem 100% of the time. New shell
buffers do not show this problem.

A recipe that should work:

1. emacs
   Run emacs. Possibly my config is triggering it. I don't know

2. C-x C-f /ssh:server:
   Open a remote TRAMP connection

3. M-x shell
   Open a remote shell

4. cat
   Run a "cat" command in the remote shell

5. C-c C-c
   kill the "cat"

In fresh emacs sessions and fresh shell buffers this works fine: the
"cat" process is killed and we get back to the prompt. Something happens
with older shell buffers where the child process is NOT killed, and
emacs complains with "Forbidden reentrant call of Tramp"

I just tried to (setq tramp-verbose 10) to get a debug log of the
failure. It says this:

  ;; Emacs: 28.0.50 Tramp: 2.5.1 -*- mode: outline; coding: utf-8; -*-
  ;; Location: /usr/share/emacs/28.0.50/lisp/net/tramp.el.gz Git: /
  01:49:39.391745 tramp-interrupt-process (5) # Interrupt process shell<6> with pid 3705628
  01:49:39.391864 tramp-get-connection-property (7) # null-device /dev/null; cache used: t
  01:49:39.391946 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.392019 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.392089 tramp-get-connection-property (7) # process-buffer nil; cache used: nil
  01:49:39.392180 tramp-get-connection-property (7) # last-cmd-time (24848 60388 520023 896000); cache used: t
  01:49:39.392262 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.392325 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
  01:49:39.392385 tramp-send-command (6) # echo are you awake
  01:49:39.392447 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.392509 tramp-get-connection-property (7) # chunksize 0; cache used: t
  01:49:39.392573 tramp-set-connection-property (7) # last-cmd-time (24848 60451 392543 712000)
  01:49:39.392637 tramp-send-string (10) # echo are you awake
  01:49:39.392698 tramp-get-connection-property (7) # process-buffer nil; cache used: nil
  01:49:39.392775 tramp-get-connection-property (7) # locked nil; cache used: nil
  01:49:39.392828 tramp-set-connection-property (7) # locked t
  01:49:39.392912 tramp-flush-connection-property (7) # locked
  01:49:39.392981 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.393036 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.393120 tramp-get-connection-property (7) # locked nil; cache used: nil
  01:49:39.393173 tramp-set-connection-property (7) # locked t
  01:49:39.441305 tramp-accept-process-output (10) # *tramp/ssh fatty* nil run t
  are you awake
  ///66c246702753a7fa497f74164e69b140#$
  01:49:39.441619 tramp-flush-connection-property (7) # locked
  01:49:39.441783 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.441931 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.442103 tramp-wait-for-regexp (6) # 
  are you awake
  ///66c246702753a7fa497f74164e69b140#$
  01:49:39.442387 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.442556 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
  01:49:39.442710 tramp-send-command (6) # (\kill -2 -3705628 || \kill -2 3705628) 2>/dev/null
  01:49:39.442872 tramp-get-connection-property (7) # process-name nil; cache used: nil
  01:49:39.443034 tramp-get-connection-property (7) # chunksize 0; cache used: t
  01:49:39.443204 tramp-set-connection-property (7) # last-cmd-time (24848 60451 443130 172000)
  01:49:39.443376 tramp-send-string (10) # (\kill -2 -3705628 || \kill -2 3705628) 2>/dev/null
  01:49:39.443589 tramp-get-connection-property (7) # process-buffer nil; cache used: nil
  01:49:39.443792 tramp-get-connection-property (7) # locked nil; cache used: nil
  01:49:39.443936 tramp-set-connection-property (7) # locked t
  01:49:39.444124 tramp-flush-connection-property (7) # locked
  01:49:39.444293 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.444433 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.444579 tramp-get-connection-property (7) # locked nil; cache used: nil
  01:49:39.444719 tramp-set-connection-property (7) # locked t
  01:49:39.493255 tramp-accept-process-output (10) # *tramp/ssh fatty* nil run t
  ///66c246702753a7fa497f74164e69b140#$
  01:49:39.493535 tramp-flush-connection-property (7) # locked
  01:49:39.493687 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.493835 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
  01:49:39.494001 tramp-wait-for-regexp (6) # 
  ///66c246702753a7fa497f74164e69b140#$
  01:49:39.494263 tramp-get-connection-property (7) # locked t; cache used: t
  01:49:39.512596 tramp-accept-process-output (10) # 
    backtrace()
    tramp-error(#<process shell<6>> remote-file-error "Forbidden reentrant call of Tramp")
    tramp-accept-process-output(#<process shell<6>> 0)
    tramp-interrupt-process(nil t)
    comint-interrupt-subjob()
    funcall-interactively(comint-interrupt-subjob)
    command-execute(comint-interrupt-subjob)
  01:49:41.733242 tramp-accept-process-output


If I open a fresh shell in the same emacs session, it works OK. That
debug log is similar, except the last tramp-get-connection-property line says:

  01:48:36.571873 tramp-get-connection-property (7) # locked nil; cache used: nil

I don't know how it's unlocked. Debugging suggestions? Should I just add
more diagnostics in every lock/unlock path? Do we think this may be
fixed in the latest emacs?

Thanks!




Acknowledgement sent to Dima Kogan <dima@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#49954; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 17 Feb 2023 09:45:02 UTC

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