You are not logged in.

#1 2012-12-11 20:21:02

travnick
Member
From: Poland
Registered: 2011-04-24
Posts: 75

sftp crash

Today I experienced strange crash while using sftp

So i have such files/folders with unicode characters in /foo/bar:

sftp> ls
1ążźć                                           2łóę                                             4źdźbło

everything is ok as far

sftp> cd 2[tab pressed]Naruszenie ochrony pamięci (core dumped)

Naruszenie ochrony pamięci = Segmentation fault
[tab pressed] - I've pressed tab here.

The same behavior is when connecting to local machine (arch linux) or remote machine (debian 5)

[]$ yaourt -Qs ssh
extra/kde-agent 20120430-1
    Startup and shutdown scripts for gpg-agent and ssh-agent in KDE
multilib/lib32-libssh2 1.4.2-1
    A library implementing the SSH2 protocol as defined by Internet Drafts (32-bit)
extra/libssh 0.5.3-1
    Library for accessing ssh client services through C libraries
core/libssh2 1.4.3-1
    A library implementing the SSH2 protocol as defined by Internet Drafts
core/openssh 6.1p1-4
    Free version of the SSH connectivity tools
community/python2-paramiko 1.9.0-1
    Python module that implements the SSH2 protocol
extra/sshfs 2.4-1
    FUSE client based on the SSH File Transfer Protocol

with sftp, sshfs everything works.

I want to find out if it's something wrong with my system or there is a bug in sftp

Offline

#2 2012-12-11 20:39:39

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: sftp crash

I can reproduce this, so it must be an sftp bug. You should report this upstream smile

sftp> ls 2<TAB>
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7893460 in wcslen () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff7893460 in wcslen () from /usr/lib/libc.so.6
#1  0x00007ffff7bacb12 in el_winsertstr () from /usr/lib/libedit.so.0
#2  0x00000000004079d5 in ?? ()
#3  0x00007ffff7bb299e in el_wgets () from /usr/lib/libedit.so.0
#4  0x00007ffff7bc26ed in el_gets () from /usr/lib/libedit.so.0
#5  0x0000000000407d1d in ?? ()
#6  0x0000000000403257 in ?? ()
#7  0x00007ffff7818725 in __libc_start_main () from /usr/lib/libc.so.6
#8  0x0000000000403585 in ?? ()

Last edited by Spider.007 (2012-12-11 20:41:37)

Offline

Board footer

Powered by FluxBB