www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re:Re: Segmentation fault libssh2_session_last_errno (session=0x0) at session.c:1219 (Daniel Stenberg)

Re:Re: Segmentation fault libssh2_session_last_errno (session=0x0) at session.c:1219 (Daniel Stenberg)

From: balloon <e_balloon_at_163.com>
Date: Fri, 21 Jun 2013 00:32:14 +0800 (CST)

> I'm using: libcurl (7.21.3) + openssl(0.9.8k) + libssh2(1.2.8) as SFTP
> client to try to download 1 byte from server . Client side code is like
> this:
>
> To most SFTP server, this works fine. But when we use this code to connect
> to the SFTP server that our customer provided. We get this error in step
> curl_easy_perform(curl) :

Before going further, can you please try with more modern versions of the
libraries libcurl and libssh2? Both have been updated a lot since those
versions you use and I think it is very likely that the problem you see
already has been addressed.> I have updated libssh2 to 1.4.3, and libcurl to 7.30.0, which are both the latest version.>But I still meet this issue, does it matter that the specify SFTP server which can reproduce this issue is a java software?>This is the error msg, pls tell me what I can provide u to investigate and fix this issue. Thanks :)Program received signal SIGSEGV, Segmentation fault. libssh2_session_last_errno (session=0x0) at session.c:1267 1267 session.c: No such file or directory. in session.c (gdb) bt #0 libssh2_session_last_errno (session=0x0) at session.c:1267 #1 0x0000000000c3ba0e in ssh_statemach_act () #2 0x0000000001608b5f in ?? () #3 0x0000000001607fc0 in ?? () #4 0x0000000000000000 in ?? ()

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-06-20

the libssh2 team