Subject: Re: [libssh2] #223: errors in multi threads applications

Re: [libssh2] #223: errors in multi threads applications

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Tue, 23 Aug 2011 10:08:36 -0000

#223: errors in multi threads applications
------------------------------------+---------------------------------------
  Reporter: mmichele1974@… | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone: 1.2.9
 Component: SFTP | Version: 1.2.7
Resolution: | Keywords: sftp curl multithread
    Blocks: | Blocked By:
------------------------------------+---------------------------------------

Comment (by mmichele1974@…):

 Replying to [comment:2 bagder]:

 Hi,
 Thank you for the quick answers.
 I noticed the bug only in the multi thread environment, but I will make
 some
 stress tests in mono thread case and try to
 reproduce it.

 I registered the callbacks correctly because they are called during the
 test (printf called!).
 I copied the callbacks implementations from the libssh2 example file.

> Further, it will help if you rebuild your libssh2 completely without -O
 so that you get all symbols properly.
>
> Did the mutex callbacks get called at all in the crashing case?
>
> Can you try with libssh2 1.2.8 also and see if the bug still remains? It
 would be a bit pointless to hunt for a problem if it is already fixed!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/223#comment:3>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-08-23