NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/46485: Cryptographic software segfaults when linked againt libpthread



>Number:         46485
>Category:       toolchain
>Synopsis:       Cryptographic software segfaults when linked againt libpthread
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 27 07:55:00 +0000 2012
>Originator:     Marc Balmer
>Release:        5.1.0
>Organization:
micro systems
>Environment:
NetBSD netbsd5.vnode.ch 5.1.0_PATCH NetBSD 5.1.0_PATCH (GENERIC) #18: Thu Nov 
17 16:27:38 CET 2011  
mbalmer%netbsd5.vnode.ch@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
A piece of software that uses openssl's EVP interface to verify a digital 
signature works as expected when _not_ linked against libpthread.  When 
LDADD+=-lpthread is specified, the same application segfaults:

Program terminated with signal 11, Segmentation fault.
#0  0xbba82960 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0xbba82960 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#1  0xbba07bba in _malloc_prefork () from /usr/lib/libc.so.12
#2  0xbba07e1f in free () from /usr/lib/libc.so.12
#3  0xbbba3e7f in CRYPTO_free () from /usr/lib/libcrypto.so.4
#4  0xbbb4cbf1 in EVP_PKEY_free () from /usr/lib/libcrypto.so.4
#5  0xbbb47206 in EVP_PKEY_CTX_free () from /usr/lib/libcrypto.so.4
#6  0xbbb4d2b6 in EVP_VerifyFinal () from /usr/lib/libcrypto.so.4
#7  0x08049e0a in read_license ()
#8  0x0804a121 in list_modules ()
#9  0x0804a228 in main ()

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index