From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#55832: 28.1; Emacs crashes when using tramp from helm in emacs-29 Date: Sun, 12 Jun 2022 18:16:23 +0000 Message-ID: <87mteh20qo.fsf@posteo.net> References: <87bkuzge0m.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="425"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , larsi@gnus.org, 55832@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 20:31:16 2022 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 1o0SMl-000ATJ-K4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 20:31:15 +0200 Original-Received: from localhost ([::1]:55564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0SMk-0006B0-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 14:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0SMY-0006Ar-PF for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 14:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0SMY-00089P-G2 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0SMY-0001l7-D0 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55832 X-GNU-PR-Package: emacs Original-Received: via spool by 55832-submit@debbugs.gnu.org id=B55832.16550586386732 (code B ref 55832); Sun, 12 Jun 2022 18:31:02 +0000 Original-Received: (at 55832) by debbugs.gnu.org; 12 Jun 2022 18:30:38 +0000 Original-Received: from localhost ([127.0.0.1]:56480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0SMA-0001kW-2t for submit@debbugs.gnu.org; Sun, 12 Jun 2022 14:30:38 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:44981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0SM7-0001kE-W4 for 55832@debbugs.gnu.org; Sun, 12 Jun 2022 14:30:36 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A667724010A for <55832@debbugs.gnu.org>; Sun, 12 Jun 2022 20:30:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1655058629; bh=/qUyOGhEtj/VPmWhlYZMNn6ofzk7VIznOKHWw0j/k84=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=Nv8CRGAZdP+IxVf6OxsVYshWPeHOMbDkfzCRd5R3EPe7EpqrmHIB5tw0eHVByVewt T90IEpfp5GhgN1ujZmw61WDoXi87TXr7s8IdvQAi+VNEO7l6m8CD7BDWLJPFWLOVhq Hg2LbxaKU64otqbtj1Wgd6ugTULpsG+pghkvn4oYvPVleu6JFSz+/TNcWW3tzktCgJ mFDt0BQdHSIcMoLsfueXe4tTAjNqe2Y3BmCFrKA2rzzZPpjCBaRt9ah3bJfcjn8LpY L9qG+YZ7fAPuLQRfCUsFNmM8faZybmKx9rVNELDYvDfAPCTwcAT4jO1nCfZDX4adOo hoDcSaVc7rivw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LLjtV70kRz6tmj; Sun, 12 Jun 2022 20:30:26 +0200 (CEST) In-reply-to: <87bkuzge0m.fsf@gmx.de> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234370 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > Thierry Volpiatto writes: > > Hi Thierry, > >>> (setq tramp-verbose 10 tramp-debug-to-file t) >> >> Ah nice, with those setting instead of crashing emacs hang and I can >> recuperate with C-g, here the tramp log: >> >> https://gist.github.com/thierryvolpiatto/96b5d3bacc92deac1fad275eede69354 > > Thanks. The trace looks surprising, again and again > > 21:38:47.713417 tramp-get-remote-id (5) # Finding POSIX `id' command > > I'll try to analyze tomorrow what could have triggered this behavior. If > not successful, I'll ask you for instrumentation of Tramp. I have a function wrote long time ago to delete tramp connections which is not working (or most of the time not working) because it uses tramp-list-connections which is itself broken (unexpectedly it worked only once today don't know why). The test (tramp-connection-property-p key "process-buffer") is wrong IMO according to the data fetched from tramp-cache-data, here a function based on tramp-list-connections to illustrate the data fetched here from a sudo connection: (defun tv/list-tramp-connections () (cl-loop with tramp-verbose =3D 0 for key being the hash-keys in tramp-cache-data using (hash-value val) when (and (tramp-file-name-p key) (null (tramp-file-name-localname key)) ;; (tramp-connection-property-p key "process-buffe= r")) ) collect (list key (cl-loop for k being the hash-keys in val using (hash-value v) collect (list k v)))) The function for a sudo connection returns: (((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil #("IPad-S340" 0 9 (tramp-default t)) nil nil nil) (("process-buffer" nil) ("null-device" "/dev/null") ("uid-string" "UNKNOWN") ("gid-string" "UNKNOWN") ("uid-integer" -1) ("gid-integer" -1) ("first-password-request" nil) ("uname" "Linux 5.15.0-33-generic") ("locale" "LC_ALL=3Den_US.utf8") ("test" "test") ("remote-path" ("/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbi= n")) ("pipe-buf" 4096) ("remote-shell" "/bin/sh") ("~root" "/root") ("file-exists" "test -e") ("stat" "env QUOTING_STYLE=3Dlocale \\stat") ("case-insensitive" nil) ("readlink" "\\readlink")))) As you can see "process-buffer" is listed in the cdr but not the car of result so tramp-list-connections always returns nil because (tramp-connection-property-p key "process-buffer") always returns nil. Seems the cdr is the same as what found in ~/.emacs.d/tramp. Maybe it can help you to understand what's going wrong. Thanks. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmKmML8THHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk5d+C/46p0id+IHZq/gn8b3ENCH4QRH3LlfV bbhkYWBYN1XMK0LuIJVvdb3dslA1uWAVicTNU6PeEtpJsDs8kGBovEJs2M95Ofsk pZqYEH+qWmCEFwNGqL1dfspHTPR3duo2Z5ziQdAGwQtMl8cW2fCv4aTNrCOXuprc n2cd1F97qRyVKF1Uuu+1kudm3CXv9y+9oiPQw1HaC/FrRZxjVF/U+Xlfkfy4aTxH rwAdC7dqN0quTGeSS5XcLIOv2SGwbC2g6KdnEHgt69vj0EH8ji4a3vNYy3PZeleJ dufKhcAsO/MVWxxYlv3I6cGGVAtsJC3trvL0xxi+sp6TnWDWEw8vqqsxYvTz/7Qq Am3qEkQ7p8OumqEomq8aUakUb+Dl0UFgAFzzHNXXQak/XV69RRVTI8JHC5hjomMG p6K2EBerQXcwZ41w1WEtT1Z8I/L0iSCtiXcCmwgKjmbVzB44hQ69uGVXyky0CDYs uS+C+v5qMHMUXi4XS8rc7Fxw3UVaBeu/ZyI= =qjQz -----END PGP SIGNATURE----- --=-=-=--