From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Devon Sean McCullough" Newsgroups: gmane.emacs.bugs Subject: bug#27009: 25.1; Tramp stuck on wrong host Date: Sun, 21 May 2017 05:12:07 -0500 Message-ID: <5c849bc3ef1078e5244a8fabc5677551.squirrel@leaf.websitewelcome.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495383137 12766 195.159.176.226 (21 May 2017 16:12:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 May 2017 16:12:17 +0000 (UTC) User-Agent: SquirrelMail/1.5.2 [SVN] To: 27009@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 21 18:12:12 2017 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 1dCTSm-0003BN-27 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 May 2017 18:12:12 +0200 Original-Received: from localhost ([::1]:38666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCTSr-0006pA-7W for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 May 2017 12:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCTSi-0006lW-NB for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 12:12:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCTSd-0007mp-Gw for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 12:12:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCTSd-0007mg-Dt for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 12:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCTSd-0003lH-8j for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 12:12:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Devon Sean McCullough" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 May 2017 16:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27009 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149538312214447 (code B ref -1); Sun, 21 May 2017 16:12:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2017 16:12:02 +0000 Original-Received: from localhost ([127.0.0.1]:59500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCTSb-0003kt-KM for submit@debbugs.gnu.org; Sun, 21 May 2017 12:12:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCNqi-0001Sd-FD for submit@debbugs.gnu.org; Sun, 21 May 2017 06:12:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCNqb-0000Ks-TX for submit@debbugs.gnu.org; Sun, 21 May 2017 06:12:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dCNqb-0000Km-Qo for submit@debbugs.gnu.org; Sun, 21 May 2017 06:12:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCNqa-0005vp-KN for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 06:12:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCNqW-0000KC-Bu for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 06:12:24 -0400 Original-Received: from gateway36.websitewelcome.com ([192.185.187.5]:35472) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dCNqW-0000IT-4H for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 06:12:20 -0400 Original-Received: from cm4.websitewelcome.com (unknown [108.167.139.16]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 7BC60400C4A6C for ; Sun, 21 May 2017 05:12:08 -0500 (CDT) Original-Received: from leaf.websitewelcome.com ([192.185.82.99]) by cm4.websitewelcome.com with id NyC71v00728afQo01yC8wp; Sun, 21 May 2017 05:12:08 -0500 Original-Received: from jovinet by leaf.websitewelcome.com with local (Exim 4.87) (envelope-from ) id 1dCNqJ-0000zG-84 for bug-gnu-emacs@gnu.org; Sun, 21 May 2017 05:12:07 -0500 Original-Received: from 203.198.139.121 ([203.198.139.121]) (SquirrelMail authenticated user devon2011@jovi.net) by leaf.websitewelcome.com with HTTP; Sun, 21 May 2017 05:12:07 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [1956 32003] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source-IP: X-Exim-ID: 1dCNqJ-0000zG-84 X-Source: X-Source-Args: /usr/local/cpanel/3rdparty/php/56/bin/php-cgi /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src X-Source-Sender: X-Source-Auth: jovinet X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 21 May 2017 12:11:59 -0400 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:132700 Archived-At: Tramp connects to the wrong host -- the user may not notice, leading to devastating damage. To replicate this bug, have two different systems serve SSH on different ports of the same IP address, e.g., In VBox, map local host ports 11111 and 22222 respectively to two different guest systems: VirtualBox VM > Devices > Network > Network Settings ... > Adapter 1 > Attached to: NAT Advanced > Port Forwarding > Host Port: 11111 for system one, 22222 for system two Guest Port: 22 bash$ Open -n -a /Applications/Emacs.app --args -Q --eval ' (message "Emacs %s tramp bug %s" ; t =3D bug, nil =3D ok emacs-version (let ((one "/scp:127.0.0.1#11111:") (two "/scp:127.0.0.1#22222:")) (delete-other-windows) (dired one) (revert-buffer) (split-window) (other-window 1) (dired two) (revert-buffer) (apply (function string=3D) (mapcar (lambda (w) (with-current-buffer (window-buffer w) (buffer-substring (save-excursion (goto-char (point-min)) (forward-line 1) (point)) (point-max)))) (window-list-1)))))' Peace --Devon P.S. (tramp-cleanup-all-connections) ; fails to fix it but can switch which host is wrong. In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-21 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Tramp: Opening connection for 127.0.0.1#11111 using scp... Tramp: Sending command =91exec ssh -p 11111 -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none 127.0.0.1=92 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =91127.0.0.1=92 Tramp: Opening connection for 127.0.0.1#11111 using scp...done ls does not support --dired; see =91dired-use-ls-dired=92 for more detail= s. Emacs 25.1.1 tramp bug t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils tramp-cache tramp-sh tramp tramp-compat auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice dired time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 216764 9018) (symbols 48 22062 0) (miscs 40 59 298) (strings 32 24033 6626) (string-bytes 1 768617) (vectors 16 36983) (vector-slots 8 706708 7377) (floats 8 283 52) (intervals 56 539 0) (buffers 976 20))