Yasuhiro Matsumoto wrote:
> On Monday, February 22, 2016 at 2:29:12 PM UTC+9, mattn wrote:
> > On Monday, February 22, 2016 at 2:23:49 PM UTC+9, mattn wrote:
> > > Possibly double free. And small refactoring.
> > >
> > > https://gist.github.com/mattn/cc99c7a39598c5c632c9
> >
> > Sorry, my fault.
> >
> > So this is only refactoring.
> >
> > https://gist.github.com/mattn/6f298ada2eee242c178c
>
> Sorry, noisy.
>
> When call string(a:job) in exit-cb, it free the job immediately. So
> possibly crash. My fix above will be fix.
>
> https://gist.github.com/mattn/6f298ada2eee242c178c
Thanks. I think this works around the problem but doesn't completely
fix it. The actual problem is that the job refcount is zero. Any
operation could then decide the job can be freed. We must increase the
refcount when invoking the callback. I'll make a patch for that, please
check it works.
Did you perhaps have a way to test this?
--
WOMAN: Well, 'ow did you become king then?
ARTHUR: The Lady of the Lake, [angels sing] her arm clad in the purest
shimmering samite, held aloft Excalibur from the bosom of the water
signifying by Divine Providence that I, Arthur, was to carry
Excalibur. [singing stops] That is why I am your king!
The Quest for the Holy Grail (Monty Python)
/// 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.