• Justin M. Keyes's avatar
    loop_close: Drain thread_events (#8990) · b2d7b70f
    Justin M. Keyes authored
    loop_schedule_deferred may leak its allocated Event if the Event does
    not get processed (when Nvim exits).
    
    It only happens on exit, so we tried to ignore it in .asan-blacklist,
    but for that isn't working for unknown reasons.
    
        = ==22007==ERROR: LeakSanitizer: detected memory leaks
        = Direct leak of 88 byte(s) in 1 object(s) allocated from:
        =      0 0x4ef7a3 in malloc /local/mnt/workspace/tmp/ubuntu_rel/llvm/utils/release/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:67:3
        =      1 0xfcafc1 in try_malloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:88:15
        =      2 0xfcb1e9 in xmalloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:122:15
        =      3 0xa6e75f in loop_schedule_deferred /home/travis/build/neovim/neovim/build/../src/nvim/event/loop.c:91:19
        =      4 0x18ab048 in tui_main /home/travis/build/neovim/neovim/build/../src/nvim/tui/tui.c:377:5
        =      5 0x18fe120 in ui_thread_run /home/travis/build/neovim/neovim/build/../src/nvim/ui_bridge.c:102:3
        =      6 0x7f09e5e58183 in start_thread /build/eglibc-ripdx6/eglibc-2.19/nptl/pthread_create.c:312
        = SUMMARY: AddressSanitizer: 88 byte(s) leaked in 1 allocation(s).
    b2d7b70f
.asan-blacklist 113 Bytes