{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/5817","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/5817/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/5817/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/5817/events","html_url":"https://github.com/neovim/neovim/issues/5817","id":197431918,"number":5817,"title":"Segmentation fault when using tagbar","user":{"login":"morbit85","id":1958453,"avatar_url":"https://avatars.githubusercontent.com/u/1958453?v=3","gravatar_id":"","url":"https://api.github.com/users/morbit85","html_url":"https://github.com/morbit85","followers_url":"https://api.github.com/users/morbit85/followers","following_url":"https://api.github.com/users/morbit85/following{/other_user}","gists_url":"https://api.github.com/users/morbit85/gists{/gist_id}","starred_url":"https://api.github.com/users/morbit85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morbit85/subscriptions","organizations_url":"https://api.github.com/users/morbit85/orgs","repos_url":"https://api.github.com/users/morbit85/repos","events_url":"https://api.github.com/users/morbit85/events{/privacy}","received_events_url":"https://api.github.com/users/morbit85/received_events","type":"User","site_admin":false},"labels":[{"id":435854234,"url":"https://api.github.com/repos/neovim/neovim/labels/bug-crash","name":"bug-crash","color":"f9d0c4","default":false},{"id":248229439,"url":"https://api.github.com/repos/neovim/neovim/labels/waiting:reply","name":"waiting:reply","color":"fef2c0","default":false},{"id":298863445,"url":"https://api.github.com/repos/neovim/neovim/labels/waiting:repro","name":"waiting:repro","color":"fef2c0","default":false}],"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/milestone/10","labels_url":"https://api.github.com/repos/neovim/neovim/milestones/10/labels","id":1183808,"number":10,"title":"0.2","description":"","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":60,"closed_issues":202,"state":"open","created_at":"2015-06-27T19:05:24Z","updated_at":"2017-01-07T23:24:54Z","due_on":"2017-02-14T08:00:00Z","closed_at":null},"comments":12,"created_at":"2016-12-23T22:13:04Z","updated_at":"2017-01-08T14:18:27Z","closed_at":null,"body":"- `nvim --version`: NVIM v0.2.0-160-ga3b58cd\r\n- Vim (version: ) behaves differently?\r\n- Operating system/version: Linux Mint 18.1 Cinnamon 64-bit\r\n- Terminal name/version: gnome terminal 3.18.3\r\n- `$TERM`: xterm-256color\r\n\r\n### Actual behaviour\r\nSegmentation fault\r\n### Expected behaviour\r\nNo segmentation fault\r\n### Steps to reproduce using `nvim -u NORC`\r\n\r\n```\r\nnvim lib/controller.js\r\n:w\r\nwait about 10 seconds\r\n<Esc>\r\n```\r\nI see plugin error:\r\n```\r\nError detected while processing function <SNR>85_AutoUpdate[52]..<SNR>85_ProcessFile[26]..60:                                 \r\nline   28:                                                                                                                    \r\nE716: Key not present in Dictionary: kinds                                                                                    \r\nPress ENTER or type command to continue                                                                                       \r\nError detected while processing function <SNR>85_AutoUpdate[52]..<SNR>85_ProcessFile[26]..60:                                 \r\nline   28:                                                                                                                    \r\nE15: Invalid expression: a:typeinfo.kinds\r\n``` \r\nAfter pressing of `<Enter>` I see segfault.\r\n\r\nStacktrace:\r\n```\r\n[New LWP 27223]\r\n[New LWP 27227]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\nCore was generated by `nvim'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n#0  0x000000000049b97c in nothing_convert_one_value (ignored=0x7f81d14b0b60, mpstack=0x7ffd71509b00, tv=0x6f632e2effffffef, copyID=301670, objname=0x6dd4bd \"clear_tv argument\") at ../src/nvim/eval.c:18883\r\n18883\tTYPVAL_ENCODE_DEFINE_CONV_FUNCTIONS(static, nothing, void *, ignored)\r\n[Current thread is 1 (Thread 0x7f81d35a4780 (LWP 27223))]\r\n#0  0x000000000049b97c in nothing_convert_one_value (ignored=0x7f81d14b0b60, mpstack=0x7ffd71509b00, tv=0x6f632e2effffffef, copyID=301670, objname=0x6dd4bd \"clear_tv argument\") at ../src/nvim/eval.c:18883\r\n#1  0x000000000049c4aa in encode_vim_to_nothing (ignored=0x7f81d14b0b60, tv=0x7f81d14b0b60, objname=0x6dd4bd \"clear_tv argument\") at ../src/nvim/eval.c:18883\r\n#2  0x000000000049c568 in clear_tv (varp=0x7f81d14b0b60) at ../src/nvim/eval.c:18914\r\n#3  0x000000000049d2d0 in vars_clear_ext (ht=0x7f81d13e2660, free_val=1) at ../src/nvim/eval.c:19382\r\n#4  0x000000000049d256 in vars_clear (ht=0x7f81d13e2660) at ../src/nvim/eval.c:19359\r\n#5  0x00000000004a3549 in free_funccal (fc=0x7f81d13e2400, free_val=0) at ../src/nvim/eval.c:21733\r\n#6  0x00000000004a3314 in call_user_func (fp=0x7f81d13e7240, argcount=2, argvars=0x7ffd7150a340, rettv=0x7ffd7150a520, firstline=1, lastline=1, selfdict=0x0) at ../src/nvim/eval.c:21668\r\n#7  0x000000000048154f in call_func (funcname=0x7f81d18a6240 \"\\200\\375Q85_ProcessFile\", len=17, rettv=0x7ffd7150a520, argcount_in=2, argvars_in=0x7ffd7150a340, firstline=1, lastline=1, doesrange=0x7ffd7150a4ec, evaluate=true, partial=0x0, selfdict_in=0x0) at ../src/nvim/eval.c:7241\r\n#8  0x0000000000480e34 in get_func_tv (name=0x7f81d18a6240 \"\\200\\375Q85_ProcessFile\", len=17, rettv=0x7ffd7150a520, arg=0x7ffd7150a4f0, firstline=1, lastline=1, doesrange=0x7ffd7150a4ec, evaluate=1, partial=0x0, selfdict=0x0) at ../src/nvim/eval.c:7061\r\n#9  0x0000000000477dc3 in ex_call (eap=0x7ffd7150a670) at ../src/nvim/eval.c:2840\r\n#10 0x00000000004d235f in do_one_cmd (cmdlinep=0x7ffd7150a790, flags=7, cstack=0x7ffd7150a8a0, fgetline=0x4a3a70 <get_func_line>, cookie=0x7f81d20f4000) at ../src/nvim/ex_docmd.c:2198\r\n#11 0x00000000004ceed5 in do_cmdline (cmdline=0x0, fgetline=0x4a3a70 <get_func_line>, cookie=0x7f81d20f4000, flags=7) at ../src/nvim/ex_docmd.c:601\r\n#12 0x00000000004a2e84 in call_user_func (fp=0x7f81d13e8b00, argcount=2, argvars=0x7ffd7150b3f0, rettv=0x7ffd7150b5d0, firstline=1, lastline=1, selfdict=0x0) at ../src/nvim/eval.c:21579\r\n#13 0x000000000048154f in call_func (funcname=0x7f81d1233da0 \"\\200\\375Q85_AutoUpdate\", len=16, rettv=0x7ffd7150b5d0, argcount_in=2, argvars_in=0x7ffd7150b3f0, firstline=1, lastline=1, doesrange=0x7ffd7150b59c, evaluate=true, partial=0x0, selfdict_in=0x0) at ../src/nvim/eval.c:7241\r\n#14 0x0000000000480e34 in get_func_tv (name=0x7f81d1233da0 \"\\200\\375Q85_AutoUpdate\", len=16, rettv=0x7ffd7150b5d0, arg=0x7ffd7150b5a0, firstline=1, lastline=1, doesrange=0x7ffd7150b59c, evaluate=1, partial=0x0, selfdict=0x0) at ../src/nvim/eval.c:7061\r\n#15 0x0000000000477dc3 in ex_call (eap=0x7ffd7150b720) at ../src/nvim/eval.c:2840\r\n#16 0x00000000004d235f in do_one_cmd (cmdlinep=0x7ffd7150b840, flags=7, cstack=0x7ffd7150b950, fgetline=0x504343 <getnextac>, cookie=0x7ffd7150bf40) at ../src/nvim/ex_docmd.c:2198\r\n#17 0x00000000004ceed5 in do_cmdline (cmdline=0x0, fgetline=0x504343 <getnextac>, cookie=0x7ffd7150bf40, flags=7) at ../src/nvim/ex_docmd.c:601\r\n#18 0x0000000000503db2 in apply_autocmds_group (event=EVENT_CURSORHOLD, fname=0x7f81d13f1b00 \"/mnt/nix_hdd/src/nodejs-agent/lib/controller.js\", fname_io=0x0, force=false, group=-3, buf=0x7f81d2072000, eap=0x0) at ../src/nvim/fileio.c:6812\r\n#19 0x0000000000503567 in apply_autocmds (event=EVENT_CURSORHOLD, fname=0x0, fname_io=0x0, force=false, buf=0x7f81d2072000) at ../src/nvim/fileio.c:6459\r\n#20 0x00000000005974f6 in cursorhold_event (argv=0x7ffd7150c030) at ../src/nvim/os/input.c:78\r\n#21 0x00000000004b48ca in multiqueue_process_events (this=0x7f81d2018270) at ../src/nvim/event/multiqueue.c:146\r\n#22 0x0000000000574f73 in nv_event (cap=0x7ffd7150c1b0) at ../src/nvim/normal.c:7891\r\n#23 0x0000000000566553 in normal_execute (state=0x7ffd7150c110, key=-25341) at ../src/nvim/normal.c:1143\r\n#24 0x00000000006223ef in state_enter (s=0x7ffd7150c110) at ../src/nvim/state.c:58\r\n#25 0x0000000000564867 in normal_enter (cmdwin=false, noexmode=false) at ../src/nvim/normal.c:463\r\n#26 0x0000000000528f45 in main (argc=1, argv=0x7ffd7150c468) at ../src/nvim/main.c:542\r\n```"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/271153833","html_url":"https://github.com/neovim/neovim/issues/5817#issuecomment-271153833","issue_url":"https://api.github.com/repos/neovim/neovim/issues/5817","id":271153833,"user":{"login":"gerardbm","id":5253997,"avatar_url":"https://avatars.githubusercontent.com/u/5253997?v=3","gravatar_id":"","url":"https://api.github.com/users/gerardbm","html_url":"https://github.com/gerardbm","followers_url":"https://api.github.com/users/gerardbm/followers","following_url":"https://api.github.com/users/gerardbm/following{/other_user}","gists_url":"https://api.github.com/users/gerardbm/gists{/gist_id}","starred_url":"https://api.github.com/users/gerardbm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerardbm/subscriptions","organizations_url":"https://api.github.com/users/gerardbm/orgs","repos_url":"https://api.github.com/users/gerardbm/repos","events_url":"https://api.github.com/users/gerardbm/events{/privacy}","received_events_url":"https://api.github.com/users/gerardbm/received_events","type":"User","site_admin":false},"created_at":"2017-01-08T14:18:27Z","updated_at":"2017-01-08T14:18:27Z","body":"@justinmk, I can only reproduce it editing large JS files, for example [this one](https://github.com/galambalazs/smoothscroll/blob/master/src/sscr.js). Take a look at my [init.vim](https://github.com/gerardbm/vimrc/blob/master/init.vim). Make sure to have exuberant-ctags installed.\r\n\r\nThis is my `valgrind.log`:\r\n```\r\n==8203== Memcheck, a memory error detector\r\n==8203== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.\r\n==8203== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info\r\n==8203== Command: /usr/bin/nvim\r\n==8203== Parent PID: 2660\r\n==8203== \r\n==8203== Invalid read of size 4\r\n==8203==    at 0x80B23A7: set_ref_in_ht (in /usr/bin/nvim)\r\n==8203==    by 0x80BB652: garbage_collect (in /usr/bin/nvim)\r\n==8203==    by 0x818FEB6: os_inchar (in /usr/bin/nvim)\r\n==8203==    by 0x81F7FCD: state_enter (in /usr/bin/nvim)\r\n==8203==    by 0x816AE60: normal_enter (in /usr/bin/nvim)\r\n==8203==    by 0x8072CD5: main (in /usr/bin/nvim)\r\n==8203==  Address 0x772f5649 is not stack'd, malloc'd or (recently) free'd\r\n==8203== \r\n==8203== \r\n==8203== Process terminating with default action of signal 11 (SIGSEGV)\r\n==8203==  Access not within mapped region at address 0x772F5649\r\n==8203==    at 0x80B23A7: set_ref_in_ht (in /usr/bin/nvim)\r\n==8203==    by 0x80BB652: garbage_collect (in /usr/bin/nvim)\r\n==8203==    by 0x818FEB6: os_inchar (in /usr/bin/nvim)\r\n==8203==    by 0x81F7FCD: state_enter (in /usr/bin/nvim)\r\n==8203==    by 0x816AE60: normal_enter (in /usr/bin/nvim)\r\n==8203==    by 0x8072CD5: main (in /usr/bin/nvim)\r\n==8203==  If you believe this happened as a result of a stack\r\n==8203==  overflow in your program's main thread (unlikely but\r\n==8203==  possible), you can try to increase the size of the\r\n==8203==  main thread stack using the --main-stacksize= flag.\r\n==8203==  The main thread stack size used in this run was 8388608.\r\n==8203== \r\n==8203== HEAP SUMMARY:\r\n==8203==     in use at exit: 0 bytes in 0 blocks\r\n==8203==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated\r\n==8203== \r\n==8203== All heap blocks were freed -- no leaks are possible\r\n==8203== \r\n==8203== For counts of detected and suppressed errors, rerun with: -v\r\n==8203== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)\r\n```"}}
{"actor":{"display_login":"gerardbm"}}