GNU bug report logs - #60534
28.2; 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: Georgi Danov <georgi.danov@HIDDEN>; merged with #49954; dated Tue, 3 Jan 2023 23:57:02 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 60534 <at> debbugs.gnu.org:


Received: (at 60534) by debbugs.gnu.org; 17 Feb 2023 09:42:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 17 04:42:27 2023
Received: from localhost ([127.0.0.1]:38509 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pSxG7-0000Gg-KP
	for submit <at> debbugs.gnu.org; Fri, 17 Feb 2023 04:42:27 -0500
Received: from mout.gmx.net ([212.227.17.21]:43287)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1pSxG5-0000GS-Ut
 for 60534 <at> debbugs.gnu.org; Fri, 17 Feb 2023 04:42:26 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417;
 t=1676626939; i=michael.albinus@HIDDEN;
 bh=s2RpEkS8ZvKFPGyBFJ5SSD5/GFhL8BBOewoi7jZmCQI=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date;
 b=cJ0CsnW8EKepWBIblEIh2/Y0OvIXBBWjnyJ9xsiQiot+qDIoPo5J9UUEq3qqndYPl
 gFZvNmBfR976LL7nq9ZBfT9j4J97Mri9EhWj6SGK+Ma4tXbov0G9us9rhCTe971a6V
 0MfNUthdahHvOoJan1Sg1ecX+KLYXeEBQ77b9Xve5RVIFkcfmQQsUTxh8Jzo6s8jue
 UWCh3wLlgp8FKnuKD+QY8/UEOAIkLbc+/fU/BE2lQ7algIDaHzQ9B6QnBDNBDvtqAC
 Pd8P8lwU3ZnCNw8pH21AYlbtPM2HKe6HrAKOvqh9x4tnGHxbSHCqfbtVMq3X48E6Ab
 h3iG2OzECWk4Q==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNbkp-1pCfQ00BTf-00P3cv; Fri, 17
 Feb 2023 10:42:19 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Georgi Danov <georgi.danov@HIDDEN>
Subject: Re: bug#60534: 28.2; Forbidden reentrant call of Tramp
In-Reply-To: <AAD7DAAA-B9B6-414F-A3ED-D8004B80E22B@HIDDEN> (Georgi Danov's
 message of "Tue, 3 Jan 2023 21:52:36 +0100")
References: <AAD7DAAA-B9B6-414F-A3ED-D8004B80E22B@HIDDEN>
Date: Fri, 17 Feb 2023 10:42:17 +0100
Message-ID: <87zg9c7hmu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:yAp2AGs4grlBqqsJ2nTkRcRhupPMBycm408B+MzD1fgNP4Rpv3O
 UKBWd+UTgS3nrT1gCurC+qW9wVDvDHxt6q6WUWiNuWyUzHM39+KLcO04IHII1QkKuiv54dP
 M5FqRsevitbXHrOkqc7vNzX/+DhhizkG77u+Eyy6SA9w077122eX5oRK31E2K7zA2zg6HHd
 jugqPEYaO0aqXmZaiR3hA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:FH8DGmv4Sfk=;YuSglu7PPj0FaKgl7XLtKkhfPBd
 dZ34AS0DH3JGPbXSMCup7lOxK73cPvab+x82DjhZ/60xE77NwSHX9IXy4wRBBdU6PatFtpUbd
 YJwbuppz5QOJxQ8ddseLnCXylMupcV6MB1yCzBMGY5Jla7rrt3yx0b+6JWXniQzMiyehrfkRc
 lScBEkE7+x8mh49bHefZX8uiGENXZEPuuRQG33ch8++vD4cVmGZT+W/SKL9K5NJopHLgUmIIQ
 IX9M5ecKGsEW6Ohvf0jRmHuTH6L9BlatFtLnICUNkzeY6J4/5rNcupebnGiGgUdYf4/3VpSdg
 NkVQFBhOPUQxd5JqtpSj7C18boOwQfKTEhfKq/6Qpts5QCPkT519csA1VUCdM1Izr5U1lkXus
 h6jRX+FRDpoZUpo4Qga3ZUHFtzligY4akO0cAX5kyGK49a7Oh++qll83FjXMcqNhWDZla5Wbz
 qSIP6f6DcozMzEed1jHEDx8pdm3Cq9DUxJSEEqdsREGayAXcg/nD1WYa4D93yUS13BxLpAvDi
 igG5tymBUE7JuVd8cQaQOfTbCGxVdQ4FDulnt2daWrZavc2T9uCFREwQc78rCcuA59+dEqLs0
 D/RlxGhHJMiZsZi+J1IG+JOyf+MIZdBWA6/2qLrBwVKwQ7HA1xQK1mbqBz5UJz57C55fB5RnK
 eRR5GxtnL9kiZBwW0NmWx/scn4hgIsMvibMYNrNJxzlHhIIFFSiJNBkl/r2CygNIN/HUsqFm3
 dCpleu+F+TL86N9hW0QP1sOMhZrELxeSAu5HLU/mKlpGvrYO7O0L/jZde7WcytF2DOtUrKJhD
 xkmpKHuhDCofTBfDOTKo1uhg4CXhXhqIYIO3urnDTzQNd+Gu0axBhajqSDwWT17zzp6fQsaGD
 qZ9hTU9SqGe/hOu2hxRNYa2QNjR6ggxP7GtMgrt3lhfzlv5AxOxOLm2opZRoRKvytVZlyMydl
 SbuiWQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 60534
Cc: 60534 <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 (-)

Georgi Danov <georgi.danov@HIDDEN> writes:

Hi Georgi,

> As discussed in github issue
> https://github.com/joaotavora/eglot/issues/859# eglot over tramp throws
> "reentrant call" error. This is sympthom of underlying design issue -
>  aux libraries use files without being aware of the tramp conection, the
>  connection itself has no concurrency control, pooling or other
>  multi-user features and without that guard error different tramp clients
>  corrupt each other's communication with the language server.

Yes. This is a long standing problem in Tramp I have no solution
yet. Likely we need threading in Tramp for this, but this causes other
problems.

For the time being I merge this with bug#49954, which points to the same
problem (although with different symptoms).

Best regards, Michael.




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

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


Received: (at 60534) by debbugs.gnu.org; 4 Jan 2023 09:34:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 04 04:34:11 2023
Received: from localhost ([127.0.0.1]:47766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pD09z-00040Q-HR
	for submit <at> debbugs.gnu.org; Wed, 04 Jan 2023 04:34:11 -0500
Received: from mail-ej1-f42.google.com ([209.85.218.42]:41664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <georgi.danov@HIDDEN>) id 1pD09u-0003zk-ME
 for 60534 <at> debbugs.gnu.org; Wed, 04 Jan 2023 04:34:10 -0500
Received: by mail-ej1-f42.google.com with SMTP id u19so81137802ejm.8
 for <60534 <at> debbugs.gnu.org>; Wed, 04 Jan 2023 01:34:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=message-id:in-reply-to:to:references:date:subject:mime-version
 :content-transfer-encoding:from:from:to:cc:subject:date:message-id
 :reply-to; bh=WsmVNtalV7z2YotrJVafJQ+AkiyVxMKii/mA/n2Keno=;
 b=jPjZUjJOWg1Fg7xugw7qCE45e3DEKlqV04W5MTPjE+m3Zo595C7tmo3Pdw3QaAQSl5
 Q6OUOj/DqWTx4SAjsqrtx20Rk+3PDS680TuqjQ5KOGPkOCbW4sxkz062c0KadLJNRFEg
 X7eLDgzIVDxTKgg0b4bgSs/uRGOEp3CHdXnHmyoglSuX9jYlgCwVSqjWKLAbea6FJpYL
 p5xPYYPR263zoXWbyFR2jgJ+vIR7D3PoaqbUn3ahzxXSu7WTbln/4OJliJNgM3Ln2fHe
 LQQLUYFDYscIkJaqDnC0PqEt8n810oJc5z2jWdGetHqpnhoDONTENvWv21rPorWbEUty
 P0BA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=message-id:in-reply-to:to:references:date:subject:mime-version
 :content-transfer-encoding:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=WsmVNtalV7z2YotrJVafJQ+AkiyVxMKii/mA/n2Keno=;
 b=SZRtNurtrUh0yIgJJ+FNt/3Da4nrlxUB+xcQbCgOk1HNncjcMQzwnd9vnGQcHSP7Rb
 jrRgiDmB8jBTEDiijsosTWCgIJmGtxfxlsghoy9ubybRE07+o7xEykAWhbugC9/+j2Fk
 v7QDa5e+ZA4KpJuvqiRdp0Qn05ET8IUJKowP/k/ZFoLQTQDro9oWwdeN0ZCaFIohYBsC
 G2YfT/IwQsFuEsZoRyTsqyq6jfn7lBaZOb0iHU57gOtOk59k54UTjqiiHH2rD5Uy7QUr
 7dEn97sAYk025nx9jTr+FVLngpf9dUeN9K7h1SOVHl1V3zPxGAhTtVghtIRU97PMdaYR
 dZiA==
X-Gm-Message-State: AFqh2kommf9PVXbLcxYc2ah/JzZaIjvlcyPbeMh5V+suGxsNoHcRIm2R
 bhaTvgI9UjEHTsSuYseJ9oGbk2hfjLmZxQ==
X-Google-Smtp-Source: AMrXdXuARZgGEho9TgEJIvUEDchHOJUGR+9N8k8gQuej+JYVODqzwLX5wRFO50FTrgo/aA/dmltWYg==
X-Received: by 2002:a17:906:6dd4:b0:7c1:1fcf:266c with SMTP id
 j20-20020a1709066dd400b007c11fcf266cmr40093105ejt.14.1672824840285; 
 Wed, 04 Jan 2023 01:34:00 -0800 (PST)
Received: from smtpclient.apple (77.117.176.238.wireless.dyn.drei.com.
 [77.117.176.238]) by smtp.gmail.com with ESMTPSA id
 s8-20020a170906354800b007ad2da5668csm14940312eja.112.2023.01.04.01.33.59
 for <60534 <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 04 Jan 2023 01:33:59 -0800 (PST)
From: Georgi Danov <georgi.danov@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\))
Subject: Re: bug#60534: Acknowledgement (28.2; Forbidden reentrant call of
 Tramp)
Date: Wed, 4 Jan 2023 10:33:47 +0100
References: <AAD7DAAA-B9B6-414F-A3ED-D8004B80E22B@HIDDEN>
 <handler.60534.B.167279020325447.ack <at> debbugs.gnu.org>
To: 60534 <at> debbugs.gnu.org
In-Reply-To: <handler.60534.B.167279020325447.ack <at> debbugs.gnu.org>
Message-Id: <1998C4D1-AA30-4DF5-AB4B-95F82A10C4A3@HIDDEN>
X-Mailer: Apple Mail (2.3731.300.101.1.3)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60534
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 (-)

additional context: with the docker tramp the problem is reproduced much =
easier than with ssh tramp.

> On 04.01.2023, at 00:57, GNU bug Tracking System =
<help-debbugs@HIDDEN> wrote:
>=20
> Thank you for filing a new bug report with debbugs.gnu.org.
>=20
> This is an automatically generated reply to let you know your message
> has been received.
>=20
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>=20
> Your message has been sent to the package maintainer(s):
> bug-gnu-emacs@HIDDEN
>=20
> If you wish to submit further information on this problem, please
> send it to 60534 <at> debbugs.gnu.org.
>=20
> Please do not send mail to help-debbugs@HIDDEN unless you wish
> to report a problem with the Bug-tracking system.
>=20
> --=20
> 60534: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60534
> GNU Bug Tracking System
> Contact help-debbugs@HIDDEN with problems





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

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


Received: (at submit) by debbugs.gnu.org; 3 Jan 2023 23:56:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 03 18:56:43 2023
Received: from localhost ([127.0.0.1]:47091 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pCr98-0006cH-8f
	for submit <at> debbugs.gnu.org; Tue, 03 Jan 2023 18:56:43 -0500
Received: from lists.gnu.org ([209.51.188.17]:45428)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <georgi.danov@HIDDEN>) id 1pCoHI-0000t1-6Y
 for submit <at> debbugs.gnu.org; Tue, 03 Jan 2023 15:52:57 -0500
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 <georgi.danov@HIDDEN>)
 id 1pCoHH-0003pq-UF
 for bug-gnu-emacs@HIDDEN; Tue, 03 Jan 2023 15:52:55 -0500
Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <georgi.danov@HIDDEN>)
 id 1pCoHF-0007y5-9v
 for bug-gnu-emacs@HIDDEN; Tue, 03 Jan 2023 15:52:55 -0500
Received: by mail-wm1-x32c.google.com with SMTP id
 ay2-20020a05600c1e0200b003d22e3e796dso24622100wmb.0
 for <bug-gnu-emacs@HIDDEN>; Tue, 03 Jan 2023 12:52:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:from:to:cc:subject:date:message-id
 :reply-to; bh=Oc9SIISq6A//txLFijC/zGtz3WyIlv/dDt8RNYxKpHk=;
 b=dqQ/n05gh4TVBaF3zP3UUilrIs15cPRKKKlVC1abAXLk7aCVp6L9o+I7fTiI4yldZv
 WNu503DwRqOkbg2vZuEIcedygowYuzaTBUnAeD6OtnsUTC4PkbnoHfj4ljcPkG5BxjlO
 CyFvLl3PLjEDMyWoU6kqqlV5hG3n8srJ+M315GHbLp1yI7VFWW3LcNxwFhXDmyq0+ffF
 Y0edWb4Oy0WV3f+w45LBdePFSnIL7zWAZXzQiMADJcXcVEeerYBi0/Qcnwi2645bFOGs
 2Lbv5ntsI2E+9m3ae0g8FRi6Ib81LCZB7fJkl+5YiDGuR+YuS280yZIsEWtr/MDX3DuE
 xYmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=Oc9SIISq6A//txLFijC/zGtz3WyIlv/dDt8RNYxKpHk=;
 b=f7WTad5PHd2YsIgCwZw8Qf/dLrxn3e5AdjwLLesAnyyHQY6+W1TcaUiGvG2Eh9ZRD+
 RzcH+dPgrLRDn8egHhoHy7Sdn3V8B6QEr52TQnT0DUtDQl8y+SJoU9yhFfPMHZ4nzYCq
 Qx1SxLT04URGj0ezU7JBjLXaMFqZgJb8NoAsHg+3ynao10sw4P83hsdi2dEWSWMhFFld
 G+QcbHmx1Ct9IU2YgY9QKr5P1EvzZPajbmgWScnvTVNqSnDL6yjuO7Pq9IIN9+dYrqvH
 jc6TFI4ZNZtpVGahpYqB9WCb0orXOJsgCqrUfeWgMfOEOjsNQkSaywMcQmECJviAFYzi
 fCUg==
X-Gm-Message-State: AFqh2kr9evyKybhGlalYkWXfUKg3Oi0i5Tbbn8oRQBN2STUrV6xkrKkU
 B7BteUsqaIpOh6ROuClaixkqFJ7+Bpm/Lw==
X-Google-Smtp-Source: AMrXdXuvo84pWT0B8o+essO4HOoTjmyzB8Ggfm5B703vTdHcMPIoXmZ+5R7Bt6fw6jh7jfsDvntVrA==
X-Received: by 2002:a05:600c:3acd:b0:3d1:c354:77b6 with SMTP id
 d13-20020a05600c3acd00b003d1c35477b6mr35831390wms.29.1672779171013; 
 Tue, 03 Jan 2023 12:52:51 -0800 (PST)
Received: from smtpclient.apple (77.117.202.17.wireless.dyn.drei.com.
 [77.117.202.17]) by smtp.gmail.com with ESMTPSA id
 x7-20020a05600c188700b003d9aa76dc6asm15975730wmp.0.2023.01.03.12.52.49
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 03 Jan 2023 12:52:50 -0800 (PST)
From: Georgi Danov <georgi.danov@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\))
Subject: 28.2; Forbidden reentrant call of Tramp
Message-Id: <AAD7DAAA-B9B6-414F-A3ED-D8004B80E22B@HIDDEN>
Date: Tue, 3 Jan 2023 21:52:36 +0100
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3731.300.101.1.3)
Received-SPF: pass client-ip=2a00:1450:4864:20::32c;
 envelope-from=georgi.danov@HIDDEN; helo=mail-wm1-x32c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 03 Jan 2023 18:56:39 -0500
Cc: michael.albinus@HIDDEN
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.3 (--)


As discussed in github issue
https://github.com/joaotavora/eglot/issues/859# eglot over tramp throws
"reentrant call" error. This is sympthom of underlying design issue -
 aux libraries use files without being aware of the tramp conection, the
 connection itself has no concurrency control, pooling or other
 multi-user features and without that guard error different tramp =
clients
 corrupt each other's communication with the language server.

The problem is reproducible by using company mode, probably the language
is not important. In my case it's typescript. Takes 15-30 seconds of
editing and autocomplete to trigger it.

The main congestions seems to happen in file-truename() -- after
displaying candidate company mode goes on to do refresh in the =
background
and calls file-truename repeatedly while eglot (or someone else) is =
occupying the tramp
connection. Point is -- the same tramp connection is used by eglot and
any other minor mode that queries file name or state, but they have no
means to share or coordinate this use other than the exception above.

Tramp used to throw more insignificant error in the past and tolerate
the behavior (which corrupts the data exchanged between eglot and the
lsp) and now throws this error. See `with-tramp-locked-connection`
macro.=20

I got this problem with other minor modes too, but did not capture the
stack as I lowered the error prio via (add-to-list 'debug-ignored-errors
'remote-file-error). Reading the code would've suggested corruption
won't happen but still garbage was let in the stdio pipe and eglot lost =
track of the
buffer state.

--------------------------
In GNU Emacs 28.2 (build 1, x86_64-apple-darwin22.1.0, Carbon Version =
169 AppKit 2299)
 of 2022-11-24 built on GDMBP.local
Windowing system distributor 'Apple Inc.', version 13.1.0
System Description:  macOS 13.1

Configured using:
 'configure --enable-locallisppath=3D/usr/local/share/emacs/site-lisp
 =
--infodir=3D/usr/local/Cellar/emacs-mac/emacs-28.2-mac-9.1/share/info/emac=
s
 --prefix=3D/usr/local/Cellar/emacs-mac/emacs-28.2-mac-9.1 --with-mac
 --enable-mac-app=3D/usr/local/Cellar/emacs-mac/emacs-28.2-mac-9.1
 --with-gnutls --with-modules'

Configured features:
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS
TOOLKIT_SCROLL_BARS XIM ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: TSX

Minor modes in effect:
  rainbow-delimiters-mode: t
  electric-pair-mode: t
  guru-mode: t
  subword-mode: t
  eglot--managed-mode: t
  flymake-mode: t
  popper-echo-mode: t
  popper-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  joro-mode: t
  doom-modeline-mode: t
  minions-mode: t
  override-global-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  global-hl-todo-mode: t
  hl-todo-mode: t
  which-function-mode: t
  global-company-mode: t
  company-mode: t
  helm-mode: t
  helm-minibuffer-history-mode: t
  helm-descbinds-mode: t
  helm--remap-mouse-mode: t
  async-bytecomp-package-mode: t
  ivy-mode: t
  editorconfig-mode: t
  winner-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  global-anzu-mode: t
  anzu-mode: t
  projectile-mode: t
  volatile-highlights-mode: t
  global-hl-line-mode: t
  super-save-mode: t
  windmove-mode: t
  recentf-mode: t
  savehist-mode: t
  save-place-mode: t
  show-smartparens-global-mode: t
  show-smartparens-mode: t
  smartparens-mode: t
  global-auto-revert-mode: t
  delete-selection-mode: t
  prelude-mode: t
  shell-dirtrack-mode: t
  which-key-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mac-mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
/Users/gdanov/.emacs.d/elpa/cmake-mode-20221130.1357/cmake-mode hides =
/usr/local/share/emacs/site-lisp/cmake/cmake-mode
/Users/gdanov/.emacs.d/elpa/transient-20221119.1503/transient hides =
/usr/local/Cellar/emacs-mac/emacs-28.2-mac-9.1/share/emacs/28.2/lisp/trans=
ient

Features:
(shadow sort mail-extr emacsbug sendmail typescript-mode
cc-mode-expansions smartparens-c cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs eieio-opt speedbar
ezimage dframe helm-command bug-reference helm-x-files elisp-slime-nav
rainbow-delimiters elec-pair guru-mode subword-mode-expansions cap-words
superword subword eglot array jsonrpc ert debug flymake-proc flymake
ffap tramp-archive tramp-gvfs dbus helm-for-files helm-bookmark
helm-adaptive helm-external helm-net codespaces
use-package-ensure-system-package system-packages use-package
use-package-delight use-package-diminish tramp-theme em-dirs esh-var
esh-mode poly-markdown smartparens-markdown markdown-mode polymode
poly-lock polymode-base polymode-weave polymode-export polymode-compat
polymode-methods polymode-core polymode-classes eieio-custom eieio-base
graphql-mode let-alist org-jira org-jira-sdk jiralib request soap-client
url-http url-auth url-gw nsm rng-xsd xsd-regexp xml org-clock
the-org-mode-expansions org-element avl-tree smartparens-org org ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src
ob-comint org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol
org-keys oc org-compat org-macs org-loaddefs cal-menu calendar
cal-loaddefs git-link popper-echo popper magit-bookmark magit-submodule
magit-obsolete magit-blame magit-stash magit-reflog magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode
git-commit log-edit message rmc puny rfc822 mml mml-sec epa epg rfc6068
epg-config gnus-util rmail rmail-loaddefs mailabbrev mail-utils
gmm-utils mailheader add-log magit-core magit-autorevert magit-margin
magit-transient magit-process with-editor server magit-mode transient
magit-git magit-base magit-section crm compat-27 compat-26 prettier-js
web-mode-expansions web-mode disp-table smart-shift indent-tools
yafolding hydra lv indent-tools-indentation-of highlight-indentation
helm-cider-history helm-cider helm-cider-spec helm-cider-repl
helm-cider-cheatsheet helm-cider-util cider-cheatsheet cider cider-debug
cider-browse-ns cider-mode cider-find cider-inspector cider-completion
cider-profile cider-eval cider-jar arc-mode archive-mode
cider-repl-history pulse cider-repl cider-resolve cider-test
cider-overlays cider-stacktrace cider-doc cider-browse-spec
cider-clojuredocs cider-eldoc cider-client cider-common cider-connection
cider-util cider-popup sesman-browser nrepl-client nrepl-dict spinner
clojure-mode-expansions smartparens-clojure sesman clojure-mode align
parseedn parseclj-parser parseclj-lex parseclj-alist posframe
doom-modeline doom-modeline-segments doom-modeline-env
doom-modeline-core all-the-icons all-the-icons-faces data-material
data-weathericons data-octicons data-fileicons data-faicons
data-alltheicons shrink-path f f-shortdoc shortdoc s minions
doom-themes-ext-org doom-themes-ext-treemacs doom-themes-ext-neotree
doom-themes-ext-visual-bell face-remap doom-one-theme doom-themes
doom-themes-base nlinum linum helm-ring helm-ls-git derived vc-git
helm-ag helm-xref use-package-bind-key bind-key rainbow-mode
quelpa-use-package quelpa mm-decode mm-bodies mm-encode help-fns
radix-tree use-package-ensure use-package-core prelude-modules
prelude-xml nxml-mode-expansions rng-nxml rng-valid rng-loc rng-uri
rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns
nxml-mode nxml-outln nxml-rap html-mode-expansions smartparens-html
sgml-mode facemenu dom nxml-util nxml-enc xmltok prelude-shell sh-script
smie executable prelude-emacs-lisp prelude-lisp prelude-programming
flycheck hl-todo compat compat-macs which-func prelude-css
prelude-company company-oddmuse company-keywords company-etags
company-gtags company-dabbrev-code company-dabbrev company-files
company-clang company-capf company-cmake company-semantic
company-template company-bbdb company prelude-helm-everywhere helm-mode
helm-misc helm-descbinds helm-eshell helm-elisp helm-eval edebug
backtrace find-func helm-info prelude-helm helm-projectile helm-files
image-dired image-mode exif helm-tags helm-buffers helm-occur helm-grep
helm-regexp helm-locate helm-types helm-imenu helm-utils helm-help helm
helm-global-bindings helm-easymenu helm-core async-bytecomp helm-source
helm-multi-match helm-lib async helm-config prelude-ivy two-column ivy
ivy-faces ivy-overlay colir color prelude-macos exec-path-from-shell
prelude-global-keybindings warnings prelude-editor editorconfig
editorconfig-core editorconfig-core-handle editorconfig-fnmatch
operate-on-number calc-bin calc-ext calc calc-loaddefs calc-macs diff-hl
smartrep log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode
winner undo-tree diff queue eshell esh-cmd esh-ext esh-opt esh-proc
esh-io esh-arg esh-module esh-groups esh-util re-builder whitespace
tabify browse-kill-ring midnight ediff ediff-merg ediff-mult ediff-wind
ediff-diff ediff-help ediff-init ediff-util dired-x anzu avy tramp-sh
projectile skeleton ibuf-macs find-dired dired dired-loaddefs lisp-mnt
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr grep
compile ibuf-ext ibuffer ibuffer-loaddefs bookmark text-property-search
pp expand-region text-mode-expansions er-basic-expansions
expand-region-core expand-region-custom flyspell ispell rect etags
fileloop generator xref project volatile-highlights hl-line super-save
windmove recentf tree-widget wid-edit savehist saveplace diminish
smartparens-config smartparens-text smartparens advice dash autorevert
filenotify delsel prelude-mode easy-mmode crux docker-tramp tramp-cache
tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat
shell pcomplete comint ansi-color ring parse-time iso8601 time-date
ls-lisp format-spec thingatpt imenu-anywhere imenu pcase jka-compr
prelude-core epl prelude-ui which-key prelude-custom prelude-packages
cl-extra help-mode finder-inf rx info edmacro kmacro package browse-url
url url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/mac-win mac-win term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads kqueue mac
multi-tty make-network-process emacs)

Memory information:
((conses 16 1024998 582937)
 (symbols 48 64969 19)
 (strings 32 287822 163197)
 (string-bytes 1 9937920)
 (vectors 16 113430)
 (vector-slots 8 2200185 552812)
 (floats 8 1234 2058)
 (intervals 56 14261 3055)
 (buffers 992 43))





Acknowledgement sent to Georgi Danov <georgi.danov@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#60534; 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.