[SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

Alex Balashov abalashov at evaristesys.com
Fri Sep 13 23:17:10 CEST 2019


Hi Daniel,

Thanks a lot for this work; it's definitely important that Kamailio
build against OpenSSL v1.1, and I'll be happy to contribute some testing
in a live environment in the coming weeks. Much appreciated. 

Have a good weekend,

-- Alex

On Fri, Sep 13, 2019 at 01:34:12PM +0200, Daniel-Constantin Mierla wrote:

> Hello,
> after couple of months waiting for feedback about the workaround with the
> preloaded shared library to set the PTHREAD_PROCESS_SHARED attribute for
> pthread mutex/rwlock in order to avoid deadlocks and as it seems to be the
> solution, I just pushed a few commits to move that code in the core of
> kamailio.
> 
> It this way the initialization with the PTHREAD_PROCESS_SHARED attribute is
> done by default when libssl v1.1 is detected at compile time, without the
> need of using the approach with a preloaded library.
> 
> The shared library is still kept in the tls module:
>   *
> https://github.com/kamailio/kamailio/tree/master/src/modules/tls/utils/openssl_mutex_shared
> 
> Probably is going to be removed in the near future.
> 
> I am asking the community members that use Kamailio on systems with libssl
> v1.1+ to test the master branch and give feedback. The master branch is
> anyhow in testing phase for preparing the next major release v5.3.0, so it
> will help for that as well.
> 
> If no issue is going to be reported soon, the commits will be backported to
> stable branches, to re-enable smooth use of Kamailio with libssl v1.1+.
> 
> When libssl v1.1+ is detected, the core links with pthread, but that was
> already present in the Makefiles.defs for different compile options. The
> pthread more or less a default library on linuxes/unixes, so this should
> not introduce any major dependency to the Kamailio core.
> 
> Cheers,
> Daniel
> 
> -- 
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list