Hi Bram and List,

2016-4-11(Mon) 0:41:43 UTC+9 Bram Moolenaar:
> Yasuhiro Matsumoto wrote:
> 
> > <snip>
> > 
> > Still have problem.
> > 
> > 1. vim -u NONE -N --noplugin
> > 2. :let g:a = job_start(['ls'])
> > 3. wait few seconds
> > 4. :call garbagecollect()
> > 
> > SEGV
> 
> Reproducible.  Problem is that calling garbagecollect() doesn't work
> from a test, it's always postponed till later.  Will have to find a
> solution for that first.


It seems to have been fixed in the attached patch, to me.

NOTE:
  This patch was suggested by Ozaki Kiichi.

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
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.
diff --git a/src/eval.c b/src/eval.c
index 1c5a316..0c270b9 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -7326,6 +7326,7 @@ set_ref_in_item(
 
 	if (job != NULL && job->jv_copyID != copyID)
 	{
+	    job->jv_copyID = copyID;
 	    if (job->jv_channel != NULL)
 	    {
 		dtv.v_type = VAR_CHANNEL;
@@ -7350,6 +7351,7 @@ set_ref_in_item(
 
 	if (ch != NULL && ch->ch_copyID != copyID)
 	{
+	    ch->ch_copyID = copyID;
 	    for (part = PART_SOCK; part <= PART_IN; ++part)
 	    {
 		for (jq = ch->ch_part[part].ch_json_head.jq_next; jq != NULL;

Raspunde prin e-mail lui