From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60534: 28.2; Forbidden reentrant call of Tramp Date: Tue, 17 Dec 2024 09:29:36 +0100 Message-ID: <87o71an24v.fsf@gmx.de> References: <875ywf9ea7.fsf@secretsauce.net> <871r72ssqi.fsf@gmx.de> <874kby7wn5.fsf@secretsauce.net> <875ywdquds.fsf@gmx.de> <87pmtfjyw4.fsf@secretsauce.net> <878s03s3t1.fsf@gmx.de> <86frmnb6j9.fsf_-_@gmx.net> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4938"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dima Kogan , 49954@debbugs.gnu.org, 60534@debbugs.gnu.org To: James Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 17 09:30:15 2024 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 1tNSy7-000180-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Dec 2024 09:30:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNSxz-0000j8-Oy; Tue, 17 Dec 2024 03:30:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNSxy-0000iJ-AV for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 03:30:06 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNSxy-0004EY-0y for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 03:30:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=42LKFyYcjMbt8YkMaT9SqA9uiz8+IYUhtdbtMMWZ7U0=; b=JqrR9+9UsN47dI4U6agT7eQpjFpM2DMhYDiBF7wckEIAiKQAc6Ql+KVT51/48jU+9NfaTS69e2tbgm/a2cFUKin2DyCq+ZwxOJEsMB7LZuE6l3SDlCYHohXkNYo5uFJSDv99A7OF6H4KrGgbrrPwmp9fXJr7R8fSSq2Cg09B3stOrS25dNUOKph4DbYTzVCdtKZptz2aMDnkF5JXFj6n8m/iDFYQW9gB34o0Iem77rhC/lHs1EGRkBdJ4ytIG2em7C85rigmGiEibXdRNXANGyEhx1dFZTzDnNn1BKD7JWzyEfI4a7oNnHqctHHOoFryuDwPEhxObTQtckxOuYqTZQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNSxx-0001un-Ow for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2024 03:30:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2024 08:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60534 X-GNU-PR-Package: emacs Original-Received: via spool by 60534-submit@debbugs.gnu.org id=B60534.17344241917222 (code B ref 60534); Tue, 17 Dec 2024 08:30:05 +0000 Original-Received: (at 60534) by debbugs.gnu.org; 17 Dec 2024 08:29:51 +0000 Original-Received: from localhost ([127.0.0.1]:57441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNSxi-0001sO-Jv for submit@debbugs.gnu.org; Tue, 17 Dec 2024 03:29:50 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:41881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNSxg-0001s5-Kv; Tue, 17 Dec 2024 03:29:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1734424179; x=1735028979; i=michael.albinus@gmx.de; bh=42LKFyYcjMbt8YkMaT9SqA9uiz8+IYUhtdbtMMWZ7U0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=U14ylHG5beExgDy9++U/cLpQslO7v7mmQad4zzYcBlgCAxZ48ZLqqohGKzcq2KNO n2O7LojbOOoZcvbI6udj4ozwsNpmdb5Xk0BXZ35iIT9uvClDRPJvyXh/67HC7JZKZ ktFqdIYq6Yyo/BvJb8NEDn7WQc7sEAhVhrjWP1ffY/3gaAeUDMBWLrjyU7Xdve+11 L3VNmDXvsccjLal23sHHckGl9BaHBRdAorcLWSYz9yIYKK85te82Twlx1INQA0M7s qIZGlvMLePOXAa4d/JTrNbI6tcHmc+v91voukC5+MRZD8BYUBzyp6J2zWDEkQfzEV xXU7elqgq0uE4wykCA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MryXN-1ttAjW2gCr-00gQ9J; Tue, 17 Dec 2024 09:29:39 +0100 In-Reply-To: <86frmnb6j9.fsf_-_@gmx.net> (James Thomas's message of "Tue, 17 Dec 2024 04:05:22 +0530") X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A1OlMWP5XbIghCpH2FxlqZ0c7sefjoFWKYtHSspH 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297258 Archived-At: James Thomas writes: Hi James, >> 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. > > (This may be an ignorant question, but) if that's so, is it possible to > open a separate connection (perhaps with a ControlPath suffix, and > ControlPersist-ed) in the place of the "Forbidden reentrant call"? Not so simple. There is a serious overhead when opening a new connection, due to the handshaking actions. And it isn't clear to me how to keep two connections in sync, if (for example) the environment changes in one of the connections. Be it an environment variable, the current directory, the availability of a temp file, you name it. But yes, nobody has tried it yet. My preference is to use threads, so that one command in a process filter could wait until another command in the main thread has finished, as example. But the crucial point is, that you must activate threads in the beginning of a connection. When you detect, that there is a forbidded reentrant call, it is too late to activate threads. > Regards, > James Best regards, Michael.