{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/693","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/693/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/693/events","html_url":"https://github.com/fatih/vim-go/issues/693","id":127847995,"number":693,"title":"GoRun + GoTest on non-main package segfaults vim","user":{"login":"bmizerany","id":46,"avatar_url":"https://avatars.githubusercontent.com/u/46?v=3","gravatar_id":"","url":"https://api.github.com/users/bmizerany","html_url":"https://github.com/bmizerany","followers_url":"https://api.github.com/users/bmizerany/followers","following_url":"https://api.github.com/users/bmizerany/following{/other_user}","gists_url":"https://api.github.com/users/bmizerany/gists{/gist_id}","starred_url":"https://api.github.com/users/bmizerany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmizerany/subscriptions","organizations_url":"https://api.github.com/users/bmizerany/orgs","repos_url":"https://api.github.com/users/bmizerany/repos","events_url":"https://api.github.com/users/bmizerany/events{/privacy}","received_events_url":"https://api.github.com/users/bmizerany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T05:26:37Z","updated_at":"2016-01-23T22:59:48Z","closed_at":null,"body":"I've been fat-fingering my `,r` intead of `,t` recently and noticed a pattern where doing so crashes vim. The easy solution is \"don't do that.\" but I think this is a symptom of a knarly bug somewhere. This isn't the only way vim-go crashes vim for me but I can't tell you what I did before because I'm usually working in anger and am like \"gah. dang it. can't stop coding. reopen vim!\".\r\n\r\nThis has been happening on my old mac, and now my brand new macpro. I haven't been able to give a solid example of how to reproduce a crash until now, so here it is:\r\n\r\n`vim x.go`\r\n\r\n```\r\npackage x\r\n\r\nimport \"testing\"\r\n\r\nfunc TestSomething(t *testing.T)) {}\r\n```\r\n\r\n`:GoRun`\r\n`:GoTest`\r\n\r\nAbort Trap 6\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/174228933","html_url":"https://github.com/fatih/vim-go/issues/693#issuecomment-174228933","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/693","id":174228933,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T22:59:47Z","updated_at":"2016-01-23T22:59:47Z","body":"Hi @bmizerany. I could reproduce it, when you do the combination `:GoRun`, `:GoTest` very fast.  I see the following error: \r\n\r\n```\r\nPress ENTER or type command to continue Vim: Caught deadly signal ABRT\r\n\r\nVim: Finished.\r\n[1]    97864 abort      /usr/bin/vim x.go\r\n```\r\n\r\nBut this crash doesn't happen when you use a newer version of Vim (like installed with brew). It only happens for the default version coming from Mac OSX, which has the version:\r\n\r\n```\r\nVIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2015 16:22:14)\r\nCompiled by root@apple.com\r\n```\r\nThis version is really old (the new one is 7.4), and the new version has on top [hundreds of other patches](ftp://ftp.vim.org/pub/vim/patches/7.4/README). For example I've just received a brand new laptop too (new job), and I've compiled at that day. This version (which is 7.4) doesn't crash:\r\n\r\n```\r\nVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 28 2015 23:03:48)\r\nMacOS X (unix) version\r\nIncluded patches: 1-989\r\nCompiled by fatih@Fatihs-MacBook-Pro.local\r\n```\r\n\r\nUnfortunately, I don't know which one of the patches fixed the issue. The best way is to use a newer version of Vim. I've looked into it and there are other fixes to, like enabling with the following:\r\n\r\n```\r\n$ DYLD_FORCE_FLAT_NAMESPACE=1 vim\r\n```\r\n\r\nThere is not much I can do here right now. Maybe I should add a note in Readme for people to enfore them using version 7.4. Please let me know if updating your Vim version fixes the problem.\r\n\r\n\r\n"}}