> This means that pthread_cond_broadcast() was called from a global > constructor in libboost_log.so before the initialization function in > vgpreload_drd-amd64-linux.so (DRD_(init)) was called. I was surprised > seeing constructors being called in this order. Julian, is this a > normal behavior of the Valgrind core ?
I think this is unrelated to the Valgrind core. If I understand correctly, you're asking about the relative order of calling of a global constructor in vgpreload_drd-amd64-linux.so and a global constructor in libboost_log.so. That is a question for ld.so, and I think in this case you get no guarantees. (but am not sure about that). The fact that ld.so is running on the virtual cpu, not the real one, doesn't matter. J ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
