On Monday, June 23, 2014 2:11:44 PM UTC-5, Bram Moolenaar wrote:
> Ben Fritz wrote:
> 
> > The attached patch seems to fix the crash reported here:
> > 
> > https://groups.google.com/d/topic/vim_dev/Nr8Ja4Zjghw/discussion
> > 
> > 
> 
> 
> Thanks for making this patch!
> 
> Did you run the tests under valgrind? That's a very good way to check
> for any memory access problems and leaks.  Instructions are in
> src/testdir/Makefile.  There are a few false positives, compare to a Vim
> without your patch.
> 

You're welcome! I'm seeing crashes from time to time at work when Vim
isn't really actively doing much of anything, so I figured this stood
some chance of being the cause.

I have not checked in valgrind, because I've never used it before, and I
developed the patch on Windows. I do have a Ubuntu dual-boot, I'll try
logging in and seeing how well I can follow the instructions in the
makefile later this week. Thanks for pointing them out!

Do you have input on the 3 questions I had about aborting the collection
when malloc fails?

1. Does there need to be any user notification of the aborted garbage
   collection?
2. Do I need to set any of the garbage collect flags when aborting
   collection due to failure in the setup?
3. How to get a return value from LUA interface, to allow aborting if it
   fails?

-- 
-- 
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