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: Sat, 11 Jun 2022 21:27:40 +0200 Message-ID: <87fskbgfv7.fsf@gmx.de> References: <87k09ohfr4.fsf@gmx.de> <87k09nvhmc.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22598"; 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 Sat Jun 11 21:29:15 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 1o06nL-0005hQ-2A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 21:29:15 +0200 Original-Received: from localhost ([::1]:40096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o06nJ-0000ie-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jun 2022 15:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o06n8-0000iV-Td for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o06n8-0000sU-6M for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o06n8-0005Im-3P for bug-gnu-emacs@gnu.org; Sat, 11 Jun 2022 15:29: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: Sat, 11 Jun 2022 19: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.165497568220309 (code B ref 55832); Sat, 11 Jun 2022 19:29:02 +0000 Original-Received: (at 55832) by debbugs.gnu.org; 11 Jun 2022 19:28:02 +0000 Original-Received: from localhost ([127.0.0.1]:54065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o06m9-0005HI-HB for submit@debbugs.gnu.org; Sat, 11 Jun 2022 15:28:02 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:58889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o06m6-0005Gx-Hn for 55832@debbugs.gnu.org; Sat, 11 Jun 2022 15:28:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1654975671; bh=qvqEdaVnQEvZYmaG56OG3sEwYIZtB4LlKT0m24A9U60=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=W606Xos+hMnULsZlFt3KfTVRqQhcfD8xAnZ08ut7x3AlUTwWhKbl5J6s7CssxHgp+ S488ImdFovr33vBL6QXEdcqqHOuxCz++KbRlJ9EgMJaJBdR+Gk/jibDRfDCqLJv3TZ KmVT0RFF19CQGys7Hxur2dTTj1Wxku8HgJ0fwago= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.148.75]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MrhUE-1nLFdC00e4-00nkFw; Sat, 11 Jun 2022 21:27:51 +0200 In-Reply-To: <87k09nvhmc.fsf@posteo.net> (Thierry Volpiatto's message of "Sat, 11 Jun 2022 06:14:02 +0000") X-Provags-ID: V03:K1:lU85lJVNgqQjYS9OQSuh+lbiP4F3IlcjhpHJkiDGfuhHf/R9s28 Irhk1GsMBNtr2SUE9CNd8l3V/dZFn40qX5+jL85IgoMQMvl4Bymb/DwvvhW6E1OevcdsSsi l9u1hVpDTwbcAxc3ROZSw64ageiLGT9HBzajKxJ/pYUpnmdNKJ4iY8z0dB4/XeOatXE92WL UAChw/LpD3VFuR61RKvwA== X-UI-Out-Filterresults: notjunk:1;V03:K0:pCE7fUhphQQ=:tYg3xqiu0SOWk0alR1PEOm LrTrhLiXqAglXbQ+PslVFssBVYI/Lqd1hmizS+uZ6/fyw8GeZbozlgFunE7UIDGkSfAb3dyeT SRMNGLt6eA+am3ys+gxI3+zRvZoyPWrcsNyYaZdkABx0kabsoHyfh01nuFARlNwO70tKEumoI 3ayzGyBuOEEbj+HHsKJQWCZeEeJMZcHO4G2Gc57zbh0YRYn7B4KDKLGKCK5a5Ptgow2QZRmNF +UyvL/CH/j19TOrMxsTqb+zBkZN5/8iF1EHek0mLiUauQuRQ7YIKg8U+2W0G20hu2j2hZkoZD 1xpclgns1AZzpJleJAG8eg88nxBdBECdHC9UEEKWHQ43pY2I+xIaMVgmR9+6dj5Yz0sE0Jbj/ tPDY8QD/ttTm7hSub52b07e1C1kWHdOpjmQ1DXhSup4mwatntQgtvZNn1pVhb6AjgY3tlMMj5 LE1D1X3SfSi+uC+6A45vUKtYBbVVnAqheWSm4wmy68XAXG4blGs387ObpwaYtLC3zu3YatCLC tjrYdLLwmyTJB4pPut8/VyelX4svRJnCb/t++UoVOaaeIuaUY5grUp5g19OcAZCZ3ryfIzJCD Kb3+uxmpqYY04AiuAZ+L8NQ2CB3nO0oZuGX/KVCRecgi/6n0ews9PBV6ubmMBvJMlnSlcAluj wglSb92WsGObV0g3C8hiNkVUmA61Jkr9TC2F5UrelUBfmCniV/SpkOdHYYG7ezkFpcDVEXBwb U91Wfh34vhu8cN2jzqnJNpHWwrG1F9fLffO5kniwqJ4uXKzEeJXUzdwfyMopncMHOOET7zNo 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:234303 Archived-At: Thierry Volpiatto writes: Hi Thierry, > Ah ok, I noticed I have always in ~/.emacs.d/tramp an UNKNOW entry for > uid and gid, is it normal? When the remote uid or gid cannot be determined, Tramp sets the default value "UNKNOWN" (for the uid-string resp. remote-gid property), and -1 (for the uid-integer resp. gid-integer property). See tramp-unknown-id-string and tramp-unknown-id-integer. However, I would be surprised if these values are used for a "sudo" connection. Checking my own ~/.emacs.d/tramp I find such entries, indeed, for a "sudo" connection. Very strange. But although incorrect, they haven't disturbed my use of Tramp. After exiting Emacs, deleting ~/.emacs.d/tramp, and starting Emacs again with a "sudo" connection, there arer proper values "root" and 0 in the cached properties. Hmm, don't know where these values came from in history, but I don't believe they should disturb Tramp. But who knows. Perhaps you move the ~/.emacs.d/tramp file away (in order to use it later if necessary), start a new Emacs instance, and see, whether it still crashes with your scenario. >> 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 > -Q 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. Also a mystery to me. If the removing of the ~/.emacs.d/tramp file does not help, you might try the following settings: --8<---------------cut here---------------start------------->8--- (setq tramp-verbose 10 tramp-debug-to-file t) --8<---------------cut here---------------end--------------->8--- This increases the Tramp debug messages volume, and writes those messages to disk at /tmp as they appear, under a file name like the Tramp debug buffer name. So we have something to analyze even after crash. Well, reading the Helm sources, you'll better with setting helm-tramp-verbose. Best regards, Michael.