NetBSD-Bugs archive

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

lib/60244: openssl 3.5.6 pullup can emit pthread warnings on init



>Number:         60244
>Category:       lib
>Synopsis:       openssl 3.5.6 pullup can emit pthread warnings on init
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 10 04:45:00 +0000 2026
>Originator:     dogcow%babymeat.com@localhost
>Release:        NetBSD 11.0_RC3
>Organization:
	
>Environment:
	
	
System: NetBSD flippy.babymeat.com 11.0_RC3 NetBSD 11.0_RC3 (FLIPPY) #2: Sat May 9 15:00:33 CDT 2026 dogcow%flippy.babymeat.com@localhost:/crap/obj/hg11obj/src/hg/11src/sys/arch/amd64/compile/FLIPPY amd64
Architecture: x86_64
Machine: amd64
>Description:
	
After the openssl 3.5.6 pullup, programs that invoke openssl (in various ways)
cause pthread warnings to be emitted when PTHREAD_DIAGASSERT=Ae is set:

Error detected by libpthread: Invalid thread.
Detected by file "/src/hg/11src/lib/libpthread/pthread.c", line 772, function "pthread_equal".

normally, this is just screen chatter, but will dump core with
PTHREAD_DIAGASSERT=a set.
>How-To-Repeat:
	
`PTHREAD_DIAGASSERT=Ae /usr/bin/host` 
the backtrace from when PTHREAD_DIAGASSERT is set to a:

#1  0x000078e58ba245a1 in pthread.errorfunc () from /usr/lib/libpthread.so.1
#2  0x000078e58ba24df9 in pthread_equal () from /usr/lib/libpthread.so.1
#3  0x000078e58b6aaa5a in ossl_init_thread () from /usr/lib/libcrypto.so.16
#4  0x000078e58b6aaec5 in ?? () from /usr/lib/libcrypto.so.16
#5  0x000078e58ba1f711 in pthread_once () from /usr/lib/libpthread.so.1
#6  0x000078e58b6a6195 in CRYPTO_THREAD_run_once ()
   from /usr/lib/libcrypto.so.16
#7  0x000078e58b6ab0bc in OPENSSL_init_crypto () from /usr/lib/libcrypto.so.16
#8  0x000078e58b18d928 in OPENSSL_init_ssl () from /usr/lib/libssl.so.16
#9  0x000078e58bb0441d in isc.tls_initialize () from /usr/lib/libisc.so.23

note that other programs - eg pkgsrc's `transmission-show` or `python -m
hashlib` have other code paths that eventually invoke ossl_init_thread
>Fix:
	
it is unclear whether this is merely cosmetic (ie, don't set
PTHREAD_DIAGASSERT) or if this is indicating some actual issue with the
newly pulled-up openssl

>Unformatted:
 	
 	



Home | Main Index | Thread Index | Old Index