Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 05 Apr 2001 18:07:37 +0200 From: Ronald Hecht Subject: Re: sftp To: Corinna Vinschen Reply-to: ronald DOT hecht AT gmx DOT de Message-id: <3ACC9849.C40549C2@gmx.de> MIME-version: 1.0 X-Mailer: Mozilla 4.75 [de] (WinNT; U) Content-type: text/plain; charset=iso-8859-1 X-Accept-Language: de References: <3ACB5353 DOT E8C8F77B AT gmx DOT de> <20010405105016 DOT M956 AT cygbert DOT vinschen DOT de> <3ACC5F40 DOT D064F813 AT gmx DOT de> <20010405170141 DOT C4845 AT cygbert DOT vinschen DOT de> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id LAA22675 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 AT cygwin DOT 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