emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#22452: closed (24.4; Tramp remote shell fails on r


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22452: closed (24.4; Tramp remote shell fails on remote+sudo+homedir destination)
Date: Thu, 28 Jan 2016 12:46:02 +0000

Your message dated Thu, 28 Jan 2016 13:45:17 +0100
with message-id <address@hidden>
and subject line Re: bug#22452: 24.4; Tramp remote shell fails on 
remote+sudo+homedir destination
has caused the debbugs.gnu.org bug report #22452,
regarding 24.4; Tramp remote shell fails on remote+sudo+homedir destination
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22452: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22452
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.4; Tramp remote shell fails on remote+sudo+homedir destination Date: Sat, 23 Jan 2016 21:00:10 -0500
Tramp fails to start a remote shell when the remote path is exactly of
the form '/ssh:host|sudo:address@hidden:'. 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:address@hidden:")
* 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 <return> M-x s h e l l <return> M-x e m a c 
s - r C-a C-k r e p o r t - e m <tab> <return>

Recent messages:
Tramp: Opening connection for address@hidden using sudo...
Tramp: Sending command `exec ssh   -o ControlPath=/var/folders/5s/5565scz120l9bsp9y97gn3hr0000gn/T/address@hidden:%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 address@hidden using sudo...done
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for address@hidden 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))


--- End Message ---
--- Begin Message --- Subject: Re: bug#22452: 24.4; Tramp remote shell fails on remote+sudo+homedir destination Date: Thu, 28 Jan 2016 13:45:17 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
Version: 25.1

Ken Manheimer <address@hidden> writes:

> I'm glad you're investigating, Michael!
>
> Upshot is that I believe that there still is a bug worth unravelling
> [especially since it involves an aggravating and elusive "Selecting
> deleted buffer" event], in the way that shells start when
> default-directory is set to remote+sudo+homedir format, but I can
> avoid that by using `cd'.

Finally, I could fix it. While establishing the connection, a
`file-remote-p` call was performed which included `expand-file-name' of
`default-directory'. Since the connection wasn't stablished yet, the
error occured.

There won't be a new Emacs 24.x release, so I have fixed it in Emacs
25.1 (commit deae005667516b7e1296527f7e34c54604a81882). You could check
it there. In case of problems, pls tell.

> Ken

Best regards, Michael.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]