unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.0.50; tramp hangs on connect
@ 2007-11-02 12:45 AriT93
  2007-11-02 20:24 ` AriT93
  0 siblings, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-02 12:45 UTC (permalink / raw)
  To: emacs-pretest-bug

With a fresh build from cvs today and the last several days tramp seems to hang
after a connection to a remote machine. Here is output from messages:
n
Tramp: Opening connection for me@somehost using plink...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `plink somehost -l me  -ssh && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `somehost'

I have changed the hostnames obviously.  This same behavior can be reproduced on
my GNU/Linux system at home.  I have tried ssh and scp methods with tramp as
well.  In each case I come seem to get into a loop after the message Tramp:
Found remote shell prompt on `somehost'.  by checking out at 10/22/2007 (cvs
update -D 10/22/2007) tramp works as expected again.  I can see from the logs
that there has been a lot of changes in that time.  Please let me know if there
is any other information or debugging steps that I can take to help.



In GNU Emacs 23.0.50.1 (i386-mingw-nt5.1.2600)
 of 2007-11-02 on SYS286558
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -IC:gnutoolsFree_libsinclude'

Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: EN
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  show-paren-mode: t
  shell-dirtrack-mode: t
  which-function-mode: t
  display-time-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <wheel-up> 
C-x C-f C-a C-k C-a / me @ somehost 
 : ~ / t e s t . t x t <return> 
M-x r e b <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
p <tab> o <tab> r <tab> b <tab> <return>

Recent messages:
.emacs loaded
For information about GNU Emacs and the GNU system, type C-h C-a.
byte-code: End of buffer [2 times]
Tramp: Opening connection for me@somehost using plink...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `plink somehost -l me  -ssh && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `somehost'
Quit
Making completion list... [2 times]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: 23.0.50; tramp hangs on connect
  2007-11-02 12:45 23.0.50; tramp hangs on connect AriT93
@ 2007-11-02 20:24 ` AriT93
  2007-11-03 11:18   ` Michael Albinus
  0 siblings, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-02 20:24 UTC (permalink / raw)
  To: emacs-devel

AriT93 writes:
with further playing it looks like if I don't use stored keys for authentication
on the remote machine I can connect and edit files but using ssh keys causes
issues. 

sorry for the top post.
 > With a fresh build from cvs today and the last several days tramp seems to hang
 > after a connection to a remote machine. Here is output from messages:
 > n
 > Tramp: Opening connection for me@somehost using plink...
 > Tramp: Waiting 60s for local shell to come up...
 > Tramp: Sending command `plink somehost -l me  -ssh && exit || exit'
 > Tramp: Waiting for prompts from remote shell
 > Tramp: Found remote shell prompt on `somehost'
 > 
 > I have changed the hostnames obviously.  This same behavior can be reproduced on
 > my GNU/Linux system at home.  I have tried ssh and scp methods with tramp as
 > well.  In each case I come seem to get into a loop after the message Tramp:
 > Found remote shell prompt on `somehost'.  by checking out at 10/22/2007 (cvs
 > update -D 10/22/2007) tramp works as expected again.  I can see from the logs
 > that there has been a lot of changes in that time.  Please let me know if there
 > is any other information or debugging steps that I can take to help.
 > 
 > 
 > 
 > In GNU Emacs 23.0.50.1 (i386-mingw-nt5.1.2600)
 >  of 2007-11-02 on SYS286558
 > Windowing system distributor `Microsoft Corp.', version 5.1.2600
 > configured using `configure --with-gcc (3.4) --cflags -IC:gnutoolsFree_libsinclude'
 > 
 > Important settings:
 >   value of $LC_ALL: C
 >   value of $LC_COLLATE: nil
 >   value of $LC_CTYPE: nil
 >   value of $LC_MESSAGES: nil
 >   value of $LC_MONETARY: nil
 >   value of $LC_NUMERIC: nil
 >   value of $LC_TIME: nil
 >   value of $LANG: EN
 >   locale-coding-system: utf-8
 >   default-enable-multibyte-characters: t
 > 
 > Major mode: Fundamental
 > 
 > Minor modes in effect:
 >   show-paren-mode: t
 >   shell-dirtrack-mode: t
 >   which-function-mode: t
 >   display-time-mode: t
 >   tool-bar-mode: t
 >   mouse-wheel-mode: t
 >   menu-bar-mode: t
 >   file-name-shadow-mode: t
 >   global-font-lock-mode: t
 >   blink-cursor-mode: t
 >   unify-8859-on-encoding-mode: t
 >   utf-translate-cjk-mode: t
 >   auto-compression-mode: t
 >   column-number-mode: t
 >   line-number-mode: t
 >   transient-mark-mode: t
 > 
 > Recent input:
 > <help-echo> <help-echo> <help-echo> <wheel-down> <double-wheel-down> 
 > <triple-wheel-down> <triple-wheel-down> <wheel-up> 
 > C-x C-f C-a C-k C-a / me @ somehost 
 >  : ~ / t e s t . t x t <return> 
 > M-x r e b <tab> <backspace> <backspace> <backspace> 
 > <backspace> <backspace> <backspace> <backspace> <backspace> 
 > <backspace> <backspace> <backspace> <backspace> <backspace> 
 > <backspace> <backspace> <backspace> <backspace> <backspace> 
 > p <tab> o <tab> r <tab> b <tab> <return>
 > 
 > Recent messages:
 > .emacs loaded
 > For information about GNU Emacs and the GNU system, type C-h C-a.
 > byte-code: End of buffer [2 times]
 > Tramp: Opening connection for me@somehost using plink...
 > Tramp: Waiting 60s for local shell to come up...
 > Tramp: Sending command `plink somehost -l me  -ssh && exit || exit'
 > Tramp: Waiting for prompts from remote shell
 > Tramp: Found remote shell prompt on `somehost'
 > Quit
 > Making completion list... [2 times]
 > 
 > 
 > _______________________________________________
 > Emacs-devel mailing list
 > Emacs-devel@gnu.org
 > http://lists.gnu.org/mailman/listinfo/emacs-devel

-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-02 20:24 ` AriT93
@ 2007-11-03 11:18   ` Michael Albinus
  2007-11-03 20:37     ` AriT93
  2007-11-04  1:01     ` AriT93
  0 siblings, 2 replies; 13+ messages in thread
From: Michael Albinus @ 2007-11-03 11:18 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

AriT93 <arit93@yahoo.com> writes:

Hi,

> with further playing it looks like if I don't use stored keys for authentication
> on the remote machine I can connect and edit files but using ssh keys causes
> issues. 

I do not understand completely. Does it mean it isn't a Tramp issue, and
you have a broken .ssh/authorized_keys file on the remote host? Or does
it mean Tramp is no longer able to login when authentication goes via
the .ssh/authorized_keys file?

Best regards, Michael.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-03 11:18   ` Michael Albinus
@ 2007-11-03 20:37     ` AriT93
  2007-11-04  1:01     ` AriT93
  1 sibling, 0 replies; 13+ messages in thread
From: AriT93 @ 2007-11-03 20:37 UTC (permalink / raw)
  To: Michael Albinus; +Cc: AriT93, emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > Hi,
 > 
 > > with further playing it looks like if I don't use stored keys for authentication
 > > on the remote machine I can connect and edit files but using ssh keys causes
 > > issues. 
 > 
 > I do not understand completely. Does it mean it isn't a Tramp issue, and
 > you have a broken .ssh/authorized_keys file on the remote host? Or does
 > it mean Tramp is no longer able to login when authentication goes via
 > the .ssh/authorized_keys file?
 > 
 > Best regards, Michael.
Sorry for being unclear.  It still seems to be a tramp issue.  I set
debug-on-entry and stepped through opening a file on a remote host and it seemed
to get into a long loop of trying to recognize the remote prompt.  I know that
the connection was made via tailing syslog as well as seeing the shell session
via ps.  I'm pretty green with elisp, is there a way to dump the debugging
session? Is that something that would help?
-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-03 11:18   ` Michael Albinus
  2007-11-03 20:37     ` AriT93
@ 2007-11-04  1:01     ` AriT93
  2007-11-04 20:54       ` Michael Albinus
  1 sibling, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-04  1:01 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > Hi,
 > 
 > > with further playing it looks like if I don't use stored keys for authentication
 > > on the remote machine I can connect and edit files but using ssh keys causes
 > > issues. 
 > 
 > I do not understand completely. Does it mean it isn't a Tramp issue, and
 > you have a broken .ssh/authorized_keys file on the remote host? Or does
 > it mean Tramp is no longer able to login when authentication goes via
 > the .ssh/authorized_keys file?
 > 
 > Best regards, Michael.

One other thing it seems like the large checkin on the 27'th seems to be where
the change that caused this issue happend.  There seemse to be quite a few
changes there.  but if I roll the tramp files back to 2007-10-27 then I am able
to connect and edit files just fine if I update to the 28th it stops working.

-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-04  1:01     ` AriT93
@ 2007-11-04 20:54       ` Michael Albinus
  2007-11-05 13:08         ` AriT93
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Albinus @ 2007-11-04 20:54 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

AriT93 <arit93@yahoo.com> writes:

Hi,

> One other thing it seems like the large checkin on the 27'th seems to be where
> the change that caused this issue happend.  There seemse to be quite a few
> changes there.  but if I roll the tramp files back to 2007-10-27 then I am able
> to connect and edit files just fine if I update to the 28th it stops working.

Could you, please, apply (setq tramp-verbose 8) and rerun the test? I
would like to see the resulting buffer *tramp/ssh ...* and
*debug tramp/ssh ...*.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-04 20:54       ` Michael Albinus
@ 2007-11-05 13:08         ` AriT93
  2007-11-05 14:05           ` Michael Albinus
  0 siblings, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-05 13:08 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > Hi,
 > 
 > > One other thing it seems like the large checkin on the 27'th seems to be where
 > > the change that caused this issue happend.  There seemse to be quite a few
 > > changes there.  but if I roll the tramp files back to 2007-10-27 then I am able
 > > to connect and edit files just fine if I update to the 28th it stops working.
 > 
 > Could you, please, apply (setq tramp-verbose 8) and rerun the test? I
 > would like to see the resulting buffer *tramp/ssh ...* and
 > *debug tramp/ssh ...*.
 > 
 > Best regards, Michael.

I ran tests on machine's both at work and home  I put the results at: 
http://www.ilstu.edu/~abturet/tramp_debugging/

Thank you for looking at this, tramp is an excellent feature of emacs.
-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 13:08         ` AriT93
@ 2007-11-05 14:05           ` Michael Albinus
  2007-11-05 14:40             ` AriT93
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Albinus @ 2007-11-05 14:05 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

AriT93 <arit93@yahoo.com> writes:

Hi,

> I ran tests on machine's both at work and home  I put the results at: 
> http://www.ilstu.edu/~abturet/tramp_debugging/

Thanks a lot, that's instructive. Your shell prompt contains escape
sequences, Tramp (with its recent patch) has problems with.

Could you, please, apply the appended patch? It won't be the final
patch, I just want to know whether I'm going into the right direction.

Best regards, Michael.

*** /home/albinus/src/tramp/lisp/tramp.el.~1~	Thu Nov  1 14:01:40 2007
--- /home/albinus/src/tramp/lisp/tramp.el	Mon Nov  5 14:59:40 2007
***************
*** 6199,6205 ****
      (let ((found
  	   (tramp-wait-for-regexp
  	    proc timeout
! 	    (format "^%s\r?$" (regexp-quote tramp-end-of-output)))))
        (if found
  	  (let (buffer-read-only)
  	    (goto-char (point-max))
--- 6199,6205 ----
      (let ((found
  	   (tramp-wait-for-regexp
  	    proc timeout
! 	    (format "^[^#$%>\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
        (if found
  	  (let (buffer-read-only)
  	    (goto-char (point-max))

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 14:05           ` Michael Albinus
@ 2007-11-05 14:40             ` AriT93
  2007-11-05 14:49               ` Michael Albinus
  0 siblings, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-05 14:40 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > Hi,
 > 
 > > I ran tests on machine's both at work and home  I put the results at: 
 > > http://www.ilstu.edu/~abturet/tramp_debugging/
 > 
 > Thanks a lot, that's instructive. Your shell prompt contains escape
 > sequences, Tramp (with its recent patch) has problems with.
 > 
 > Could you, please, apply the appended patch? It won't be the final
 > patch, I just want to know whether I'm going into the right direction.
 > 
 > Best regards, Michael.
 > 
 > *** /home/albinus/src/tramp/lisp/tramp.el.~1~	Thu Nov  1 14:01:40 2007
 > --- /home/albinus/src/tramp/lisp/tramp.el	Mon Nov  5 14:59:40 2007
 > ***************
 > *** 6199,6205 ****
 >       (let ((found
 >   	   (tramp-wait-for-regexp
 >   	    proc timeout
 > ! 	    (format "^%s\r?$" (regexp-quote tramp-end-of-output)))))
 >         (if found
 >   	  (let (buffer-read-only)
 >   	    (goto-char (point-max))
 > --- 6199,6205 ----
 >       (let ((found
 >   	   (tramp-wait-for-regexp
 >   	    proc timeout
 > ! 	    (format "^[^#$%>\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
 >         (if found
 >   	  (let (buffer-read-only)
 >   	    (goto-char (point-max))
 > 
I applied the patch and I get a regexp error:  
tramp-wait-for-regexp: Format specifier doesn't match argument type

I updated the page to have the debug outputs:
http://www.ilstu.edu/~abturet/tramp_debugging/  
as well as ouputs from rolling back to 10/27 incase that's helpful

-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 14:40             ` AriT93
@ 2007-11-05 14:49               ` Michael Albinus
  2007-11-05 15:45                 ` AriT93
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Albinus @ 2007-11-05 14:49 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

AriT93 <arit93@yahoo.com> writes:

> I applied the patch and I get a regexp error:  
> tramp-wait-for-regexp: Format specifier doesn't match argument type

Oops. It must be of course

*** /home/albinus/src/tramp/lisp/tramp.el.~1~	Thu Nov  1 14:01:40 2007
--- /home/albinus/src/tramp/lisp/tramp.el	Mon Nov  5 15:41:06 2007
***************
*** 6199,6205 ****
      (let ((found
  	   (tramp-wait-for-regexp
  	    proc timeout
! 	    (format "^%s\r?$" (regexp-quote tramp-end-of-output)))))
        (if found
  	  (let (buffer-read-only)
  	    (goto-char (point-max))
--- 6199,6205 ----
      (let ((found
  	   (tramp-wait-for-regexp
  	    proc timeout
! 	    (format "^[^#$%%>\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
        (if found
  	  (let (buffer-read-only)
  	    (goto-char (point-max))

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 14:49               ` Michael Albinus
@ 2007-11-05 15:45                 ` AriT93
  2007-11-05 20:55                   ` Michael Albinus
  0 siblings, 1 reply; 13+ messages in thread
From: AriT93 @ 2007-11-05 15:45 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > > I applied the patch and I get a regexp error:  
 > > tramp-wait-for-regexp: Format specifier doesn't match argument type
 > 
 > Oops. It must be of course
 > 
 > *** /home/albinus/src/tramp/lisp/tramp.el.~1~	Thu Nov  1 14:01:40 2007
 > --- /home/albinus/src/tramp/lisp/tramp.el	Mon Nov  5 15:41:06 2007
 > ***************
 > *** 6199,6205 ****
 >       (let ((found
 >   	   (tramp-wait-for-regexp
 >   	    proc timeout
 > ! 	    (format "^%s\r?$" (regexp-quote tramp-end-of-output)))))
 >         (if found
 >   	  (let (buffer-read-only)
 >   	    (goto-char (point-max))
 > --- 6199,6205 ----
 >       (let ((found
 >   	   (tramp-wait-for-regexp
 >   	    proc timeout
 > ! 	    (format "^[^#$%%>\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
 >         (if found
 >   	  (let (buffer-read-only)
 >   	    (goto-char (point-max))
 > 
 > 
 > 
 > _______________________________________________
 > Emacs-devel mailing list
 > Emacs-devel@gnu.org
 > http://lists.gnu.org/mailman/listinfo/emacs-devel

That seems to have done the trick!
-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 15:45                 ` AriT93
@ 2007-11-05 20:55                   ` Michael Albinus
  2007-11-05 21:06                     ` AriT93
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Albinus @ 2007-11-05 20:55 UTC (permalink / raw)
  To: AriT93; +Cc: emacs-devel

AriT93 <arit93@yahoo.com> writes:

> That seems to have done the trick!

I've committed a similar patch to Emacs trunk.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 23.0.50; tramp hangs on connect
  2007-11-05 20:55                   ` Michael Albinus
@ 2007-11-05 21:06                     ` AriT93
  0 siblings, 0 replies; 13+ messages in thread
From: AriT93 @ 2007-11-05 21:06 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus writes:
 > AriT93 <arit93@yahoo.com> writes:
 > 
 > > That seems to have done the trick!
 > 
 > I've committed a similar patch to Emacs trunk.
 > 
 > Best regards, Michael.
thank you very much!
-- 

enjoy every sandwich

           -- W. Zevon

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-11-05 21:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 12:45 23.0.50; tramp hangs on connect AriT93
2007-11-02 20:24 ` AriT93
2007-11-03 11:18   ` Michael Albinus
2007-11-03 20:37     ` AriT93
2007-11-04  1:01     ` AriT93
2007-11-04 20:54       ` Michael Albinus
2007-11-05 13:08         ` AriT93
2007-11-05 14:05           ` Michael Albinus
2007-11-05 14:40             ` AriT93
2007-11-05 14:49               ` Michael Albinus
2007-11-05 15:45                 ` AriT93
2007-11-05 20:55                   ` Michael Albinus
2007-11-05 21:06                     ` AriT93

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).