To: vim_dev@googlegroups.com Subject: Patch 7.4.1722 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1722 Problem: Crash when calling garbagecollect() after starting a job. Solution: Set the copyID on job and channel. (Hirohito Higashi, Ozaki Kiichi) Files: src/eval.c *** ../vim-7.4.1721/src/eval.c 2016-04-08 17:07:09.542160709 +0200 --- src/eval.c 2016-04-11 20:38:52.789562869 +0200 *************** *** 7326,7331 **** --- 7326,7332 ---- if (job != NULL && job->jv_copyID != copyID) { + job->jv_copyID = copyID; if (job->jv_channel != NULL) { dtv.v_type = VAR_CHANNEL; *************** *** 7350,7355 **** --- 7351,7357 ---- 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; *** ../vim-7.4.1721/src/version.c 2016-04-08 22:16:47.343897403 +0200 --- src/version.c 2016-04-11 21:01:56.127151946 +0200 *************** *** 750,751 **** --- 750,753 ---- { /* Add new patch number below this line */ + /**/ + 1722, /**/ -- hundred-and-one symptoms of being an internet addict: 255. You work for a newspaper and your editor asks you to write an article about Internet addiction...in the "first person." /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///