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, 5 Apr 2001 17:01:41 +0200 From: Corinna Vinschen To: cygwin Subject: Re: sftp Message-ID: <20010405170141.C4845@cygbert.vinschen.de> Mail-Followup-To: cygwin References: <3ACB5353 DOT E8C8F77B AT gmx DOT de> <20010405105016 DOT M956 AT cygbert DOT vinschen DOT de> <3ACC5F40 DOT D064F813 AT gmx DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <3ACC5F40.D064F813@gmx.de>; from ronald.hecht@gmx.de on Thu, Apr 05, 2001 at 02:04:16PM +0200 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. 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