Charles E Campbell wrote:
> > Hello:
> >
> > Back to the patch#866 problem I'm having.  I'm using vim 7.4.1416:
> >
> >  * using efence: links fine, but won't run (runs out of memory)
> >  * using valgrind: works
> >  * using valgrind --leak-check=full:  works
> >
> > As can be seen from the trace below, the program hangs in a call to
> > nanosleep
> > in mch_delay().  The parameters to the nanosleep call seem to me to be
> > correct.
> >
> > I put in the following code in mch_delay to force HAVE_USLEEP at line 632:
> >
> >     #undef HAVE_NANOSLEEP
> >     #ifndef HAVE_USLEEP
> >     # define HAVE_USLEEP
> >     #endif
> >
> > This, too, "fixes" the problem.  I wrote a small program which exercises
> > nanosleep with the same time delay (5ms) and it doesn't hang.  So, its
> > not clear to me whether there's a vim source bug, a compiler bug, or o/s
> > bug.
> >
> > So: is there a configure option to disable HAVE_NANOSLEEP?
> >
> Sigh -- seems that this isn't the whole story.  vim no longer hangs, but
> gvim does, even with usleep instead of nanosleep.
> With valgrind+gvim, no valgrind problems but it still hangs.

This points in the direction of a race condition...

-- 
BRIDGEKEEPER: What is your favorite colour?
LAUNCELOT:    Blue.
BRIDGEKEEPER: Right.  Off you go.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui