Re: Python threading timing bug causes vim to segfault

2011-11-20 Fir de Conversatie Jan Larres
Taylor Hedberg : > Xavier de Gaye, Sat 2011-11-19 @ 12:28:27+0100: >> I think it may be possible to fix this in the clang_complete plugin >> (https://github.com/Rip-Rip/clang_complete). > > I'd recommend submitting this patch to the author of clang_complete, > both to get his opinion on the fix, an

Re: Python threading timing bug causes vim to segfault

2011-11-20 Fir de Conversatie Jan Larres
Xavier de Gaye : > On Sat, Nov 19, 2011 at 8:33 AM, Jan Larres wrote: >>> The problem is that the python interface in Vim is not thread safe. >> >> That's what I was worried about. I assume there's no easy way to fix >> this then, other than using a higher sleep() value. But that just seems >> wron

Re: Python threading timing bug causes vim to segfault

2011-11-19 Fir de Conversatie Taylor Hedberg
Xavier de Gaye, Sat 2011-11-19 @ 12:28:27+0100: > I think it may be possible to fix this in the clang_complete plugin > (https://github.com/Rip-Rip/clang_complete). I'd recommend submitting this patch to the author of clang_complete, both to get his opinion on the fix, and to enable other users of

Re: Python threading timing bug causes vim to segfault

2011-11-19 Fir de Conversatie Xavier de Gaye
On Sat, Nov 19, 2011 at 8:33 AM, Jan Larres wrote: >> >> The problem is that the python interface in Vim is not thread safe. > > That's what I was worried about. I assume there's no easy way to fix > this then, other than using a higher sleep() value. But that just seems > wrong, especially since i

Re: Python threading timing bug causes vim to segfault

2011-11-18 Fir de Conversatie Jan Larres
Xavier de Gaye : > On Fri, Nov 18, 2011 at 6:39 AM, Jan Larres wrote: >> I just spent some time hunting done a segfault that was cropping up recently >> for me, and I have narrowed it down to some python threading that the >> clang_complete plugin is doing. I have attached a minimal vimrc that is

Re: Python threading timing bug causes vim to segfault

2011-11-18 Fir de Conversatie Xavier de Gaye
On Fri, Nov 18, 2011 at 6:39 AM, Jan Larres wrote: > Hi, > > I just spent some time hunting done a segfault that was cropping up recently > for me, and I have narrowed it down to some python threading that the > clang_complete plugin is doing. I have attached a minimal vimrc that is needed > to mak

Python threading timing bug causes vim to segfault

2011-11-17 Fir de Conversatie Jan Larres
Hi, I just spent some time hunting done a segfault that was cropping up recently for me, and I have narrowed it down to some python threading that the clang_complete plugin is doing. I have attached a minimal vimrc that is needed to make the bug appear, the two stripped-down plugin files (just put