Christian J. Robinson wrote:
> On Mon, 15 Feb 2016, Bram Moolenaar wrote:
>
> > Christian J. Robinson wrote:
> >
> >> On Mon, 15 Feb 2016, Bram Moolenaar wrote:
> >>
> >>> Patch 7.4.1322
> >>> Problem: Crash when unletting the variable that holds the channel in a
> >>> callback function. (Christian Robinson)
> >>> Solution: Increase the reference count while invoking the callback.
> >>> Files: src/eval.c, src/channel.c, src/proto/eval.pro,
> >>> src/testdir/test_channel.vim
> >>
> >> This does fix the bug I reported, but not the earlier crash bug I
> >> reported which I still can't seem to reproduce with a simple script.
> >> I'll keep working on it.
> >
> > We may have to add some more log statements, so that you can see what
> > happens before the crash.
>
> Aha. I can now reproduce this one reliably. It's similar to the
> previous, but involves using ch_close() inside the callback function.
>
> Like before, put both attached files in the same directory, then
> source channelcrash2.vim
Thanks. I managed to turn it into a test and fix the problem.
--
In war we're tough and able.
Quite indefatigable
Between our quests
We sequin vests
And impersonate Clark Gable
It's a busy life in Camelot.
I have to push the pram a lot.
"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.