This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sftp




Corinna Vinschen schrieb:
> 
> On Thu, Apr 05, 2001 at 02:04:16PM +0200, Ronald Hecht wrote:
> >
> >
> > Corinna Vinschen schrieb:
> > >
> > > On Wed, Apr 04, 2001 at 07:01:07PM +0200, Ronald Hecht wrote:
> > > > Hi,
> > > >
> > > > i called sftp with -v -v -v and got
> > > >
> > > > sftp> ls
> > > > debug3: Sending SSH2_FXP_READDIR I:3
> > > > debug3: Received reply T:104 I:3
> > > > debug3: Received 38 SSH2_FXP_NAME responses
> > > > d---------   21 administ Domänen-     8192 Apr  16:55 .
> > > > drwxrwxrwx    5 administ Domänen-        0 Jan  09:06 ..
> > > > drwxrwxrwx    2 administ Domänen-        0 Apr  13:38 .autosave
> > > > -rwx------    1 hr55     Domänen-      767 Mar  07:42 .bashrc
> > > >                               ....
> > > > debug3: Sending SSH2_FXP_READDIR I:4
> > > >
> > > > and now it hangs. Seems to me, that the sftp-server did not respond to
> > > > the second SSH2_FXP_READDIR.
> > >
> > > This doesn't help, unfortunately. The connection is made, the
> > > sftp-server (you are using the one I sent yesterday, aren't you?)
> > > is up and running.
> > >
> > > The problem is that I can't reproduce the problem. I have tried
> > > both, RSA and Password authentication, both a local connection
> > > and from a Linux box and with ash, bash and tcsh as login shell.
> > > Either way sftp works as expected.
> > >
> > > We need somebody to seriously debug that problem.
> > >
> >
> > I would do that, but I don't really know how to debug a service or
> > deamon. I've tried with syslog using TRACE (see my last mail), but this
> > isn't really what I understand of debugging, isn't it? Can you or anyone
> > else help me?
> 
> Did you try to reproduce that behaviour when starting sshd from
> the command line using `sshd -d'? If that works, you can start
> sshd from strace:
> 
>         strace -o sshd.strace.out -f C:/cygwin/usr/sbin/sshd -d
> 
> and looking through the strace output.
> 
> Another chance is to connect to your hanging sftp-server using
> gdb. When the program hangs, call `ps' to get the Windows PID
> of sftp-server and call
> 
>         gdb -nw /usr/sbin/sshd WINPID
> 
> Then you can get switch to thread 1
> 
>         thread 1
> 
> and print a stacktrace
> 
>         bt
> 
> which could help.
> 

That's what I got with gdb:

(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x77f7754b in ?? ()

(gdb) bt
#0  0x77f7754b in ?? ()
#1  0x77f0c51a in ?? ()
#2  0x61005755 in _size_of_stack_reserve__ ()
#3  0x40298b in process_readdir () at sftp-server.c:773
#4  0x403485 in process () at sftp-server.c:997
#5  0x4037d2 in main (ac=1, av=0x1a035a18) at sftp-server.c:1104
#6  0x61003cea in _size_of_stack_reserve__ ()
#7  0x61003f95 in _size_of_stack_reserve__ ()
#8  0x61003fe4 in _size_of_stack_reserve__ ()
#9  0x40c873 in cygwin_crt0 ()

Ronald


> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin@cygwin.com
> Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]