Subject: [libssh2] #301: random crashes during multi thread

[libssh2] #301: random crashes during multi thread

From: libssh2 Trac <>
Date: Fri, 10 Apr 2015 10:03:25 -0000

#301: random crashes during multi thread
 Reporter: alexmol | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone: 1.5.0
Component: crypto | Version: 1.5.0
 Keywords: | Blocked By:
   Blocks: |
 It seems like random crashes may occur in RAND_bytes function. In my app I
 use libssh with 20 parallel threads, so RAND_bytes called quite agressive
 from diff threads. After I guard it with critical section - everything
 seems ok. I cannot really understand the RAND_bytes code, because it looks
 scary. Seems like it is not thread safe. Openssl version for me is 0.9.8zf

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2015-04-10