On Mon, Aug 09, 2010 at 12:58:20PM +0200, Bram Moolenaar wrote: > > Roland Puntaier wrote: > > > Hello Bram, > > > > sorry about my late response, first I was on holiday, then I was quite > > busy. > > > > I compared the vim7.3d sources to my original ones on Saturday. > > Most of the functions are basically the same, > > but I spotted a relevant difference: > > > > I had: > > #define load_dll(n) dlopen((n),RTLD_LAZY) > > > > Vim 7.3 has: > > #define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) > > > > I recalled, that back then I had had the same crash, probably because > > global static variables got mixed up. > > > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there was no crash > > any more. > > If I'm not mistaken this flag was added to make "import termios" work. > Or something like that.
Right. It's needed to be able to load any of the C extensions on systems where they aren't linked to libpython. I know this is the case on Debian-based systems. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
signature.asc
Description: Digital signature
