> ```valgrind
> ==51885== Memcheck, a memory error detector
> ==51885== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
> ==51885== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
> ==51885== Command: ./vim
> ==51885== 
> ==51885== Invalid read of size 4
> ==51885==    at 0x2F64C1: copy_tv (typval.c:634)
> ==51885==    by 0x19D5E5: eval_variable (evalvars.c:2583)
> ==51885==    by 0x187FD3: eval7 (eval.c:3395)
> ==51885==    by 0x188843: eval6 (eval.c:3013)
> ==51885==    by 0x188843: eval5 (eval.c:2783)
> ==51885==    by 0x188E4B: eval4 (eval.c:2639)
> ==51885==    by 0x1894EC: eval3 (eval.c:2500)
> ==51885==    by 0x1894EC: eval2 (eval.c:2374)
> ==51885==    by 0x1894EC: eval1 (eval.c:2220)
> ==51885==    by 0x3050F0: get_func_tv (userfunc.c:729)
> ==51885==    by 0x1834A5: eval_func (eval.c:1979)
> ==51885==    by 0x1882DC: eval7 (eval.c:3374)
> ==51885==    by 0x188843: eval6 (eval.c:3013)
> ==51885==    by 0x188843: eval5 (eval.c:2783)
> ==51885==    by 0x188E4B: eval4 (eval.c:2639)
> ==51885==    by 0x1894EC: eval3 (eval.c:2500)
> ==51885==    by 0x1894EC: eval2 (eval.c:2374)
> ==51885==    by 0x1894EC: eval1 (eval.c:2220)
> ==51885==  Address 0x6ca55c4 is 4 bytes inside a block of size 344 free'd
> ==51885==    at 0x483CA3F: free (in 
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==51885==    by 0x1477A3: free_buffer (buffer.c:903)
> ==51885==    by 0x14E85B: set_curbuf (buffer.c:1744)


This suggests that a buffer variable was used after the buffer was
freed.  Can't think how that can happen.  Maybe the "b:" dict was copied
somewhere?

-- 
All good vision statements are created by groups of people with bloated
bladders who would rather be doing anything else.
                                (Scott Adams - The Dilbert principle)

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202012221700.0BMH06L62612915%40masaka.moolenaar.net.

Raspunde prin e-mail lui