unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs hangs at occasions using tramp + opensshd(cygwin)
@ 2008-04-01  8:55 William Xu
  2008-04-01 10:20 ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-01  8:55 UTC (permalink / raw)
  To: emacs-pretest-bug

I'm editing some text files on a remote Windows XP machine, using tramp
+ opensshd(on cygwin).  Occasionally, emacs would suddenly hang.  I
have experienced this several times, but still have no clue what might
cause that.  Today luckily I started it in gdb, so I got a backtrace
attached below: 

---------------------------------8<------------------------------------- 
(gdb) bt 10
#0  0x9083072e in select$DARWIN_EXTSN$NOCANCEL ()
#1  0x9087eba1 in select ()
#2  0x0014799b in *_sys_select$UNIX2003 (nfds=26, rfds=0xbfffae98, wfds=0x0,
efds=0x0, timeout=0xbfffaf18) at mac.c:5138
#3  0x0012f03f in wait_reading_process_output (time_limit=1, microsecs=0,
read_kbd=0, do_display=0, wait_for_cell=2
5165833, wait_proc=0x18ad5190, just_wait_proc=0) at process.c:4601
#4  0x001313e4 in Faccept_process_output (process=414011796, seconds=8,
millisec=25165833, just_this_one=25165833) at process.c:3971
#5  0x000f3ecc in Ffuncall (nargs=4, args=0xbfffb050) at eval.c:3003
#6  0x0012618b in Fbyte_code (bytestr=35867795, vector=379803252, maxdepth=4)
at bytecode.c:679
#7  0x000f3791 in funcall_lambda (fun=379803380, nargs=2,
arg_vector=0xbfffb1d4) at eval.c:3180
#8  0x000f3cab in Ffuncall (nargs=3, args=0xbfffb1d0) at eval.c:3050
#9  0x0012618b in Fbyte_code (bytestr=36100227, vector=379807748, maxdepth=8)
at bytecode.c:679

(gdb) bt 3 full
#0  0x9083072e in select$DARWIN_EXTSN$NOCANCEL ()
No symbol table info available.
#1  0x9087eba1 in select ()
No symbol table info available.
#2  0x0014799b in *_sys_select$UNIX2003 (nfds=26, rfds=0xbfffae98, wfds=0x0,
efds=0x0, timeout=0xbfffaf18) at mac.c:5138
err = 382152820
r = 4
select_timeout = {
    tv_sec = 1207038505,
    tv_usec = 2417
}
ofds = {{
    fds_bits = {58227840, 0 <repeats 31
        times>}
}, {
    fds_bits = {0 <repeats 32
        times>}
}, {
    fds_bits = {0 <repeats 32
        times>}
}}
#3  0x0012f03f in wait_reading_process_output (time_limit=1, microsecs=0,
        read_kbd=0, do_display=0, wait_for_cell=2
        5165833, wait_proc=0x18ad5190, just_wait_proc=0) at process.c:4601
timeout_reduced_for_timers = 1
channel = 26
nfds = 0
Available = {
    fds_bits = {58227840, 0 <repeats 31 times>}
}
Connecting = {
    fds_bits = {0 <repeats 32 times>}
}
check_connect = 0
check_delay = 0
no_avail =
<value temporarily unavailable, due to optimizations>
    xerrno = 11
    proc = <value temporarily unavailable, due to optimizations>
timeout =
{
    tv_sec = 0,
    tv_usec = 28957
}
end_time =
{
    tv_sec = 1207038505,
    tv_usec = 333876
}
wait_channel = 19
got_some_input = 0
---------------------------------8<------------------------------------- 

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Users/william/share/emacs/22.1.91/etc/DEBUG for instructions.


In GNU Emacs 22.2.50.1 (i386-apple-darwin9.2.0, Carbon Version 1.6.0)
 of 2008-03-27 on zen
Windowing system distributor `Apple Inc.', version 10.5.2
configured using `configure  '--prefix=/Users/william' '--with-carbon' '--without-x''

Important settings:
  value of $LC_ALL: nil
  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: nil
  locale-coding-system: chinese-iso-8bit
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  erc-menu-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-netsplit-mode: t
  encoded-kbd-mode: t
  which-function-mode: t
  global-pabbrev-mode: t
  pabbrev-mode: t
  erc-truncate-mode: t
  erc-log-mode: t
  erc-spelling-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-smiley-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-readonly-mode: t
  shell-dirtrack-mode: t
  page-break-mode: t
  display-time-mode: t
  recentf-mode: t
  smart-operator-mode: t
  global-auto-revert-mode: t
  show-paren-mode: t
  less-minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  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
  abbrev-mode: t

Recent input:
q C-c n E C-c C-@ C-c m s C-x C-f t m p <return> C-j 
M-> M-< C-s b u g C-s <return> <return> j j f f G g 
j j j j j j g j j j j j j j j j j j j j j j j j j j 
j j j j j j e DEL C-l C-c C-@ <f11> <f11> <f11> <f11> 
<f11> <f11> <f11> <f11> <f11> <f11> <f11> <f11> <f11> 
<f11> <f11> <f11> <f11> <f11> <f11> C-n C-n C-n C-b 
C-M-n C-M-n C-n C-k C-l C-n C-n C-n C-n C-n C-n C-n 
C-l C-n C-p C-p C-e C-b C-M-n C-M-n C-M-n C-M-n C-l 
C-p C-p C-p C-p C-p C-p C-n C-p C-p C-p C-p C-p C-p 
C-n C-n C-n C-n C-n C-n C-p C-e C-k M-¥ C-e C-k M-¥ 
C-n C-k M-¥ C-e C-k M-¥ C-n C-n C-n C-k C-a DEL SPC 
C-f SPC C-n C-k SPC C-e C-k SPC C-e <return> C-x C-s 
M-< C-c v j j g f f g f g f f f f b g f f f f g G g 
G g M-x e m m s - r e p C-g M-x r e p o r <tab> e m 
a <tab> b <tab> <return>

Recent messages:
Omitting...
Omitted 3 lines.
Less minor mode enabled
Mark set [3 times]
call-interactively: End of buffer [2 times]
Mark set
call-interactively: End of buffer [2 times]
Mark set [5 times]
Quit
Loading emacsbug...done

-- 
William

http://williamxu.net9.org




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

* emacs hangs at occasions using tramp + opensshd(cygwin)
@ 2008-04-01  8:56 William Xu
  0 siblings, 0 replies; 14+ messages in thread
From: William Xu @ 2008-04-01  8:56 UTC (permalink / raw)
  To: emacs-pretest-bug

I'm editing some text files on a remote Windows XP machine, using tramp
+ opensshd(on cygwin).  Occasionally, emacs would suddenly hang.  I
have experienced this several times, but still have no clue what might
cause that.  Today luckily I started it in gdb, so I got a backtrace
attached below: 

---------------------------------8<------------------------------------- 
(gdb) bt 10
#0  0x9083072e in select$DARWIN_EXTSN$NOCANCEL ()
#1  0x9087eba1 in select ()
#2  0x0014799b in *_sys_select$UNIX2003 (nfds=26, rfds=0xbfffae98, wfds=0x0,
efds=0x0, timeout=0xbfffaf18) at mac.c:5138
#3  0x0012f03f in wait_reading_process_output (time_limit=1, microsecs=0,
read_kbd=0, do_display=0, wait_for_cell=2
5165833, wait_proc=0x18ad5190, just_wait_proc=0) at process.c:4601
#4  0x001313e4 in Faccept_process_output (process=414011796, seconds=8,
millisec=25165833, just_this_one=25165833) at process.c:3971
#5  0x000f3ecc in Ffuncall (nargs=4, args=0xbfffb050) at eval.c:3003
#6  0x0012618b in Fbyte_code (bytestr=35867795, vector=379803252, maxdepth=4)
at bytecode.c:679
#7  0x000f3791 in funcall_lambda (fun=379803380, nargs=2,
arg_vector=0xbfffb1d4) at eval.c:3180
#8  0x000f3cab in Ffuncall (nargs=3, args=0xbfffb1d0) at eval.c:3050
#9  0x0012618b in Fbyte_code (bytestr=36100227, vector=379807748, maxdepth=8)
at bytecode.c:679

(gdb) bt 3 full
#0  0x9083072e in select$DARWIN_EXTSN$NOCANCEL ()
No symbol table info available.
#1  0x9087eba1 in select ()
No symbol table info available.
#2  0x0014799b in *_sys_select$UNIX2003 (nfds=26, rfds=0xbfffae98, wfds=0x0,
efds=0x0, timeout=0xbfffaf18) at mac.c:5138
err = 382152820
r = 4
select_timeout = {
    tv_sec = 1207038505,
    tv_usec = 2417
}
ofds = {{
    fds_bits = {58227840, 0 <repeats 31
        times>}
}, {
    fds_bits = {0 <repeats 32
        times>}
}, {
    fds_bits = {0 <repeats 32
        times>}
}}
#3  0x0012f03f in wait_reading_process_output (time_limit=1, microsecs=0,
        read_kbd=0, do_display=0, wait_for_cell=2
        5165833, wait_proc=0x18ad5190, just_wait_proc=0) at process.c:4601
timeout_reduced_for_timers = 1
channel = 26
nfds = 0
Available = {
    fds_bits = {58227840, 0 <repeats 31 times>}
}
Connecting = {
    fds_bits = {0 <repeats 32 times>}
}
check_connect = 0
check_delay = 0
no_avail =
<value temporarily unavailable, due to optimizations>
    xerrno = 11
    proc = <value temporarily unavailable, due to optimizations>
timeout =
{
    tv_sec = 0,
    tv_usec = 28957
}
end_time =
{
    tv_sec = 1207038505,
    tv_usec = 333876
}
wait_channel = 19
got_some_input = 0
---------------------------------8<------------------------------------- 

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Users/william/share/emacs/22.1.91/etc/DEBUG for instructions.


In GNU Emacs 22.2.50.1 (i386-apple-darwin9.2.0, Carbon Version 1.6.0)
 of 2008-03-27 on zen
Windowing system distributor `Apple Inc.', version 10.5.2
configured using `configure  '--prefix=/Users/william' '--with-carbon' '--without-x''

Important settings:
  value of $LC_ALL: nil
  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: nil
  locale-coding-system: chinese-iso-8bit
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  erc-menu-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-netsplit-mode: t
  encoded-kbd-mode: t
  which-function-mode: t
  global-pabbrev-mode: t
  pabbrev-mode: t
  erc-truncate-mode: t
  erc-log-mode: t
  erc-spelling-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-smiley-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-readonly-mode: t
  shell-dirtrack-mode: t
  page-break-mode: t
  display-time-mode: t
  recentf-mode: t
  smart-operator-mode: t
  global-auto-revert-mode: t
  show-paren-mode: t
  less-minor-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  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
  abbrev-mode: t

Recent input:
q C-c n E C-c C-@ C-c m s C-x C-f t m p <return> C-j 
M-> M-< C-s b u g C-s <return> <return> j j f f G g 
j j j j j j g j j j j j j j j j j j j j j j j j j j 
j j j j j j e DEL C-l C-c C-@ <f11> <f11> <f11> <f11> 
<f11> <f11> <f11> <f11> <f11> <f11> <f11> <f11> <f11> 
<f11> <f11> <f11> <f11> <f11> <f11> C-n C-n C-n C-b 
C-M-n C-M-n C-n C-k C-l C-n C-n C-n C-n C-n C-n C-n 
C-l C-n C-p C-p C-e C-b C-M-n C-M-n C-M-n C-M-n C-l 
C-p C-p C-p C-p C-p C-p C-n C-p C-p C-p C-p C-p C-p 
C-n C-n C-n C-n C-n C-n C-p C-e C-k M-¥ C-e C-k M-¥ 
C-n C-k M-¥ C-e C-k M-¥ C-n C-n C-n C-k C-a DEL SPC 
C-f SPC C-n C-k SPC C-e C-k SPC C-e <return> C-x C-s 
M-< C-c v j j g f f g f g f f f f b g f f f f g G g 
G g M-x e m m s - r e p C-g M-x r e p o r <tab> e m 
a <tab> b <tab> <return>

Recent messages:
Omitting...
Omitted 3 lines.
Less minor mode enabled
Mark set [3 times]
call-interactively: End of buffer [2 times]
Mark set
call-interactively: End of buffer [2 times]
Mark set [5 times]
Quit
Loading emacsbug...done

-- 
William

http://williamxu.net9.org




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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-01  8:55 emacs hangs at occasions using tramp + opensshd(cygwin) William Xu
@ 2008-04-01 10:20 ` Michael Albinus
  2008-04-01 10:32   ` William Xu
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2008-04-01 10:20 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-pretest-bug

William Xu <william.xwl@gmail.com> writes:

> I'm editing some text files on a remote Windows XP machine, using tramp
> + opensshd(on cygwin).  Occasionally, emacs would suddenly hang.  I
> have experienced this several times, but still have no clue what might
> cause that.  Today luckily I started it in gdb, so I got a backtrace
> attached below: 
>
> #4  0x001313e4 in Faccept_process_output (process=414011796, seconds=8,
> millisec=25165833, just_this_one=25165833) at process.c:3971

Tramp is waiting for output from the local ssh process. For further
analysis, it might be useful if you set (setq tramp-verbose 10) before
the next test run.

The resulting Tramp debug buffer could give us more information.
Please send it via "M-x tramp-submit-bug".

Best regards, Michael.





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-01 10:20 ` Michael Albinus
@ 2008-04-01 10:32   ` William Xu
  2008-04-01 11:25     ` William Xu
  2008-04-01 12:02     ` Michael Albinus
  0 siblings, 2 replies; 14+ messages in thread
From: William Xu @ 2008-04-01 10:32 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug

Michael Albinus <michael.albinus@gmx.de> writes:

> The resulting Tramp debug buffer could give us more information.
> Please send it via "M-x tramp-submit-bug".

I'm afraid when emacs hangs, any key inputs are non-responsive.  The
only thing i can do to kill it and restart.  

-- 
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-01 10:32   ` William Xu
@ 2008-04-01 11:25     ` William Xu
  2008-04-02 14:16       ` Michael Albinus
  2008-04-01 12:02     ` Michael Albinus
  1 sibling, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-01 11:25 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug, tramp-devel

Enter your bug report in this message, including as much detail as you
possibly can about the problem, what you did to cause it and what the
local and remote machines are.

If you can give a simple set of instructions to make this bug happen
reliably, please include those.  Thank you for helping kill bugs in
TRAMP.

Another useful thing to do is to put (setq tramp-debug-buffer t) in
the ~/.emacs file and to repeat the bug.  Then, include the contents
of the *tramp/foo* buffer and the *debug tramp/foo* buffer in your bug
report.

--bug report follows this line--

I managed to get all the following through `emacsclient -e'.  One
interesting thing is that when I run tramp-submit-bug from emacsclient,
the emacs server will allow me to write title in the minibuffer, select
the y-or-n-p question, and after that, it refuses any key inputs again...

When emacs hangs: 

,----[ minibuffer ]
| trmap: file attributes with perl: /ssh:/.../
`----

The following is the tramp debug buffer, IIUC? 

,----[ "*tramp/ssh xwl@ananas*" ] 
| (nil 1 1003 513 (18418 5134) (18417 61710) (18417 61710) 2806 33216 t (0 . 10609) -1)
`----

Emacs  : GNU Emacs 22.2.50.1 (i386-apple-darwin9.2.0, Carbon Version 1.6.0)
 of 2008-03-27 on zen
Package: tramp (2.0.57)

current state:
==============
(setq
 tramp-ls-command nil
 tramp-test-groks-nt nil
 tramp-file-exists-command nil
 tramp-current-multi-method nil
 tramp-current-method nil
 tramp-current-user nil
 tramp-current-host nil
 tramp-auto-save-directory nil
 tramp-default-method "scp"
 tramp-rsh-end-of-line "\n"
 tramp-default-password-end-of-line "\n"
 tramp-remote-path '("/usr/xpg4/bin" "/bin" "/usr/bin" "/usr/sbin"
                     "/usr/local/bin" "/usr/ccs/bin" "/local/bin"
                     "/local/freeware/bin" "/local/gnu/bin"
                     "/usr/freeware/bin"
                     "/usr/pkg/bin" "/usr/contrib/bin")
 tramp-login-prompt-regexp ".*ogin\\( .*\\)?: *"
 ;; variable encoded due to non-printable characters
 tramp-password-prompt-regexp (base64-decode-string "Xi4qXChbcFBdYXNzd29yZFx8cGFzc3BocmFzZVwpLio6AD8gKg==")
 tramp-wrong-passwd-regexp "^.*\\(Connection \\(?:\\(?:clo\\|refu\\)sed\\)\\|Host key verification failed\\.\\|Login \\(?:[Ii]ncorrect\\)\\|Name or service not known\\|\\(?:Permission denied\\|Sorry, try again\\)\\.\\).*\\|^.*\\(Received signal [0-9]+\\).*"
 tramp-yesno-prompt-regexp "\\(Are you sure you want to continue connecting (yes/no)\\?\\)\\s-*"
 tramp-yn-prompt-regexp "\\(\\(?:Store key in cache\\? (y/\\|Update cached key\\? (y/n, Return cancels connectio\\)n)\\)\\s-*"
 tramp-terminal-prompt-regexp "\\(TERM = (.*)\\|Terminal type\\? \\[.*\\]\\)\\s-*"
 tramp-temp-name-prefix "tramp."
 tramp-file-name-structure '("^/\\(\\([a-zA-Z_0-9-]+\\):\\)?\\(\\([^:/ 	]*\\)@\\)?\\([a-zA-Z0-9_.#-]*\\):\\(.*$\\)" 2 4 5 6)
 tramp-file-name-regexp "\\`/[^/:]+:"
 tramp-multi-file-name-structure '("^/\\(\\([a-zA-Z_0-9-]+\\)\\)?\\(\\(:%s\\)+\\)?:\\(.*$\\)" 2 3 -1)
 tramp-multi-file-name-hop-structure '("\\([a-zA-Z_0-9-]+\\):\\([^:/ 	]*\\)@\\([a-zA-Z0-9_.#-]*\\)" 1 2 3)
 tramp-multi-methods '("multi" "multiu")
 tramp-multi-connection-function-alist '(("telnet"
                                          tramp-multi-connect-telnet
                                          "telnet %h%n") ("rsh"
                                                          tramp-multi-connect-rlogin
                                                          "rsh %h -l
%u%n")
                                         ("remsh"
                                          tramp-multi-connect-rlogin
                                          "remsh %h -l %u%n") ("ssh"
                                                               tramp-multi-connect-rlogin
                                                               "ssh %h
-l %u%n")
                                         ("ssht"
                                          tramp-multi-connect-rlogin
                                          "ssh %h -e none -t -t -l
%u%n") ("su" tramp-multi-connect-su "su - %u%n")
                                         ("sudo" tramp-multi-connect-su "sudo -u %u -s -p Password:%n"))
 tramp-methods '(("smb") ("ftp")
                 ("rcp" (tramp-connection-function
                         tramp-open-connection-rsh) (tramp-login-program
                                                     "rsh")
                  (tramp-copy-program "rcp") (tramp-remote-sh "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scp" (tramp-connection-function
                         tramp-open-connection-rsh) (tramp-login-program
                                                     "ssh")
                  (tramp-copy-program "scp") (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scp1" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program "scp")
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-1" "-e" "none")) (tramp-copy-args
                                                         ("-1"))
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scp2" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program "scp")
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-2" "-e" "none")) (tramp-copy-args
                                                         ("-2"))
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scp1_old" (tramp-connection-function
                              tramp-open-connection-rsh)
                  (tramp-login-program "ssh1") (tramp-copy-program
                                                "scp1") (tramp-remote-sh
                                                         "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scp2_old" (tramp-connection-function
                              tramp-open-connection-rsh)
                  (tramp-login-program "ssh2") (tramp-copy-program
                                                "scp2") (tramp-remote-sh
                                                         "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("rsync" (tramp-connection-function
                           tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program
                                               "rsync") (tramp-remote-sh
                                                         "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args
                                                    ("-e" "ssh"))
                  (tramp-copy-keep-date-arg "-t")
                  (tramp-password-end-of-line nil))
                 ("remcp" (tramp-connection-function
                           tramp-open-connection-rsh)
                  (tramp-login-program "remsh") (tramp-copy-program
                                                 "rcp") (tramp-remote-sh
                                                         "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("rsh" (tramp-connection-function
                         tramp-open-connection-rsh) (tramp-login-program
                                                     "rsh")
                  (tramp-copy-program nil) (tramp-remote-sh "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("ssh" (tramp-connection-function
                         tramp-open-connection-rsh) (tramp-login-program
                                                     "ssh")
                  (tramp-copy-program nil) (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("ssh1" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-1" "-e" "none")) (tramp-copy-args
                                                         ("-1"))
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("ssh2" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-2" "-e" "none")) (tramp-copy-args
                                                         ("-2"))
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("ssh1_old" (tramp-connection-function
                              tramp-open-connection-rsh)
                  (tramp-login-program "ssh1") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("ssh2_old" (tramp-connection-function
                              tramp-open-connection-rsh)
                  (tramp-login-program "ssh2") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("remsh" (tramp-connection-function
                           tramp-open-connection-rsh)
                  (tramp-login-program "remsh") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("telnet" (tramp-connection-function
                            tramp-open-connection-telnet)
                  (tramp-login-program "telnet") (tramp-copy-program
                                                  nil) (tramp-remote-sh
                                                        "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("su" (tramp-connection-function
                        tramp-open-connection-su) (tramp-login-program
                                                   "su")
                  (tramp-copy-program nil) (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-" "%u")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("sudo" (tramp-connection-function
                          tramp-open-connection-su) (tramp-login-program
                                                     "sudo")
                  (tramp-copy-program nil) (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-u" "%u" "-s" "-p" "Password:"))
                  (tramp-copy-args nil) (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("multi" (tramp-connection-function
                           tramp-open-connection-multi)
                  (tramp-login-program nil) (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args nil) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("scpc" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program "scp")
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-o" "ControlPath=%t.%%r@%%h:%%p"
                                     "-o" "ControlMaster=yes" "-e"
                                     "none"))
                  (tramp-copy-args ("-o" "ControlPath=%t.%%r@%%h:%%p"
                                    "-o" "ControlMaster=auto"))
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("scpx" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program "scp")
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none" "-t" "-t" "/bin/sh"))
                  (tramp-copy-args nil) (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 ("sshx" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "ssh") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-e" "none" "-t" "-t" "/bin/sh"))
                  (tramp-copy-args nil) (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("krlogin" (tramp-connection-function
                             tramp-open-connection-rsh)
                  (tramp-login-program "krlogin") (tramp-copy-program
                                                   nil) (tramp-remote-sh
                                                         "/bin/sh")
                  (tramp-login-args ("-x")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line nil))
                 ("plink" (tramp-connection-function
                           tramp-open-connection-rsh)
                  (tramp-login-program "plink") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-ssh")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line "xy"))
                 ("plink1" (tramp-connection-function
                            tramp-open-connection-rsh)
                  (tramp-login-program "plink") (tramp-copy-program nil)
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-1" "-ssh")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg nil)
                  (tramp-password-end-of-line "xy"))
                 ("pscp" (tramp-connection-function
                          tramp-open-connection-rsh)
                  (tramp-login-program "plink") (tramp-copy-program
                                                 "pscp")
                  (tramp-remote-sh "/bin/sh")
                  (tramp-login-args ("-ssh")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line "xy"))
                 ("fcp" (tramp-connection-function
                         tramp-open-connection-rsh) (tramp-login-program
                                                     "fsh")
                  (tramp-copy-program "fcp") (tramp-remote-sh "/bin/sh
-i")
                  (tramp-login-args ("sh" "-i")) (tramp-copy-args nil)
                  (tramp-copy-keep-date-arg "-p")
                  (tramp-password-end-of-line nil))
                 )
 tramp-end-of-output "///34def8ce8ab5ba873fc9a2092cd8ec98"
 tramp-coding-commands '(("mimencode -b" "mimencode -u -b"
                          base64-encode-region base64-decode-region)
                         ("mmencode -b" "mmencode -u -b"
                          base64-encode-region base64-decode-region)
                         ("recode data..base64" "recode base64..data"
                          base64-encode-region base64-decode-region)
                         ("uuencode xxx" "uudecode -o /dev/stdout"
                          tramp-uuencode-region uudecode-decode-region)
                         ("uuencode xxx" "uudecode -o -"
                          tramp-uuencode-region uudecode-decode-region)
                         ("uuencode xxx" "uudecode -p"
                          tramp-uuencode-region uudecode-decode-region)
                         ("uuencode xxx" "tramp_uudecode"
                          tramp-uuencode-region uudecode-decode-region)
                         ("tramp_encode_with_module"
                          "tramp_decode_with_module"
                          base64-encode-region base64-decode-region)
                         ("tramp_encode" "tramp_decode" base64-encode-region base64-decode-region))
 tramp-actions-before-shell '((tramp-password-prompt-regexp
                               tramp-action-password)
                              (tramp-login-prompt-regexp
                               tramp-action-login) (shell-prompt-pattern
                                                    tramp-action-succeed)
                              (tramp-shell-prompt-pattern
                               tramp-action-succeed)
                              (tramp-wrong-passwd-regexp
                               tramp-action-permission-denied)
                              (tramp-yesno-prompt-regexp
                               tramp-action-yesno)
                              (tramp-yn-prompt-regexp tramp-action-yn)
                              (tramp-terminal-prompt-regexp
                               tramp-action-terminal)
                              (tramp-process-alive-regexp tramp-action-process-alive))
 tramp-actions-copy-out-of-band '((tramp-password-prompt-regexp
                                   tramp-action-password)
                                  (tramp-wrong-passwd-regexp
                                   tramp-action-permission-denied)
                                  (tramp-copy-failed-regexp tramp-action-copy-failed) (tramp-process-alive-regexp tramp-action-out-of-band))
 tramp-multi-actions '((tramp-password-prompt-regexp
                        tramp-multi-action-password)
                       (tramp-login-prompt-regexp
                        tramp-multi-action-login)
                       (shell-prompt-pattern tramp-multi-action-succeed)
                       (tramp-shell-prompt-pattern
                        tramp-multi-action-succeed)
                       (tramp-wrong-passwd-regexp tramp-multi-action-permission-denied) (tramp-process-alive-regexp tramp-multi-action-process-alive))
 tramp-terminal-type "dumb"
 ;; variable encoded due to non-printable characters
 tramp-shell-prompt-pattern (base64-decode-string "XlteIyQlPgpdKlsjJCU+XSAqXCgbXFtbMC05O10qW2EtekEtWl0gKlwpKg==")
 tramp-chunksize nil
 tramp-backup-directory-alist nil
 shell-prompt-pattern "^[^#$%>\n]*[#$%>] *"
 backup-by-copying t
 backup-by-copying-when-linked t
 backup-by-copying-when-mismatch t
 backup-by-copying-when-privileged-mismatch 200
 backup-directory-alist '(("." . "~/.emacs.backups"))
 file-name-handler-alist
 '(("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.tbz\\'\\|\\.tgz\\'\\|\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.dz\\'"
    .
    jka-compr-handler) ("^/$\\|^/[^/:][^/]*$"
                        . tramp-completion-file-name-handler)
   ("\\`/[^/:]+:" . tramp-file-name-handler) ("\\`/:"
                                              . file-name-non-special))
 )

 --
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-01 10:32   ` William Xu
  2008-04-01 11:25     ` William Xu
@ 2008-04-01 12:02     ` Michael Albinus
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-04-01 12:02 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

William Xu <william.xwl@gmail.com> writes:

> I'm afraid when emacs hangs, any key inputs are non-responsive.  The
> only thing i can do to kill it and restart.  

Which Tramp version do you use?

Best regards, Michael.





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-01 11:25     ` William Xu
@ 2008-04-02 14:16       ` Michael Albinus
  2008-04-02 14:36         ` William Xu
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2008-04-02 14:16 UTC (permalink / raw)
  To: William Xu; +Cc: tramp-devel, emacs-devel

Hi William,

Unfortunately, it still doesn't give enough information. Usually, when
I run Emacs under gnu/linux or hpux, I'm able to unlock a stalled
Emacs sending the FPE signal. Could you try it on your system?

When it works, it would be great to see the Tramp debug
buffer. tramp-verbose shall be 9 or 10.

> William

Best regards, Michael.





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-02 14:16       ` Michael Albinus
@ 2008-04-02 14:36         ` William Xu
  2008-04-07  9:25           ` William Xu
  0 siblings, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-02 14:36 UTC (permalink / raw)
  To: emacs-devel; +Cc: tramp-devel

Michael Albinus <michael.albinus@gmx.de> writes:

> Unfortunately, it still doesn't give enough information. Usually, when
> I run Emacs under gnu/linux or hpux, I'm able to unlock a stalled
> Emacs sending the FPE signal. Could you try it on your system?

Okay, I'll try it tomorrow.  (I can't access Windows XP now)

> tramp-verbose shall be 9 or 10.

I've already set it to 10 in my .emacs.  

-- 
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-02 14:36         ` William Xu
@ 2008-04-07  9:25           ` William Xu
  2008-04-07 18:28             ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-07  9:25 UTC (permalink / raw)
  To: emacs-devel; +Cc: tramp-devel

William Xu <william.xwl@gmail.com> writes:

>> Unfortunately, it still doesn't give enough information. Usually, when
>> I run Emacs under gnu/linux or hpux, I'm able to unlock a stalled
>> Emacs sending the FPE signal. Could you try it on your system?

Yes, like you said.  Sending FPE signal can unlock the stalled Emacs.
But I can't find the tramp debug buffer? Only these two buffers: 

,----[ *tramp/ssh xwl@ananas* ]
| (nil 1 1003 513 (18425 58840) (18425 58829) (18425 58829) 746 33216 t (0 . 1787) -1)
`----

,----[ *tramp output* ]
`----

What shall I do now? 

Other information: 

,----[ C-h v tramp-verbose RET ]
| tramp-verbose is a variable defined in `tramp.el'.
| Its value is 10
| 
| 
| Documentation:
| *Verbosity level for tramp.el.  0 means be silent, 10 is most verbose.
| 
| You can customize this variable.
| 
| [back]
`----

,----[ C-h v tramp-version RET ]
| tramp-version is a variable defined in `trampver.el'.
| Its value is "2.0.57"
| 
| 
| Documentation:
| This version of Tramp.
| 
| [back]
`----

-- 
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-07  9:25           ` William Xu
@ 2008-04-07 18:28             ` Michael Albinus
  2008-04-10  7:54               ` William Xu
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2008-04-07 18:28 UTC (permalink / raw)
  To: William Xu; +Cc: tramp-devel, emacs-devel

William Xu <william.xwl@gmail.com> writes:

> William Xu <william.xwl@gmail.com> writes:
>
>>> Unfortunately, it still doesn't give enough information. Usually, when
>>> I run Emacs under gnu/linux or hpux, I'm able to unlock a stalled
>>> Emacs sending the FPE signal. Could you try it on your system?
>
> Yes, like you said.  Sending FPE signal can unlock the stalled Emacs.
> But I can't find the tramp debug buffer? Only these two buffers: 

Sorry, I forgot we are with Tramp 2.0. Here you need to set additionally

  (setq tramp-debug-buffer t)

Best regards, Michael.




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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-07 18:28             ` Michael Albinus
@ 2008-04-10  7:54               ` William Xu
  2008-04-11  5:04                 ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-10  7:54 UTC (permalink / raw)
  To: emacs-devel; +Cc: tramp-devel

Michael Albinus <michael.albinus@gmx.de> writes:

> Sorry, I forgot we are with Tramp 2.0. Here you need to set additionally
>
>   (setq tramp-debug-buffer t)

With this on, I can find the debug buffer.  I gathered two cases when it
happened.  I look into the debug buffer, the last part(path name
slightly shortened) is:

---------------------------------8<------------------------------------- 
# file attributes with perl: /ssh:xwl@ananas:/cygdrive/f/foo
$ tramp_file_attributes /cygdrive/f/foo integer
(nil 1 1003 513 (18429 50382) (18428 37471) (18428 37471) 976 33216 t (0 . 10368) -1)
$ test -e /cygdrive/f/foo 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
# file attributes with perl: /ssh:xwl@ananas:/cygdrive/f/foo
$ tramp_file_attributes /cygdrive/f/foo integer
(nil 1 1003 513 (18429 50382) (18428 37471) (18428 37471) 976 33216 t (0 . 10368) -1)
$ test -e /cygdrive/f/foo 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
# file attributes with perl: /ssh:xwl@ananas:/cygdrive/f/foo
$ tramp_file_attributes /cygdrive/f/foo integer
(nil 1 1003 513 (18429 50382) (18428 37471) (18428 37471) 976 33216 t (0 . 10368) -1)
$ test -e /cygdrive/f/foo 2>/dev/null; echo tramp_exit_status $?
tramp_exit_status 0
# file attributes with perl: /ssh:xwl@ananas:/cygdrive/f/foo
$ tramp_file_attributes /cygdrive/f/foo integer
(nil 1 1003 513 (18429 50382) (18428 37471) (18428 37471) 976 33216 t (0 . 10368) -1)
---------------------------------8<------------------------------------- 

Doesn't seem very helpful to me.  

-- 
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-10  7:54               ` William Xu
@ 2008-04-11  5:04                 ` Michael Albinus
  2008-04-11 10:35                   ` William Xu
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2008-04-11  5:04 UTC (permalink / raw)
  To: William Xu; +Cc: tramp-devel, emacs-devel

William Xu <william.xwl@gmail.com> writes:

> With this on, I can find the debug buffer.  I gathered two cases when it
> happened.  I look into the debug buffer, the last part(path name
> slightly shortened) is:

[...]

> Doesn't seem very helpful to me.  

Yes. Do you see a chance to access that remote machine by me, for
debugging?

Best regards, Michael.




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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-11  5:04                 ` Michael Albinus
@ 2008-04-11 10:35                   ` William Xu
  2008-04-11 11:54                     ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: William Xu @ 2008-04-11 10:35 UTC (permalink / raw)
  To: emacs-devel; +Cc: tramp-devel

Michael Albinus <michael.albinus@gmx.de> writes:

> Do you see a chance to access that remote machine by me, for
> debugging?

I'm afraid not, since this machine is inside the company, and I don't
have Windows XP at home.  :(

At present, this problem may be placed in a low priority. (This problem
doesn't seem to happen frequently anyway).  Were I able to gather more
useful debug information, I would follow up this thread.

-- 
William

http://williamxu.net9.org





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

* Re: emacs hangs at occasions using tramp + opensshd(cygwin)
  2008-04-11 10:35                   ` William Xu
@ 2008-04-11 11:54                     ` Michael Albinus
  0 siblings, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-04-11 11:54 UTC (permalink / raw)
  To: William Xu; +Cc: tramp-devel, emacs-devel

William Xu <william.xwl@gmail.com> writes:

> At present, this problem may be placed in a low priority. (This problem
> doesn't seem to happen frequently anyway).  Were I able to gather more
> useful debug information, I would follow up this thread.

OK. Maybe you can rerun the test once you have switched to Tramp 2.1
(part of Emacs 23, or the standalone distribution). It has some
changed communication characteristics, and it has much more
sophisticated trace facilities.

Best regards, Michael.





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

end of thread, other threads:[~2008-04-11 11:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01  8:55 emacs hangs at occasions using tramp + opensshd(cygwin) William Xu
2008-04-01 10:20 ` Michael Albinus
2008-04-01 10:32   ` William Xu
2008-04-01 11:25     ` William Xu
2008-04-02 14:16       ` Michael Albinus
2008-04-02 14:36         ` William Xu
2008-04-07  9:25           ` William Xu
2008-04-07 18:28             ` Michael Albinus
2008-04-10  7:54               ` William Xu
2008-04-11  5:04                 ` Michael Albinus
2008-04-11 10:35                   ` William Xu
2008-04-11 11:54                     ` Michael Albinus
2008-04-01 12:02     ` Michael Albinus
  -- strict thread matches above, loose matches on Subject: below --
2008-04-01  8:56 William Xu

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).