Thank you for the patch!
I found a SEGV pattern with this patch.
" test.vim
let obj = {}
function! obj.func() abort
endfunction
let obj.func = obj.func
unlet obj
call garbagecollect()
vim -u test.vim -i NONE -N
#0 0x00007ffff4afd6e7 in raise () from /lib64/libc.so.6
#1 0x00007ffff4afeaba in abort () from /lib64/libc.so.6
#2 0x00007ffff4b3c1e0 in __libc_message () from /lib64/libc.so.6
#3 0x00007ffff4b4169e in malloc_printerr () from /lib64/libc.so.6
#4 0x00007ffff4b41e8b in _int_free () from /lib64/libc.so.6
#5 0x00000000005366e0 in vim_free (x=0xca47c0) at misc2.c:1695
#6 0x000000000047f57d in dict_free (d=0xca47c0, recurse=0) at eval.c:7284
#7 0x000000000047ef0c in free_unref_items (copyID=2) at eval.c:7001
#8 0x000000000047ee0c in garbage_collect () at eval.c:6949
#9 0x00000000004f4c05 in vgetc () at getchar.c:1574
#10 0x00000000004f51e6 in safe_vgetc () at getchar.c:1801
#11 0x000000000054759a in normal_cmd (oap=0x7fffffffdb30, toplevel=1)
at normal.c:627
#12 0x000000000068bf34 in main_loop (cmdwin=0, noexmode=0) at main.c:1353
#13 0x000000000068b84b in main (argc=7, argv=0x7fffffffde48) at main.c:1045
--
thinca <[email protected]>
--
--
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.