Finalizer crasher on OS X

Luke Howard lukeh at padl.com
Wed Sep 29 10:51:50 EDT 2010


On 29/09/2010, at 4:34 PM, Greg Hudson wrote:

> On Fri, 2010-09-24 at 15:52 -0400, Luke Howard wrote:
>> Without DELAY_INITIALIZER, unfortunately it doesn't work either!
>> gssint_mechglue_init() is called when the first plugin linked against
>> the mechglue is loaded. But gssint_mechglue_fini() still gets called
>> twice. So this does sound like an OS X bug?
> 
> It could be; if OS X is processing a dlclose() for the mechglue, and
> that results in a dlclose() of another shared object which has the
> mechglue as a dependency... it could easily screw up and call the
> finalizer again.
> 
> I'm okay with working around this apparent bug in the manner you
> suggested (setting did-run to 0) if it's easy.

I'll look into it. For now I just linked test programs against libgssapi_krb5. I was thinking of switching to Linux by the time I had to try something more complicated ;-)

-- Luke



More information about the krbdev mailing list