James McCoy <[email protected]> wrote:

> On Nov 17, 2017 01:53, "Dominique Pellé" <[email protected]> wrote:
>
> Bram Moolenaar wrote:
>
>> Travis reported an error found by ASAN in test_terminal.
>> https://travis-ci.org/vim/vim/builds/302986836
>> It looks like this:
>>
>> ==18767== ERROR: AddressSanitizer: heap-use-after-free on address
>> 0x606e00061740 at pc 0x75a165 bp 0x7ffdb4b30490 sp 0x7ffdb4b30488
>> READ of size 8 at 0x606e00061740 thread T0
>>     #0 0x75a164 (/home/travis/build/vim/vim/src/vim+0x75a164)
>>     #1 0x4bda78 (/home/travis/build/vim/vim/src/vim+0x4bda78)
>>     #2 0x779be3 (/home/travis/build/vim/vim/src/vim+0x779be3)
>>     #3 0x77a235 (/home/travis/build/vim/vim/src/vim+0x77a235)
>>
>> I have been unable to reproduce this (with valgrind).
>> I did once have the test crash.  But unable to repeat it.
>>
>> It would be very helpful if these stack traces would show file
>> locations.  Can we make that happen?
>
> When using clang -fsanitize=address, you either need to
> to set up ASAN_SYMBOLIZER_PATH env variable as
> described here:
>
>
> It's also supposed to work when llvm-symbolize is in $PATH, which it should
> be.  PATH is updated just before running the tests.

i just checked that clang sanitizer should indeed show
symbols when llvm-symbolize is in the PATH.  And I see that it
should be the case according to .travis.yml. Log also shows that
vim was compiled with -g. No idea why the stack did not contain
symbols then.

I can't reproduce the asan error with vim when running tests with
asan on my machine.

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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui