On Wed, May 30, 2012 at 11:10 AM, Craig James <cja...@emolecules.com> wrote: > > > On Wed, May 30, 2012 at 7:59 AM, Noel O'Boyle <baoille...@gmail.com> wrote: >> >> I've just confirmed what Craig was seeing. I have CMake 2.8.5. >> >> I always install locally but once I added the installed lib directory >> to the front of LD_LIBRARY_PATH, all the tests started to segfault. >> I'll look into it.... > > > Well, good, I thought I was going crazy. ;-) > > Here's an observation that might help: valgrind reports LOTS of errors, all > related to double-free memory. There seems to be something about the test > programs specifically that screws up the C++ constructor/destructor system. > It appears to be deleting objects prematurely. > > In some cases it happens during the test. The place it's most obvious is > when programs complete, but then get a segfault during the exit() call as > the destructors are being run. > > My guess, and this is a wild guess, is that the test programs are doing > something unusual with the dynamic loader that's not done by the mainstream > OpenBabel programs. Maybe they have some tricky code in there that (for > convenience) tries to find the shared libraries even when they're not in > LD_LIBRARY_PATH, and in doing so they cause something to go haywire.
I wonder if this is the plugin loading code, and how they interact with an installed OpenBabel versus a locally built one. > > Another observation: the .so files that are installed don't have the same > checksums as the .so files in the build/lib directory. I thought that was > odd, but there's probably a good reason. > I haven't checked, but I am pretty sure that this is RPATH manipulation during the install phase. Marcus ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel