[39554] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Threading support (on HP-UX)

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Sep 17 14:41:37 2025

Message-ID: <f0d5cb1a-54b0-4883-a8e7-fea890729517@mit.edu>
Date: Wed, 17 Sep 2025 14:41:16 -0400
MIME-Version: 1.0
To: "Osipov, Michael (IN IT IN)" <michael.osipov@innomotics.com>,
        kerberos@mit.edu
Content-Language: en-US
From: "Greg Hudson" <ghudson@mit.edu>
In-Reply-To: <106a85ba-19fc-4a66-9809-8550293dc9bb@innomotics.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: kerberos-bounces@mit.edu
Content-Transfer-Encoding: 8bit

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.

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos


home help back first fref pref prev next nref lref last post