From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Manheimer Newsgroups: gmane.emacs.bugs Subject: bug#22452: 24.4; Tramp remote shell fails on remote+sudo+homedir destination Date: Sat, 23 Jan 2016 21:00:10 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c09564e20ef7b052a0ad16b X-Trace: ger.gmane.org 1453600880 11715 80.91.229.3 (24 Jan 2016 02:01:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 02:01:20 +0000 (UTC) To: 22452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 03:01:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aN9zI-0008Og-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jan 2016 03:01:08 +0100 Original-Received: from localhost ([::1]:59003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9zI-0000ch-8O for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 21:01:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9zD-0000ca-U4 for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:01:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN9zC-0007gd-6l for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:01:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9zC-0007gZ-33 for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aN9zB-0007WD-OK for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Manheimer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2016 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22452 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.145360084428869 (code B ref -1); Sun, 24 Jan 2016 02:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2016 02:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:60908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aN9yt-0007VY-GE for submit@debbugs.gnu.org; Sat, 23 Jan 2016 21:00:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43356) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aN9yr-0007VJ-Ko for submit@debbugs.gnu.org; Sat, 23 Jan 2016 21:00:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN9yl-0007fN-3Y for submit@debbugs.gnu.org; Sat, 23 Jan 2016 21:00:36 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9yl-0007fJ-08 for submit@debbugs.gnu.org; Sat, 23 Jan 2016 21:00:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9yj-0000bl-AP for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:00:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aN9yh-0007f4-7a for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:00:33 -0500 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:35496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aN9yh-0007ez-1O for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 21:00:31 -0500 Original-Received: by mail-oi0-x22b.google.com with SMTP id p187so69347926oia.2 for ; Sat, 23 Jan 2016 18:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=p9t5eeGPeRiQGS6kHp/p8Y8T75hKmCcpsfPflDchqNA=; b=idNW6C+ex4H7OlMh+quqzdXwm+r9igtQAMFhVH8hgJeg2aJ7pkIWMftMduvYhlC5iZ AeaEQrqxUxh5sfXhprjYI7xKSp9tCm+T7wyIsfhGxs4HB2fnSb2Fz9iIhKTemaF/mZ3N XYfN8eAwVKRa8iYH7AaRgxPxB10fbVYe3LpK/V/bM1bxQD7vngpIVbKk5gL05PJ8CK6G q+83Hefvg8bSshBeLUuayBjfeDyib8gVodji7CDlmcVMA1KDaNYS4VZoMiVTCJwM8vIr WEBbKfA7//CvJC+e0DmqN6wRkWDEjE1PJE0U1Xq2s1iRxMNHxyBH3oXavC3p4zuOU/u3 /tdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=p9t5eeGPeRiQGS6kHp/p8Y8T75hKmCcpsfPflDchqNA=; b=ekWCHa0KLhkJRdOkBg3r7j4eph+jvO2ef9yVq98WpBTAyOIeBDR5vA8IWofLKo/yNq F/wc/2X2S51MOiRpy3xiUaN+a0QbJiU8LjcV+M5cIulhLQextfuQyUxYGvagyROkTwJi JyEQkMLG7KusBaSFwdkssxTfE2HmECstocAWd3mt4r5txLMAvCORquZnlxevNiiJmiKX HMMPm65pgwe5ZAfB6YdYCZPJmEtBgaxSKVz5XFMO6uYU0lk5LvasKFVixbME1W//jfga k+6R9pzoWYnPU+mAp0BMxQHVN1STa/mMVANWlDu4c+u9JLVqPsbGZ21DS1qPBBeQqywR 04rQ== X-Gm-Message-State: AG10YOTtFRK19c1xVvPsATSZrHdOV6/gE5jq5Ivul7eMT3PCABCSskV7MzD6EvKC3I+eNw9zTH+v+eXehhsA1Q== X-Received: by 10.202.239.212 with SMTP id n203mr7925218oih.77.1453600830187; Sat, 23 Jan 2016 18:00:30 -0800 (PST) Original-Received: by 10.202.196.143 with HTTP; Sat, 23 Jan 2016 18:00:10 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111908 Archived-At: --94eb2c09564e20ef7b052a0ad16b Content-Type: text/plain; charset=UTF-8 Tramp fails to start a remote shell when the remote path is exactly of the form '/ssh:host|sudo:root@host:'. It fails with a message in the minibuffer, "Selecting deleted buffer". To reproduce the error: * Start emacs with -Q * In any buffer (*scratch* is fine): M-Esc (setq default-directory "/ssh:example.com|sudo:root@example.com:") * In that same buffer, Esc-x shell This fails (with "Selecting deleted buffer") for me in the version of emacs listed in the bug report and more recent versions, which I compiled, eg: GNU Emacs 24.5.50.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17) of 2015-12-16 on twist.myriadicity.net. I can't get a backtrace for it, even if I set debug-on-error and signal-on-error. In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-20 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --with-ns' Important settings: locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-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 line-number-mode: t transient-mark-mode: t Recent input: M-: C-y M-x s h e l l M-x e m a c s - r C-a C-k r e p o r t - e m Recent messages: Tramp: Opening connection for root@myr using sudo... Tramp: Sending command `exec ssh -o ControlPath=/var/folders/5s/5565scz120l9bsp9y97gn3hr0000gn/T/tramp.75422Jhp.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none myr' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `myr' Tramp: Sending command `exec env SHELL=/bin/sh sudo -u root -s -H -p Password:' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `myr' Tramp: Opening connection for root@myr using sudo...done Tramp: Waiting for prompts from remote shell...failed Tramp: Opening connection for root@myr using sudo...failed byte-code: Selecting deleted buffer Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils tramp-cmds tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 93141 15547) (symbols 48 19906 0) (miscs 40 41 132) (strings 32 19106 30804) (string-bytes 1 574404) (vectors 16 12830) (vector-slots 8 421987 6836) (floats 8 115 514) (intervals 56 180 0) (buffers 960 13)) --94eb2c09564e20ef7b052a0ad16b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Tramp fails to start a remote shell when the remote p= ath is exactly of
the form '/ssh:host|sudo:root@host:'= ;. It fails with a message in the
minibuffer, "Selecting del= eted buffer".

To reproduce the error:

* Start emacs with -Q
* In any buffer (*scratch= * is fine):
=C2=A0 M-Esc (setq default-directory "/ssh:example.com|sudo:root@example.com:")
* In that same buffer= , Esc-x shell

This fails (with "Selecting del= eted buffer") for me in the version of
emacs listed in the b= ug report and more recent versions, which I
compiled, eg: GNU Ema= cs 24.5.50.1 (x86_64-apple-darwin14.5.0, NS
apple-appkit-1348.17)= of 2015-12-16 on twist.myriadicit= y.net.

I can't get a backtrace for it, eve= n if I set debug-on-error and
signal-on-error.





In GNU E= macs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
= =C2=A0of 2014-10-20 on builder1= 0-9.porkrind.org
Windowing system distributor `Apple', ve= rsion 10.3.1348
Configured using:
=C2=A0`configure --wi= th-ns'

Important settings:
=C2=A0 lo= cale-coding-system: utf-8-unix

Major mode: Lisp In= teraction

Minor modes in effect:
=C2=A0 = shell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 el= ectric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0= tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-n= ame-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2= =A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent inpu= t:
M-: C-y <return> M-x s h e l l <return> M-x e m a = c=C2=A0
s - r C-a C-k r e p o r t - e m <tab> <return>= ;

Recent messages:
Tramp: Opening connec= tion for root@myr using sudo...
Tramp: Sending command `exec ssh = =C2=A0 -o ControlPath=3D/var/folders/5s/5565scz120l9bsp9y97gn3hr0000gn/T/tr= amp.75422Jhp.%r@%h:%p -o ControlMaster=3Dauto -o ControlPersist=3Dno -e non= e myr'
Tramp: Waiting for prompts from remote shell...done
Tramp: Found remote shell prompt on `myr'
Tramp: Send= ing command `exec env SHELL=3D/bin/sh sudo -u root -s -H -p Password:'<= /div>
Tramp: Waiting for prompts from remote shell...done
Tra= mp: Found remote shell prompt on `myr'
Tramp: Opening connect= ion for root@myr using sudo...done
Tramp: Waiting for prompts fro= m remote shell...failed
Tramp: Opening connection for root@myr us= ing sudo...failed
byte-code: Selecting deleted buffer
<= br>
Load-path shadows:
None found.

=
Features:
(shadow sort mail-extr emacsbug message rfc822 mml= easymenu mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc223= 1 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-d= rums mail-utils tramp-cmds
tramp-cache tramp-sh tramp tramp-compa= t auth-source eieio byte-opt
bytecomp byte-compile cconv eieio-co= re gnus-util mm-util mail-prsvr
password-cache tramp-loaddefs tra= mpver shell pcomplete comint ansi-color
ring format-spec advice h= elp-fns time-date tooltip electric uniquify
ediff-hook vc-hooks l= isp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-op= t fringe tabulated-list newcomment lisp-mode prog-mode
register p= age menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock f= ont-lock syntax facemenu font-core frame cham georgian
utf-8-lang= misc-lang vietnamese tibetan thai tai-viet lao korean
japanese h= ebrew greek romanian slovak czech european ethiopic indian
cyrill= ic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
m= inibuffer nadvice loaddefs button faces cus-face macroexp files
t= ext-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information= :
((conses 16 93141 15547)
=C2=A0(symbols 48 19906 0)
=C2=A0(miscs 40 41 132)
=C2=A0(strings 32 19106 30804)
=C2=A0(string-bytes 1 574404)
=C2=A0(vectors 16 12830)
=C2=A0(vector-slots 8 421987 6836)
=C2=A0(floats 8 115 5= 14)
=C2=A0(intervals 56 180 0)
=C2=A0(buffers 960 13))<= /div>

--94eb2c09564e20ef7b052a0ad16b--