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: Sat, 11 Jun 2022 06:14:02 +0000 Message-ID: <87k09nvhmc.fsf@posteo.net> References: <87k09ohfr4.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="38287"; 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 Sat Jun 11 08:29:46 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 1nzucz-0009o3-Tl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 08:29:46 +0200 Original-Received: from localhost ([::1]:46928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzucy-0007Tl-Dg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 02:29:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzucJ-0007Ta-AW for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 02:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzucI-0006Bz-Be for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 02:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzucI-0000sE-4j for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 02:29: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: Sat, 11 Jun 2022 06:29: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.16549289213332 (code B ref 55832); Sat, 11 Jun 2022 06:29:02 +0000 Original-Received: (at 55832) by debbugs.gnu.org; 11 Jun 2022 06:28:41 +0000 Original-Received: from localhost ([127.0.0.1]:51744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzubx-0000rf-81 for submit@debbugs.gnu.org; Sat, 11 Jun 2022 02:28:41 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:46951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzubu-0000rP-No for 55832@debbugs.gnu.org; Sat, 11 Jun 2022 02:28:39 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2B57C240108 for <55832@debbugs.gnu.org>; Sat, 11 Jun 2022 08:28:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1654928913; bh=nDTJ3KFc8mEMKgjjxrcCR0jMXQSiUDJq3Fj0Z6ghXxk=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=ZEeXXxkYTkrbCbP8qPPW33yEJzBZdu2VcyF5CfTLUtVYSWYsmfp2n0fYSJNLzuSap YUiHFwddSrQC1mcfUGENzpaTL3ZcNWhGJyupQfx0g6IuUMhjqTV6aTWk/eVtgtEue5 IVkZdcp73K4k0tVWuGHiPGb+8pnhcLXdptT55ZXP/8YgaaMJpRwwV2huuL5H8cvczu 1U0feT0e31qJ4kzi6D3WRMVINWMouWZJjdV20f6x49gyu0wAv1qCvAe7WOHYkD6fgW iPHr2hldfjWktSVax3gx4nUl1mMJygXAxDpC0UHz7F13wN8wpWAjl2oRpRYQsUeI7u qyOs+CB36hybw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LKnvy2RD9z6tmW; Sat, 11 Jun 2022 08:28:29 +0200 (CEST) In-reply-to: <87k09ohfr4.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:234250 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Albinus writes: > Thierry Volpiatto writes: > >> Hello Michael, > > Hi Thierry, > >>> First, I've tried to reproduce it from emacs -Q. I've upgraded all >>> installed ELPA packages, and then I have called >>> >>> emacs -Q \ >>> -l ~/.emacs.d/elpa/helm-core-20220503.622/helm-core-autoloads.el \ >>> -l ~/.emacs.d/elpa/helm-20220504.827/helm-autoloads.el \ >>> -l ~/.emacs.d/elpa/helm-tramp-20190616.125/helm-tramp-autoloads.el \ >> >> What is helm-tramp? this is not part of helm. > > I've installed this as ELPA package a while ago, don't remember the > details. So I've taken this out, calling now Emacs master branch like > > emacs -Q \ > -l ~/.emacs.d/elpa/helm-core-20220503.622/helm-core-autoloads.el \ > -l ~/.emacs.d/elpa/helm-20220504.827/helm-autoloads.el \ > -l ~/.emacs.d/elpa/async-20220318.1342/async-autoloads.el -l seq > >> You have better time cloning emacs-async and run make && sudo make >> install and same with helm, then emacs -q, (require 'helm) (require >> 'helm-config) and C-x c C-x C-f > > Hmm, this would poison my laptop with an undesired config. Shouldn't the > call above be sufficient? > >>> Using /sudo:: as file name doesn't raise any error. >> >> Did you follow the recipe I sent? >> First shot doesn't crash but second after M-x >> tramp-cleanup-all-connections does. > > Ahh, this was another message I didn't notice. > >>> However, this is from the master branch; >> >> The bug is from master branch not emacs-28, I sent the bug report from >> my main emacs which is emacs-28 because 29 crashed. > > OK, rerunning your recipe with the invocation as above: > >> 1) Ensure you have no entries for sudo in .authinfo.gpg file. > > Not needed, because I call "emacs -Q". > >> 2) M-x helm-find-files RET // sudo:: > > Done. > >> 3) You are prompted for password > > Yep. > >> 4) At this first shot it should work as expected. > > Not clear to me whether I shall enter the password. If you are prompted for password of course you have to enter your password. > I did. Now Helm offers me something, which I always confirm with RET, Helm offers you completion on your system files and offer you to navigate with arrow keys or C-j C-l, if you press RET on a directory it opens this directory in a dired buffer, on a file in a buffer to edit file. > No. tramp-get-remote-uid invokes tramp-file-name-handler in order to get > a method specific implementation (finally, tramp-sh-handle-get-remote-uid > shall be called). Ah ok, I noticed I have always in ~/.emacs.d/tramp an UNKNOW entry for uid and gid, is it normal? >>> It is not clear to me why tramp-file-name-for-operation goes into >>> recursion with the error handling, invoking again and again >>> tramp-signal-hook-function (that is the function bound to >>> signal-hook-function). >> >> What is calling tramp-get-remote-uid in tramp-file-name-for-operation? > > tramp-get-remote-uid should *not* be called inside > tramp-file-name-for-operation. The symbol is passed as argument, and > used for investigation of the other args. > >>> Similar protections have been applied already elsewhere in Tramp. Does >>> this solve the problem? >> >> No still crashing. > > Sad. Since I cannot reproduce the problem locally, what happens if you > invoke "emacs -Q" similar to how I've done? I can't reproduce the crash using helm -P path/to/emacs though there is not much difference with my helm-find-files config, the difference comes I guess from the usage of normal emacs (or possibly only -q) and emacs =2DQ which affect tramp in some ways. What I would like to understand is why the crash appears AFTER tramp-cleanup-all-connections and not before on first shot. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmKkNgsTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvkxR/DACpK2+K7ow7cEhYot2vtagCV9ufkjir iBl+C9AylQJXNY8qHqaLWXgiA7187KfRk+Pr4Is3N1JCHjE6e6pKdokqoPMbni8F nxX5OOMCqpPnOjnvKaIETVnx1EViKhiCFY857EGtLJrU5dcB69ZbCtbzyGwrYAu7 +NRStEINAGTyTa/pjaaL/cdsXq5lEX3/QHZFJYR0tCL7YECRgPVx/3ht+hU5tqNf PopNXKyTY22BWiTfrwUmlsprN6Z3Brtc28ZM8hAQTfdVux/FcR50iB47PNwy7axq M7UAECbuTkhfqEAa8Knk/DG5VhYBLyoAwVj4HCR/9gmlGK08pbSpdfmEdnHwvfl9 IhZEeD46/RANL+ghqucIZQCt4qcIYbeZau/9gQnXmFOZOhsmI5XPUrEw/A8LLIlg lakwpo1hl0RcFMaVXFTuaebZx8TiK84PMErHtA/853645nJN7PXMsRXcow+zL70I WtNbBCyRv6FVIUTaWxp5I3oFGHGjfq83epg= =6hmR -----END PGP SIGNATURE----- --=-=-=--