[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libssh write problem


Hello,

I am using libssh 0.5.2 in a multithreaded application. I establish session
and also write simultaneously to multiple different hosts simultaneously.

I have following code to work with pthread library.

ssh_threads_set_callbacks(ssh_threads_get_pthread());
ssh_init();

I am using sockets in blocking mode. But I see once in a while method
struck in channel_write call. I am enclosing the 2 threads that are struck
in this position and does not seem to comeout of it.

Does anyone know if my usage of library is wrong or it is a some kind of
bug in libssh?

Thanks and Regards,
Vasuki

================================================================
Thread 81 (Thread 0x7f86930b4700 (LWP 8612)):
#0  0x0000003ab2edd1e3 in poll () from /lib64/libc.so.6
#1  0x00007f879398dfe7 in ssh_poll () from /opt/netsmart8.0/lib/libssh.so.4
#2  0x00007f879398e745 in ssh_poll_ctx_dopoll () from
/opt/netsmart8.0/lib/libssh.so.4
#3  0x00007f879398f6a0 in ssh_handle_packets () from
/opt/netsmart8.0/lib/libssh.so.4
#4  0x00007f879397411e in channel_write_common () from
/opt/netsmart8.0/lib/libssh.so.4
#5  0x00007f879397423b in ssh_channel_write () from
/opt/netsmart8.0/lib/libssh.so.4
#6  0x00007f87939852dd in channel_write () from
/opt/netsmart8.0/lib/libssh.so.4
#7  0x00007f8793bec656 in gne_connect () from
/opt/netsmart8.0/lib/libmediatorjni.so
#8  0x00007f8793bfa613 in ni_connect_unlocked () from
/opt/netsmart8.0/lib/libmediatorjni.so
#9  0x00007f8793bfa6ef in ni_connect () from
/opt/netsmart8.0/lib/libmediatorjni.so
#10 0x00007f8793bf2ddf in gateway_thread () from
/opt/netsmart8.0/lib/libmediatorjni.so
#11 0x0000003ab32077e1 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003ab2ee68ed in clone () from /lib64/libc.so.6

Thread 75 (Thread 0x7f869617c700 (LWP 21978)):
#0  0x0000003ab2edd1e3 in poll () from /lib64/libc.so.6
#1  0x00007f879398dfe7 in ssh_poll () from /opt/netsmart8.0/lib/libssh.so.4
#2  0x00007f879398e745 in ssh_poll_ctx_dopoll () from
/opt/netsmart8.0/lib/libssh.so.4
#3  0x00007f879398f6a0 in ssh_handle_packets () from
/opt/netsmart8.0/lib/libssh.so.4
#4  0x00007f879397411e in channel_write_common () from
/opt/netsmart8.0/lib/libssh.so.4
#5  0x00007f879397423b in ssh_channel_write () from
/opt/netsmart8.0/lib/libssh.so.4
#6  0x00007f87939852dd in channel_write () from
/opt/netsmart8.0/lib/libssh.so.4
#7  0x00007f8793bec656 in gne_connect () from
/opt/netsmart8.0/lib/libmediatorjni.so
#8  0x00007f8793bfa613 in ni_connect_unlocked () from
/opt/netsmart8.0/lib/libmediatorjni.so
#9  0x00007f8793bfa6ef in ni_connect () from
/opt/netsmart8.0/lib/libmediatorjni.so
#10 0x00007f8793bf2ddf in gateway_thread () from
/opt/netsmart8.0/lib/libmediatorjni.so
#11 0x0000003ab32077e1 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003ab2ee68ed in clone () from /lib64/libc.so.6

=======================================================================

Follow-Ups:
Re: libssh write problemAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org