Hi,

On Wed, Feb 6, 2019 at 4:49 AM George Brown <[email protected]> wrote:
>
> I had been playing with configuring Vim to ensure only a single window would
> be open at a time and found I was able to trigger a segfault upon opening the
> location list. This appears to be the minimal reproducer.
>
> $ cat location-list-segv.vim
> autocmd WinEnter * only
> silent lgrep /foo/ location-list-segv.vim
> lopen
>

I have created the following pull request with a fix for this problem:

https://github.com/vim/vim/pull/3928

Can you try this out?

Thanks,
Yegappan

>
> $ src/vim/src/vim -u location-list-segv.vim
> location-list-segv.vim:2:silent lgrep /foo/ location-list-segv.vim
> Vim: Caught deadly signal SEGV
> Vim: Finished.
>
> Here's a backtrace from the crash.
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   libsystem_kernel.dylib         0x00007fff61a3fb82 __kill + 10
> 1   vim                           0x000000010e43916c may_core_dump + 60 
> (os_unix.c:3332)
> 2   vim                           0x000000010e43903b mch_exit + 171 
> (os_unix.c:3305)
> 3   vim                           0x000000010e570496 getout + 774 
> (main.c:1553)
> 4   vim                           0x000000010e3e0dab preserve_exit + 203 
> (misc1.c:5443)
> 5   vim                           0x000000010e43e781 deathtrap + 497 
> (os_unix.c:1106)
> 6   libsystem_platform.dylib       0x00007fff61aeab3d _sigtramp + 29
> 7   ???                           000000000000000000 0 + 0
> 8   vim                           0x000000010e44492c ex_copen + 332 
> (quickfix.c:4053)
> 9   vim                           0x000000010e35c728 do_one_cmd + 7496 
> (ex_docmd.c:2521)
> 10  vim                           0x000000010e3597a1 do_cmdline + 2817 
> (ex_docmd.c:1033)
> 11  vim                           0x000000010e356286 do_source + 2262 
> (ex_cmds2.c:4615)
> 12  vim                           0x000000010e56ec8f source_startup_scripts + 
> 239 (main.c:3017)
> 13  vim                           0x000000010e56ce0a main + 1162 (main.c:441)
> 14  libdyld.dylib                 0x00007fff618ffed9 start + 1
>
> Version information.
>
> $ src/vim/src/vim --version
> VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb  3 2019 12:20:46)
> macOS version
> Included patches: 1-868

-- 
-- 
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