[gnutls-help] segfault in gnutls_handshake [SOLVED]

Jeremy Harris jgh at wizmail.org
Thu May 1 21:45:41 CEST 2014


On 01/05/14 18:42, Nikos Mavrogiannopoulos wrote:
> On Thu, 2014-05-01 at 16:39 +0100, Jeremy Harris wrote:
>> gnutls-3.1.16-1.fc20.x86_64
>>
>> Can anyone point where to go next with this:
>> Program terminated with signal SIGSEGV, Segmentation fault.
>> #0  __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66
>
> The mutex cannot be null after gnutls_global_init() is called. Do you
> use gnutls from a dlopened object that links to pthreads while the main
> application isn't linked to it (i.e., could there be a mix of the glibc
> pthread stubs and the normal pthread functions)?

Solved; I was calling global_deinit too many times.

Thanks for the help.
-- 
Jeremy





More information about the Gnutls-help mailing list