Got the fix for this ... Following callbacks must be implemented by the developer if CRYPTO library has to be used in the multi-threaded environment.
CRYPTO_set_locking_callback()CRYPTO_set_id Cheers ! On Thu, Sep 3, 2009 at 10:20 AM, Dan Ribe <dan.r...@gmail.com> wrote: > Hi Everyone, > > I am using gsoap stub code on Mac & facing below mentioned crash randomly. It > seems that crash happens only if some error occurs in tcp_connect & while > getting error value. > > Any pointers on this ? What may be causing this behavior ? > > Crash stack: > > Thread 0 Crashed: Dispatch queue: com.apple.main-thread > 0 libcrypto.0.9.7.dylib 0x001d5cb8 getrn + 76 > 1 libcrypto.0.9.7.dylib 0x001d5c02 lh_insert + 285 > 2 libcrypto.0.9.7.dylib 0x0021f87d int_thread_set_item + 107 > 3 libcrypto.0.9.7.dylib 0x0021fbfd ERR_get_state + 207 > 4 libcrypto.0.9.7.dylib 0x0021fdb5 get_error_values + 33 > 5 libcrypto.0.9.7.dylib 0x0022003d ERR_peek_error + 40 > 6 libssl.0.9.7.dylib 0x001b4dd6 SSL_get_error + 25 > 7 ....clients.macintosh.MyApp 0x0002c959 tcp_connect + 3387 > 8 ....clients.macintosh.MyApp 0x0002b6bb soap_connect_command + 343 > 9 ....clients.macintosh.MyApp 0x0002b82f soap_connect + 39 > 10 ....clients.macintosh.MyApp 0x0007d4e7 > soap_call___Version__GetClientVersion(soap*, char const*, char const*, > _Version__GetClientVersion*, _Version__GetClientVersionResponse*) + 243 > > > Thanks for the help ! > > Cheers ! > >