Wednesday, April 22, 2020

Re: VIM crash with YouCompleteMe plugin

On Tue, Apr 21, 2020 at 09:39:07PM +0200, Dominique Pellé wrote:
> However vim built with libpython3 (or libpython) unfortunately
> gives many warnings. This is explained here:
> https://github.com/python/cpython/blob/master/Misc/README.valgrind
>
> I just avoided the warning in libpython3 by doing this
> on xubuntu-18.04.4:
>
> 1) download and build Python3 source code:
>
> $ wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz
> $ tar xvf Python-3.8.2.tar.xz
> $ ./configure --with-valgrind--enable-shared
> $ make -j8
> $ sudo make install
> $ sudo lddconfig
>
> (note the --with-valgrind option which is needed to avoid valgrind errors)

This seems hard. It's easier to export PYTHONMALLOC=malloc before
running valgrind. Should work with any Python version >= 3.6.
Worked for me with Python 3.7 from Ubuntu 19.10.

I've also used valgrind --suppressions=valgrind-python.supp, with
https://github.com/python/cpython/blob/master/Misc/valgrind-python.supp
modified as instructed to uncomment all those _PyObject_Free/_PyObject_Realloc
suppressions. It didn't help any: I still got hundreds of errors
without PYTHONMALLOC.

Marius Gedminas
--
Look! Before our very eyes, the future is becoming the past.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200422083558.ap4dudjaouggtxh4%40blynas.

No comments:

Post a Comment