raf <[email protected]> wrote:

> On Thu, Dec 31, 2020 at 10:24:55AM +0100, Dominique Pellé 
> <[email protected]> wrote:
>
> > raf <[email protected]> wrote:
> >
> > > Hi,
> > >
> > > Happy New Year Bram et al!
> > >
> > > I just tried to compile and test vim for the
> > > first time in ages and got a segmentation fault.
> > >
> > > Environment:
> > >
> > >   macos-10.14.6
> > >   vim-8.2 patches 1-2251
> > >   XQuartz 2.7.11 (xorg-server 1.18.4)
> > >   (plus other xorg stuff via macports might be relevant)
> >
> > Hi
> >
> > Athena GUI works fine for me on Linux x86_6.
> >
> > Can you try building Vim with the address sanitizer (asan)?
> > It should only be a matter of uncommenting this line vim
> > vim/src/Makefile:
> >
> > SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer
> >
> > Then:
> >
> > $ make clean ; make
> >
> > Then try to reproduce the crash. If a memory error happens, asan will
> > dump useful information on stderr.  You may need to redirect stderr
> > like this:
> >
> > $ cd vim/src ; ./vim 2> asan.log
>
> With address sanitizing, it doesn't crash.
> Maybe I should install it like that. :-)
> I wonder if I'd notice the performance penalty.

I assume you checked the content of the file asan.log
for errors.

asan probably makes vim 3x times slower or so.
It can be acceptable if you're really willing to discover
and report bugs in Vim.

> I do get 3 or 4 test failures, though, But hopefully, they're not serious:
>
>   Executed:  3733 Tests
>    Skipped:    48 Tests
>     FAILED:     4 Tests
>
>   Failures:
>         From test_channel.vim:
>         Found errors in Test_out_cb():
>         Run 1:
>         command line..script 
> /usr/local/src/vim/src/testdir/runtest.vim[468]..function 
> RunTheTest[39]..Test_out_cb[36]..WaitForAssert[2]..<SNR>6_WaitForCommon[11]..<lambda>117
>  line 1: Expected {'one': 1, 'two': 2, 'three': 3} but got ''

No idea about the remaining failing tests.

Dominique

-- 
-- 
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/CAON-T_jaA6f4wCa6zL81eq-fGjNyZXeW6-XToaAQKh_RwXnRHA%40mail.gmail.com.

Raspunde prin e-mail lui