kio_sftp rewrite

Dawit A. adawit at kde.org
Mon Aug 10 23:32:09 BST 2009


On Monday 10 August 2009 09:36:20 Andreas Schneider wrote:
> On Monday 10 August 2009 15:14:39 Dawit A. wrote:
> > Right, the crash is not where I first assumed it would be... Here is the
> > backtrace I get. Seems to be in channel_send_eof. Perhaps I should
> > compile libssh in debug mode to find out exactly where, but that would
> > have to wait for later...
> >
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0xb48c0d29 in channel_send_eof () from /usr/lib/libssh.so.3
> > (gdb) bt
> > #0  0xb48c0d29 in channel_send_eof () from /usr/lib/libssh.so.3
> > #1  0xb48d8df7 in sftp_free () from /usr/lib/libssh.so.3
> > #2  0xb5a5be8c in sftpProtocol::closeConnection (this=0xbf831338) at
> > /home/dalemayehu/work/KDE/source/branches/kdebase/runtime/kioslave/sftp/k
> >io _sftp.cpp:706 #3  0xb782fa63 in KIO::SlaveBase::dispatchLoop
> > (this=0xbf831338) at
> > /home/dalemayehu/work/KDE/source/branches/kdelibs/kio/kio/slavebase.cpp:2
> >93 #4  0xb5a5c9fe in kdemain (argc=4, argv=0x8ad97a8) at
> > /home/dalemayehu/work/KDE/source/branches/kdebase/runtime/kioslave/sftp/k
> >io _sftp.cpp:79 #5  0x0804de22 in _start ()
>
> I think I know what the problems is, we've fixed it after 0.3.2, but it
> would be nice if you could provide a backtrace with debug info. Just to be
> sure :)

Here is the full bt...

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 ()




More information about the kde-core-devel mailing list