From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#55832: 28.1; Emacs crashes when using tramp from helm in emacs-29 Date: Tue, 14 Jun 2022 13:39:16 +0200 Message-ID: <87bkuvxymz.fsf@gmx.de> References: <87bkuzge0m.fsf@gmx.de> <87mteh20qo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28838"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , larsi@gnus.org, 55832@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 14 13:41:07 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 1o14uv-0007JC-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 13:41:05 +0200 Original-Received: from localhost ([::1]:42038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o14uu-0007En-FK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 07:41:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o14tu-0007DJ-Pz for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 07:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o14tu-0006vl-44 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 07:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o14tu-0007u9-0w for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 11:40:01 +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.165520676630333 (code B ref 55832); Tue, 14 Jun 2022 11:40:01 +0000 Original-Received: (at 55832) by debbugs.gnu.org; 14 Jun 2022 11:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:33186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o14tK-0007tB-AN for submit@debbugs.gnu.org; Tue, 14 Jun 2022 07:39:26 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:34839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o14tI-0007sz-L0 for 55832@debbugs.gnu.org; Tue, 14 Jun 2022 07:39:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655206757; bh=g+kf84NoMhJ1JhShj4h73tl2WV/qrAOiWCe9wzojGc8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bYfp67UkVpH8/UXlv9KX+vAoORdHjURU+TubSq0NsbNJVfQQrD9Sl4E4YPBLAy5c7 tfuFynTN7vT/ffEWfhTMQLSpCAmF5aJAtMdzu9bzZcKUQFR1FDNwMvx2NRGtYi9xUy 5CUEt+dsNztmdEtvHD6VfzQA4agbek9Q+neVrQDA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.124.118]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MxDp4-1nlju12Pto-00xap0; Tue, 14 Jun 2022 13:39:17 +0200 In-Reply-To: <87mteh20qo.fsf@posteo.net> (Thierry Volpiatto's message of "Sun, 12 Jun 2022 18:16:23 +0000") X-Provags-ID: V03:K1:WOjt1uOGmBQ/4dUnwnVKvnYqxjBD5m/OSq4su9wQurL0ibyEE+2 xnEQJSa4hdEehjrbRSLecCpWqa3F8aH4BjCnvYoMAR2wGxomD4MLWq5+0sGN58bugxEHcYg BeDQS5lop+HoCoPRsaxpkgndl8dhoKsSja/KuOpBSzUbOYALDJTtNx/WS0Dm5THyvDBEV8/ p2hYp2k+FaZvxigvIiPcg== X-UI-Out-Filterresults: notjunk:1;V03:K0:RQZY0t+C9PA=:dCc3aY8LvfPbjR7YBRRLck QxfWZylqx3k99zS6dmCt+k6HOFp7A0nZZ7StIpMk9JM2achGCvd1SwrETYraZKt3cm+WosTOF 0Kd38bxUlHO4iOivEDnFZRWh10hyA/AJKyIB56mtBcxfilEZGgGbBnOEJ4tTBGVEwzMhMn9cL 9A2dxNrFbIw46MNupEHHirAtXlx4Q9DVBYpM+wK3X/HOw3b7rTfLh62pUbb6w+sIAYFUPKsF6 QCLZdqkGepgHtyLkdW31AX24ERT3O4sUf8CGHOL44LN/ja5GGZ8O1LeMetwyBAwOeZqcZmvXt sktMTjluY9L39KqKNuHwsEIZKbPFw+EYUeANf5QEbZOKrPFvL54usje1PXLqiSJzZY/ZQ/dxq 2l5A+T4vHPXDP55vdzs4JrzN3DZKrr16xqLW798RUoXXF75k8cNGwPzVROjel0P79iFcX2XmS V7Y9cJukQu38X1rodkd2NBJkjtnr6GMz54GdI4kCWRCh+L/1reXqd5VoBJ5+73dohYfIuAq9j Ib11ErmvDVVGQL115wKv15tO2hpMDOCmdXHh6Cc3Vaucjz68JWbrEDnXRcfXV0U61tBnHqu+S 195F43ePBDO6p9t/cPKe1sjJT2n6EhlmCzR+RPqzGITE7jAHTAze8zGVTD7Uo/xuOZpG15rAH KPk3l0BlNaVQpwJMTEvGbJgFyUy7r19ujlAkMlDMU9nN6Y2qXvu6HYn11gjlGa1vALDOPhg7P XXNtwZg/sjXGbhuipd1xwrVXmpXRPF4iNLHQuJGv1/5isWFuGLKoGb5ePTFaq77bb3O5uAgA 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:234477 Archived-At: Thierry Volpiatto writes: Hi Thierry, > 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, I don't understand this. tramp-connection-property-p just tests whether a connection property is defined. It does not check the value of this prop= erty. > 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-bu= ffer")) > ) > collect (list key (cl-loop for k being the hash-keys in v= al > using (hash-value v) > collect (list k v)))) Sorry, but I'm not fluent with the cl-loop syntax. > 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/= sbin")) > ("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. Sorry, I cannot follow what you try to explain. Could you please show me an example, both the value of tramp-cache-data, and the result tramp-list-connections is returning? > Maybe it can help you to understand what's going wrong. At least it is unrelated to the problem of this bug report. > Thanks. Best regards, Michael.