[16682] in Kerberos_V5_Development
mechglue loading issue
daemon@ATHENA.MIT.EDU (Luke Howard)
Thu Mar 17 02:05:55 2011
From: Luke Howard <lukeh@padl.com>
Date: Thu, 17 Mar 2011 17:05:46 +1100
Message-Id: <7B5D5323-C64F-42FF-8F58-A15C3FB9B845@padl.com>
To: "krbdev@mit.edu List" <krbdev@mit.edu>
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
The mechglue has API-as-SPI, that is, it supports dynamically loading a mechanism that exports the same ABI as the mechanism glue itself (with some exceptions, which are mostly historical or otherwise my doing!).
On the platform I tested, the mechanism glue will pull in the symbol of the glue itself if a mechanism which links against the glue does not implement an entry point.
This of course is catastrophic because mechanism-specific objects will be passed to the glue functions.
I resolved this by passing RTLD_FIRST (fix is in the users/lhoward/moonshot-mechglue-fixes branch). I don't know if this is an OS X-specific issue or not; I guess it could also be resolved by not having the plug-in mechanism link against the mechanism glue, or by having mechanisms implement all entry points (impractical).
-- Luke
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev