On Wed, Sep 16, 2009 at 1:00 PM, Ugendreshwar Kudupudi <ugend...@gmail.com>wrote:
> Compile the OpenSSL library with -g option and run it in gdb, you can get > the exact point of crash. > Mostly looks like you are accessing an illegal memory that might have been > freed. > > -ugen > > > On Wed, Sep 16, 2009 at 10:45 AM, Barkha Dosi <dosi_bar...@yahoo.com>wrote: > >> Hi, >> >> I have written a multithreaded C-server program. During multiple https >> connections I frequentl get segmentation fault >> > Have you set the static callbacks required for OpenSSL during initialization? http://www.openssl.org/docs/crypto/threads.html You have to set the callbacks as OpenSSL uses per thread error queues and uses the given locking function to ensure global data is protected. This is needed even if you are not sharing SSL connections across threads -- “Everything that irritates us about others can lead us to an understanding about ourselves.” —Carl Jung