Finalizer crasher on OS X

Greg Hudson ghudson at MIT.EDU
Wed Sep 29 10:34:33 EDT 2010


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.





More information about the krbdev mailing list