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.

Perhaps there is another solution to make that import work without
RTLD_GLOBAL ?

-- 
I am also told that there is a logical proof out there somewhere
that demonstrates that there is no task which duct tape cannot handle.
                                        -- Paul Brannan

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui