{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/5234","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/5234/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/5234/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/5234/events","html_url":"https://github.com/neovim/neovim/issues/5234","id":172459526,"number":5234,"title":"Segmentation fault when using Unite grep","user":{"login":"balta2ar","id":340676,"avatar_url":"https://avatars.githubusercontent.com/u/340676?v=3","gravatar_id":"","url":"https://api.github.com/users/balta2ar","html_url":"https://github.com/balta2ar","followers_url":"https://api.github.com/users/balta2ar/followers","following_url":"https://api.github.com/users/balta2ar/following{/other_user}","gists_url":"https://api.github.com/users/balta2ar/gists{/gist_id}","starred_url":"https://api.github.com/users/balta2ar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balta2ar/subscriptions","organizations_url":"https://api.github.com/users/balta2ar/orgs","repos_url":"https://api.github.com/users/balta2ar/repos","events_url":"https://api.github.com/users/balta2ar/events{/privacy}","received_events_url":"https://api.github.com/users/balta2ar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neovim/neovim/labels/bug","name":"bug","color":"f9d0c4"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/neovim/neovim/milestones/10","html_url":"https://github.com/neovim/neovim/milestones/0.2","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/10/labels","id":1183808,"number":10,"title":"0.2","description":"codename: \"keanu\"","creator":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"open_issues":139,"closed_issues":141,"state":"open","created_at":"2015-06-27T19:05:24Z","updated_at":"2016-08-22T19:17:09Z","due_on":"2016-09-30T04:00:00Z","closed_at":null},"comments":0,"created_at":"2016-08-22T13:59:00Z","updated_at":"2016-08-22T19:48:12Z","closed_at":null,"body":"I recompiled nvim using its PKGBUILD: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/neovim\r\nI only set -DCMAKE_BUILD_TYPE=Debug to make sure backtraces are nicer and disabled stripping (default behavior in ArchLinux).\r\n\r\n- `nvim --version`:\r\n\r\nNVIM 0.1.5\r\nBuild type: Debug\r\nCompilation: /usr/bin/cc -g -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/home/bz/prg/src/other/editor/nvim/src/build/config -I/home/bz/prg/src/other/editor/nvim/src/neovim-0.1.5/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/home/bz/prg/src/other/editor/nvim/src/build/src/nvim/auto -I/home/bz/prg/src/other/editor/nvim/src/build/include\r\nCompiled by bz@boltx64\r\n\r\nOptional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      \r\nFor differences from Vim, see :help vim-differences\r\n\r\n   system vimrc file: \"$VIM/sysinit.vim\"\r\n  fall-back for $VIM: \"/usr/share/nvim\"\r\n\r\n- Vim (version: ) 7.4 Included patches: 1-2143. **I could not make vim segfault in this scenario**\r\n- Operating system/version: ArchLinux (remote)\r\n- Terminal name/version: terminator 0.96 (client, on Ubuntu 12.04)\r\n- `$TERM`: screen-256color\r\n- tmux: tmux 2.2 (remote)\r\n\r\n### Actual behaviour\r\n\r\nneovim segfaults when I perform Unite grep and cancel the search using `Ctrl-C`.\r\n\r\n### Expected behaviour\r\n\r\nUnite should cancel the search without segfaulting.\r\n\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\nSegfault happens when I search over my project. For the purpose of reproducibility I've managed to reproduce the issue when I search in files of the plugins I'm using. Sorry this isn't exactly minimal set of files, but the segfault happens rather ofter on these files (not 100% every time, unfortunately). Sometimes I have to run the command about 5-6 times before it crashes.\r\n\r\n``` bash\r\nmkdir nvim-segfault && cd nvim-segfault\r\n\r\nmkdir -p ~/.cache/dein/repos/github.com/Shougo\r\ngit clone https://github.com/Shougo/dein.vim ~/.cache/dein/repos/github.com/Shougo/dein.vim\r\n\r\nwget -O repos.txt http://sprunge.us/JKOX\r\nfor f in `cat repos.txt `; do echo \">> $f\"; git clone \"https://github.com/$f\"; done\r\n\r\nwget -O min.vim http://sprunge.us/RSTK\r\nnvim -N -u min.vim -n -c \"Unite grep:.::def\"\r\n```\r\n\r\nAfter that, while search is still running, I occasionally press arrow keys, and if I press `Ctrl-C`, neovim often segfaults at this point with a slight delay.\r\n\r\nHere are several backtraces that I have managed to save:\r\n\r\n[http://sprunge.us/KiYf](http://sprunge.us/KiYf)\r\n[http://sprunge.us/CSLX](http://sprunge.us/CSLX)\r\n[http://sprunge.us/ZSdi](http://sprunge.us/ZSdi)\r\n\r\nI can share whole core dumps if necessary.\r\n\r\nI'm slightly hesitant whether I should have reported this issue to Unite repo, but I figured plugins should not crash the editor. Maybe @Shougo knows more about this behavior.\r\n\r\n# Appendix\r\n\r\nminimal [vimrc](http://sprunge.us/RSTK):\r\n``` vim\r\nset runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim\r\nif &compatible\r\n  set nocompatible\r\nendif\r\ncall dein#begin('~/.cache/dein-segfault')\r\ncall dein#add('Shougo/dein.vim', {'rtp': ''})\r\ncall dein#add('Shougo/vimproc.vim', {'build': 'make'})\r\ncall dein#add('Shougo/unite.vim')\r\ncall dein#end()\r\nif dein#check_install()\r\n    call dein#install()\r\nendif\r\n\r\nfiletype plugin indent on\r\nsyntax enable\r\nset nocompatible\r\n```\r\n\r\nlist of my [plugins](http://sprunge.us/JKOX):\r\n```\r\nShougo/dein.vim\r\nluochen1990/rainbow\r\nkshenoy/vim-signature\r\ntacroe/unite-mark\r\ntweekmonster/impsort.vim\r\nterryma/vim-multiple-cursors\r\nscrooloose/syntastic\r\nneomake/neomake\r\nAndrewRadev/linediff.vim\r\nSirVer/ultisnips\r\nhonza/vim-snippets\r\nValloric/ListToggle\r\nValloric/MatchTagAlways\r\nmileszs/ack.vim\r\nosyo-manga/vim-over\r\nosyo-manga/vim-anzu\r\nhaya14busa/incsearch.vim\r\nhaya14busa/incsearch-fuzzy.vim\r\nhaya14busa/vim-asterisk\r\nShougo/deoplete.nvim\r\nzchee/deoplete-jedi\r\nShougo/neoinclude.vim\r\nShougo/context_filetype.vim\r\nShougo/echodoc.vim\r\nracer-rust/vim-racer\r\nrust-lang/rust.vim\r\nChiel92/vim-autoformat\r\nfatih/vim-go\r\ntmux-plugins/vim-tmux\r\nchase/vim-ansible-yaml\r\ndavidhalter/jedi-vim\r\nnsf/gocode\r\nklen/python-mode\r\ndbsr/vimpy\r\nKonfekt/FastFold\r\nscrooloose/nerdcommenter\r\nscrooloose/nerdtree\r\nt9md/vim-quickhl\r\nterryma/vim-expand-region\r\nparadigm/vim-multicursor\r\nOlical/vim-enmasse\r\npelodelfuego/vim-swoop\r\ntpope/vim-markdown\r\njtratner/vim-flavored-markdown\r\nnelstrom/vim-markdown-preview\r\ntpope/vim-pastie\r\ntpope/vim-repeat\r\ntpope/vim-surround\r\ntpope/vim-unimpaired\r\nvim-scripts/VimExplorer\r\nvim-scripts/bufexplorer.zip\r\nvim-scripts/matchit.zip\r\ntomtom/tcomment_vim\r\nvim-scripts/taglist.vim\r\nmajutsushi/tagbar\r\ndag/vim2hs\r\neagletmt/ghcmod-vim\r\neagletmt/neco-ghc\r\nsk1418/Join.git\r\nShougo/unite.vim\r\nShougo/unite-outline\r\ntsukkee/unite-tag\r\nShougo/neomru.vim\r\nvim-scripts/Vim-R-plugin\r\njunegunn/vim-easy-align\r\njustinmk/vim-syntax-extra\r\nmetakirby5/codi.vim\r\nludovicchabant/vim-gutentags\r\nntpeters/vim-better-whitespace\r\neasymotion/vim-easymotion\r\ndahu/vim-fanfingtastic\r\nwellle/targets.vim\r\nkana/vim-textobj-user\r\nrhysd/vim-textobj-anyblock\r\nkana/vim-textobj-lastpat\r\nkana/vim-textobj-entire\r\nkana/vim-textobj-line\r\nkana/vim-textobj-indent\r\nbeloglazov/vim-textobj-quotes\r\nbps/vim-textobj-python\r\nglts/vim-textobj-comment\r\nJulian/vim-textobj-brace\r\nlucapette/vim-textobj-underscore\r\nreedes/vim-textobj-quote\r\nreedes/vim-textobj-sentence\r\nsaaguero/vim-textobj-pastedtext\r\nthinca/vim-textobj-between\r\nvim-scripts/ReplaceWithRegister\r\nkana/vim-operator-user\r\nkana/vim-smartword\r\ntriglav/vim-visual-increment\r\nflazz/vim-colorschemes\r\nguns/xterm-color-table.vim\r\nmhinz/vim-signify\r\nszw/vim-maximizer\r\nthinca/vim-qfreplace\r\nvim-scripts/greplace.vim\r\nvim-airline/vim-airline\r\nvim-airline/vim-airline-themes\r\njaxbot/semantic-highlight.vim\r\njunegunn/fzf\r\njunegunn/fzf.vim\r\nbeloglazov/vim-online-thesaurus\r\nAndrewRadev/splitjoin.vim\r\nchrisbra/NrrwRgn\r\nsheerun/vim-polyglot\r\nschickling/vim-bufonly\r\n```"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/241528136","html_url":"https://github.com/neovim/neovim/issues/5234#issuecomment-241528136","issue_url":"https://api.github.com/repos/neovim/neovim/issues/5234","id":241528136,"user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T19:48:11Z","updated_at":"2016-08-22T19:48:11Z","body":"Thanks, this is the correct place to report, segfaults are always bugs.\r\n\r\nDoes it happen without vimproc?"}}
{"actor":{"display_login":"justinmk"}}