Threading support (on HP-UX)

Greg Hudson ghudson at mit.edu
Wed Sep 17 14:41:16 EDT 2025


On 9/17/25 06:31, Osipov, Michael (IN IT IN) wrote:
>> if [ -r ../../lib/libgssapi_krb5.so ]; then SHLIB_PATH=`echo -L../../ 
>> lib | sed -e "s/-L//g" -e "s/ /:/g"` KRB5_CONFIG=../../config-files/ 
>> krb5.conf LC_ALL=C  ./reload; fi
>> Assertion failed: destructors_set[keynum] == 0, file threads.c, line 351

This test program loads libgssapi_krb5, uses it minimally, and unloads 
it, all repeated twice.  The assertion failure means that the library 
initializer ran both times it was loaded, but the library finalizer 
didn't run in between.  So something is wrong with the library finalizer 
support for HP-UX as determined by include/k5-platform.h and the 
autoconf stuff.  If there is a flag to block unloading when building a 
shared library, like the ELF "-z nodelete" flag, that would be the best 
fix; see the lib_unload_prevented variable in config/shlib.conf.



More information about the Kerberos mailing list