Subject: Re: entry for libssh2 in the upstream tracker (linuxtesting.org)

Re: entry for libssh2 in the upstream tracker (linuxtesting.org)

From: Tor Arntsen <tor_at_spacetec.no>
Date: Fri, 11 Jun 2010 10:06:24 +0200

On 06/11/10 08:59, Simon Josefsson wrote:
> Andrey Ponomarenko <susanin_at_ispras.ru> writes:
>
>> Hello,
>>
>> We have recently added the libssh2 library to our public upstream tracker:
>> http://linuxtesting.org/upstream-tracker/versions/libssh2.html
>>
>> The system regularly checks for new releases, performs backward ABI
>> compatibility analysis and generates "shallow"-quality runtime tests.
>> Any bugs or feature requests are welcome. Thanks.
>
> Nice, thanks!
>
> It says there are 53 failed tests (segmentation faults), why is this?
>
> /Simon

Here's one of them (they have links on the page). Cores in libssh2_agent_list_identities(agent);
I haven't tried anything like that so I'm not familiar with what method
should be used. I just downloaded, compiled and executed to see what
they were about.

-Tor

#include <stdlib.h>
#include <libssh2.h>
      
//auxiliary function
void*
my_alloc(size_t p1, void** p2){
    return malloc(p1);
}
      
//auxiliary function
void
my_free(void* p1, void** p2){
    free(p1);
}
      
//auxiliary function
void*
my_realloc(void* p1, size_t p2, void** p3){
    return realloc(p1, p2);
}
      
int main(int argc, char *argv[])
{
    //preamble
    libssh2_init(0);
      
    void* abstract = malloc(256);
    LIBSSH2_SESSION* session = libssh2_session_init_ex(
                                                       &my_alloc,
                                                       &my_free,
                                                       &my_realloc,
                                                       abstract);
    LIBSSH2_AGENT* agent = libssh2_agent_init(session);
    libssh2_agent_list_identities(agent); //target call
      
    //finalization
    libssh2_exit();
      
    return 0;
}
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-11