[16377] in Kerberos_V5_Development
Re: Finalizer crasher on OS X
daemon@ATHENA.MIT.EDU (Luke Howard)
Fri Sep 24 15:52:40 2010
Mime-Version: 1.0 (Apple Message framework v1081)
From: Luke Howard <lukeh@padl.com>
In-Reply-To: <1285346441.20521.671.camel@ray>
Date: Fri, 24 Sep 2010 21:52:30 +0200
Message-Id: <62CD946D-0B03-438C-8501-4F37BC6F31FA@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 24/09/2010, at 6:40 PM, Greg Hudson wrote:
> On Fri, 2010-09-24 at 10:03 -0400, Luke Howard wrote:
>> If it's an OS X bug, fine, otherwise I wonder if we can workaround it
>> by having the destructor set did_run = 0.
>
> Does gssint_mechglue_init also get invoked twice (the second time when
> the mech is loaded)?
It gets called once, but that's because of DELAY_INITIALIZER (i.e. pthread_once() is used rather than a constructor).
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?
-- Luke
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev