From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49954: bug#60534: 28.2; Forbidden reentrant call of Tramp Date: Tue, 17 Dec 2024 04:05:22 +0530 Message-ID: <86frmnb6j9.fsf_-_@gmx.net> 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> Reply-To: James Thomas Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27547"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dima Kogan , 49954@debbugs.gnu.org, 60534@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 23:36:16 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 1tNJhH-00070D-Ox for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 23:36:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNJhB-00069f-S4; Mon, 16 Dec 2024 17:36:09 -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 1tNJh5-000695-Hw for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:36:03 -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 1tNJh5-0002oY-9W for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:36:03 -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=RDqboM+e8/ki8R7iyaiNbAHB26N6maNtfySrEUvvQCQ=; b=dUe378de60p3e6jIK+NxS03vImb8yLOqpW/ApB9LM1lY0auUECxwhlTX3/qSmP6vdsZaiAZVVVE+WeWEJRVkFG0FqG/ND3j3vRl0g4hv35g8fZVWDLRhwIfwYqS+3IorHyPa5d5+Ib2yYs0fDx9vCmmrwuxiHf2gs1Mp7SCM+U1Z82WJK5eY1fSBIOpO4IapaIcCUNv5QDf4jE+t/DVuqk3SuKXo+0MPu3+IR3CyFzqjsj+8FSCSZW5XRqgKhmP5Isrpt/x8c/dBnuw8C80ubhl96xNmlqCWJ3P+Oo3zNc6NSxuc6Sk64FwdnUNWS2GXdcZgF5DZzkj6H3zVVHxC/Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNJh4-0006Iv-4X for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: James Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49954 X-GNU-PR-Package: emacs Original-Received: via spool by 49954-submit@debbugs.gnu.org id=B49954.173438855124204 (code B ref 49954); Mon, 16 Dec 2024 22:36:02 +0000 Original-Received: (at 49954) by debbugs.gnu.org; 16 Dec 2024 22:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:56625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNJgs-0006IJ-So for submit@debbugs.gnu.org; Mon, 16 Dec 2024 17:35:51 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:35761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNJgq-0006Hy-C5; Mon, 16 Dec 2024 17:35:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1734388539; x=1734993339; i=jimjoe@gmx.net; bh=RDqboM+e8/ki8R7iyaiNbAHB26N6maNtfySrEUvvQCQ=; 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=mN7rsc1yTpG2XmXnnFo7052QJ1A0fvWReYwSBZ6fvYVYjAF+s5xHNgFOAg7sCjzc PzTipmEz85ilGY+oZOJBj+06Ct1sbSY3IV3+RnSUkxgj3QIQB6t4WrQQuOLdJmoWP f3i+PCt8I+N1qehrd2+jsN46Q0xx6bJLIvdROAnGFvV5AH+QTKz7HmRH7yv5oT07+ mg99lqFtB78DktO0p2u325kfXOL2Za0+NyHLEPvX5gGGNb11XZlYGRaZt9EdrnRq6 D+Tz/Px4s7Hmdnne27FdEFa6IA2H5yK6Kd+0oIJbAiU+9L4qGz4RwX8G7ACJaAZUA XlYn5jRJAPqOGmnNwg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-3493 ([42.104.189.162]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M89Gt-1tSYTh1fYx-0065vX; Mon, 16 Dec 2024 23:35:39 +0100 In-Reply-To: <878s03s3t1.fsf@gmx.de> (Michael Albinus's message of "Sat, 11 Sep 2021 14:19:06 +0200") X-Provags-ID: V03:K1:+iMeaQkCcHLvLS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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:297237 Archived-At: Michael Albinus wrote: > 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. (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"? Regards, James