From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#24432: 25.1; tramp-cleanup-connection is not removing connection from completion list. Date: Wed, 14 Sep 2016 11:55:24 +0200 Message-ID: <878tuupzzn.fsf@gmx.de> References: <87twdj11sa.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473846983 30515 195.159.176.226 (14 Sep 2016 09:56:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 09:56:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: 24432@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 14 11:56:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk6vP-000763-0v for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 11:56:15 +0200 Original-Received: from localhost ([::1]:54770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6vN-0004E8-0o for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Sep 2016 05:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6vH-0004Dz-At for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 05:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk6vC-0008AT-BQ for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 05:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk6vC-0008AP-8E for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 05:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bk6vC-0005Ca-0B for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2016 05:56: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: Wed, 14 Sep 2016 09:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24432-submit@debbugs.gnu.org id=B24432.147384693419959 (code B ref 24432); Wed, 14 Sep 2016 09:56:01 +0000 Original-Received: (at 24432) by debbugs.gnu.org; 14 Sep 2016 09:55:34 +0000 Original-Received: from localhost ([127.0.0.1]:59139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk6uk-0005Br-8Z for submit@debbugs.gnu.org; Wed, 14 Sep 2016 05:55:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk6ui-0005Bb-O9 for 24432@debbugs.gnu.org; Wed, 14 Sep 2016 05:55:33 -0400 Original-Received: from detlef.gmx.de ([87.146.53.247]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MILxX-1bjGte2ssp-004GFb; Wed, 14 Sep 2016 11:55:25 +0200 In-Reply-To: <87twdj11sa.fsf@gmail.com> (Thierry Volpiatto's message of "Wed, 14 Sep 2016 07:35:49 +0200") X-Provags-ID: V03:K0:k8TezqWlZW+MeAWxP6UVgrmLe9+IIhj6Vs0L1AUz4uqp/IifUMT UHy4qXQzIi4fno+1cNAtFdbicRGjuBgXDefkWjp5q6Snvx+WfUehb21pY/yuNq6VxCnKUMH 0yDb1H2iHHlqIV71IQT8Q2Re5X1SkAcW9Wi9WHF7OTdWnk+aZcor6AIrnvZRgzJOBIak57+ 9rXnuuJS29GjvtE/1tz+Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:gwptotJYtCQ=:snsgqJg6qA6s5Xo7bwJjO1 PaXpTRlXK/8jHyG0YeNO9AYZ4+l/AOz1VZn3jG/lF7BeHqTuP/TTn1BLXYPZByNRcBKcyZkAN ualm9XVuohUZklgs2VbuThzlpOwIbkB6xvwmWjENjVePuv+Ffcu4yhoAEt2kFXd36LS628rsS ppt1f8Q3QELuH08PiCI9sroYHYwmMbIcBOGHDlY1TmfVeWxYlh8jGbh9YzVf+ETljX1sYSsna a6f/lZmNAJv5TkywRp+fYP9j7Y/sgCAta0HSZgARxqTa6Y1jHpkmJOacVlO8lyMNNcCB5iL8Z 99Hq3rtjVsp1w33ko/u1Ndry59BdbiOcpm2Nbl+Z3mu0YmrFIqEhAj67BinUAdjXKla5/u8xw SjDh4KCYUmYejVXeQczluuVfER+/RJp+H6p9mhC1k+rrAoYvWpCkfRKm5YlOy+nrhoKEuHvi0 hkWgpqRJgMdmfi0LMfqgjCyplfO8mto+f3hPNFH8KUealoqOz0+FL9LPOLKEA6f5Qj9kVbYpy qNzFxsAIHuRYKh9TvBC2cLtC8X3QOY1x0qacOFEgYxdjd6szP3b6m/DLbq/muO8W5vOEbDOki HjDpBeSjM5hYKdyXZZFURjl2wp8+bhIY8pPpCF+RMVPyNM+LGioXDlktMvdvFd2HbozO6l19R Coj5XJ/WH9U3UeceNawLWeWsqwspmVbqe0L5tnIhiqGVzjbrE24Lo1JiPhLePVn3+zH3xM0V1 iPbNm0oIUwwF1iRLXqWfRaVRwh3GJAYIVHAUpcqeIcepvP2Qr7apWVBYuKD531A50xorT7tK X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123283 Archived-At: Thierry Volpiatto writes: Hi Thierry, > To reproduce: > C-x C-f /sudo:: RET > M-x tramp-cleanup-connection > Choose connection and RET > > The connection is closed (process deleted and buffers killed) but the > connection is not removed from tramp-cache-data so when doing again > M-x tramp-cleanup-connection the item still remaining in completion. Indeed. > The reason is that tramp try to remove > ["sudo" "root" "localhost" "" nil] from hash-table > whereas the key in hash-table is > ["sudo" "root" "localhost" nil nil] > This is due to tramp-dissect-file-name that returns > ["sudo" "root" "localhost" "" nil] instead of > ["sudo" "root" "localhost" nil nil] That's not the reason, tramp-{get,set}-connection-property normalize the vector used in the hash table. But the connection was still there due to some re-initialization of the connection's hash entry once it was removed. I've pushed a fix to the master. Could you, pls, check? Best regards, Michael.