[16409] in Kerberos_V5_Development

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

Re: Finalizer crasher on OS X

daemon@ATHENA.MIT.EDU (Luke Howard)
Wed Sep 29 10:52:14 2010

Mime-Version: 1.0 (Apple Message framework v1081)
From: Luke Howard <lukeh@padl.com>
In-Reply-To: <1285770873.20521.962.camel@ray>
Date: Wed, 29 Sep 2010 16:51:50 +0200
Message-Id: <DE709C96-D2F9-4DDE-8B04-DA4738C10749@padl.com>
To: Greg Hudson <ghudson@mit.edu>
Cc: "krbdev@mit.edu Dev List" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu


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
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

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