kio_sftp rewrite

Andreas Schneider mail at cynapses.org
Tue Aug 11 08:35:25 BST 2009


On Tuesday 11 August 2009 00:32:09 Dawit A. wrote:
> Here is the full bt...

Hi Dawit,

>
> Program received signal SIGSEGV, Segmentation fault.
> channel_send_eof (channel=0x0) at
> /home/dalemayehu/Downloads/libssh-0.3.2/libssh/channels.c:772
> 772       SSH_SESSION *session = channel->session;
> (gdb) bt
> #0  channel_send_eof (channel=0x0) at
> /home/dalemayehu/Downloads/libssh-0.3.2/libssh/channels.c:772
> #1  0xb48dabd6 in sftp_free (sftp=0x8adbf28) at
> /home/dalemayehu/Downloads/libssh-0.3.2/libssh/sftp.c:183
> #2  0xb5a5be8c in sftpProtocol::closeConnection (this=0xbf831338) at
> /home/dalemayehu/work/KDE/source/branches/kdebase/runtime/kioslave/sftp/kio
>_sftp.cpp:706 #3  0xb782fa63 in KIO::SlaveBase::dispatchLoop
> (this=0xbf831338) at
> /home/dalemayehu/work/KDE/source/branches/kdelibs/kio/kio/slavebase.cpp:293
> #4  0xb5a5c9fe in kdemain (argc=4, argv=0x8add358) at
> /home/dalemayehu/work/KDE/source/branches/kdebase/runtime/kioslave/sftp/kio
>_sftp.cpp:79 #5  0x0804de22 in _start ()

thanks for the backtrace. Could it be possible that closeConnection() is 
called before it was ever connected. It would be good to see the sftp 
structure here.

I've initialized the ssh and sftp session with NULL in the contructor now.


	-- andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090811/43d3f132/attachment.sig>


More information about the kde-core-devel mailing list