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 Message-Id: <96C102324EF9D411A49500306E06C8D167F3CB@eketsv02.cubis.de> From: "Hartmann, Josef" To: cygwin AT cygwin DOT com Subject: sftp->ls creates sftp-server.exe.stackdump Date: Mon, 6 Aug 2001 06:59:20 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C11E34.8D6629A0" ------_=_NextPart_000_01C11E34.8D6629A0 Content-Type: text/plain Hi, I have successfully setup openssh (openssh-2.9p2-3.tar.bz2) on my nt4sp6a system. Logging on and scp works quite fine. However I am not able to get sftp to work. I installed sshd as service using cygrunsrv: $ cygrunsrv.exe -I sshd -p /usr/sbin/sshd -a '-d -d -d' -d 'Cygwin SSHD' -e 'CY GWIN=ntsec' -1 /tmp/sshd.out -2 /tmp/sshd.err Furthermore /etc/sshd_config is setup to run sftp: #Uncomment if you want to enable sftp Subsystem sftp /usr/sbin/sftp-server Now when I run sftp -vvv hartmann AT localhost everything works fine. I get authenticated and logged in. However when I run "ls" sftp-server.exe.stackdump (attached) is created and the client is locked. I can only press CTRL-C in order to get back to the shell. ------------------------------------------------- sftp session: sftp> put /tmp/sshd.out . debug3: Looking up /tmp/sshd.out debug3: Sent message fd 6 T:17 I:2 debug3: Received stat reply T:105 I:2 Uploading /tmp/sshd.out to /home/hartmann/./sshd.out debug3: Sent message SSH2_FXP_OPEN I:3 P:/home/hartmann/./sshd.out debug3: Sent message SSH2_FXP_CLOSE I:4 debug3: SSH2_FXP_STATUS 0 sftp> ls debug3: Sending SSH2_FXP_READDIR I:6 debug3: Received reply T:104 I:6 debug3: Received 7 SSH2_FXP_NAME responses drwxrwxrwx 3 hartmann Kein 4096 Aug 15:28 . drwxrwxrwx 3 hartmann Kein 0 Jul 17:32 .. -rw------- 1 hartmann Kein 2069 Aug 08:46 .bash_history drwx------ 2 hartmann Kein 4096 Aug 05:52 .ssh -rw------- 1 hartmann Kein 687 Aug 15:26 .viminfo -rwxrwxrwx 1 hartmann Kein 1060 Aug 15:18 sftp-server.exe.stackdump -rw-r--r-- 1 hartmann Kein 0 Aug 15:28 sshd.out debug3: Sending SSH2_FXP_READDIR I:7 Killed by signal 2. debug1: Calling cleanup 0x415b0c(0x0) debug1: Calling cleanup 0x4190c8(0x0) ---------------------------------------------------- sshd.err log subsystem request for sftp debug1: subsystem: exec() /usr/sbin/sftp-server debug1: fd 8 setting O_NONBLOCK debug1: fd 7 setting O_NONBLOCK debug2: callback done Connection closed by remote host. Closing connection to 127.0.0.1 -------------------------------------------------------- <> Regards, Josef ------_=_NextPart_000_01C11E34.8D6629A0 Content-Type: application/octet-stream; name="sftp-server.exe.stackdump" Content-Disposition: attachment; filename="sftp-server.exe.stackdump" Exception: STATUS_ACCESS_VIOLATION at eip=77F7754B eax=00000013 ebx=00000000 ecx=7FFDE000 edx=00000013 esi=FFFFFFFF edi=0A0120B0 ebp=0241B37C esp=0241B32C program=D:\cygwin\install\usr\sbin\sftp-server.exe cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 0241B37C 77F7754B (FFFFFFFF, 0241B394, 0A0120B0, 0A0120C0) 0241B5F4 77F0C544 (FFFFFFFF, 0241B874, 0241B654, 61004FA4) 0241B9B4 61004F98 (0A012288, 0241BDA4, 00000000, 00000038) 0241BE54 00402918 (0241BEC4, 0A0100A0, 0241FEC4, 004036FB) 0241BE74 00403411 (00000004, 610903E8, 00000001, 00000000) 0241FEC4 0040376E (00000001, 1A021B7C, 0A010008, 00000000) 0241FF20 61003AEA (00000000, 00000000, 00010017, 00000000) 0241FF50 61003CBD (00000000, 00000000, 8010A83D, 8014E1C4) 0241FF70 61003CFC (00000000, 00000000, 80116190, 8733AD44) 0241FF90 0040C92B (00403494, 00000000, 00000246, 80117691) 0241FFC0 0040103D (00000000, 00000000, 7FFDF000, 7FFDF000) 0241FFF0 77F1BBB5 (00401000, 00000000, 000000B0, 00000100) End of stack trace ------_=_NextPart_000_01C11E34.8D6629A0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------_=_NextPart_000_01C11E34.8D6629A0--