{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/issues/issues/764","labels_url":"https://api.github.com/repos/vim-jp/issues/issues/764/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/issues/issues/764/comments","events_url":"https://api.github.com/repos/vim-jp/issues/issues/764/events","html_url":"https://github.com/vim-jp/issues/issues/764","id":105027071,"number":764,"title":"some tests crashes conhost.exe and vim.exe on Windows 7","user":{"login":"koron","id":468368,"avatar_url":"https://avatars.githubusercontent.com/u/468368?v=3","gravatar_id":"","url":"https://api.github.com/users/koron","html_url":"https://github.com/koron","followers_url":"https://api.github.com/users/koron/followers","following_url":"https://api.github.com/users/koron/following{/other_user}","gists_url":"https://api.github.com/users/koron/gists{/gist_id}","starred_url":"https://api.github.com/users/koron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koron/subscriptions","organizations_url":"https://api.github.com/users/koron/orgs","repos_url":"https://api.github.com/users/koron/repos","events_url":"https://api.github.com/users/koron/events{/privacy}","received_events_url":"https://api.github.com/users/koron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vim-jp/issues/labels/kind/bug","name":"kind/bug","color":"e10c02"},{"url":"https://api.github.com/repos/vim-jp/issues/labels/related/windows","name":"related/windows","color":"02e10c"},{"url":"https://api.github.com/repos/vim-jp/issues/labels/status/sent%20patch","name":"status/sent patch","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"koron","id":468368,"avatar_url":"https://avatars.githubusercontent.com/u/468368?v=3","gravatar_id":"","url":"https://api.github.com/users/koron","html_url":"https://github.com/koron","followers_url":"https://api.github.com/users/koron/followers","following_url":"https://api.github.com/users/koron/following{/other_user}","gists_url":"https://api.github.com/users/koron/gists{/gist_id}","starred_url":"https://api.github.com/users/koron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koron/subscriptions","organizations_url":"https://api.github.com/users/koron/orgs","repos_url":"https://api.github.com/users/koron/repos","events_url":"https://api.github.com/users/koron/events{/privacy}","received_events_url":"https://api.github.com/users/koron/received_events","type":"User","site_admin":false},"milestone":null,"comments":110,"created_at":"2015-09-05T13:23:57Z","updated_at":"2015-09-21T12:39:45Z","closed_at":null,"body":"#### Problem\r\n\r\nWindows7において、vim.exe から msys/msys2 で作られたプログラムを実行すると\r\nvim がフリーズするかクラッシュするように見える。\r\n実際にはコンソールを描画している conhost.exe がフリーズするか落ちている。\r\n\r\n##### Reproduce procedure\r\n\r\n1. start vim.exe on Windows7\r\n\r\n        vim -u NONE --noplugin\r\n\r\n2. execute a program which built by msys or msys2 from vim\r\n\r\n        :r!cat README.txt\r\n\r\n3. freeze or crash.\r\n\r\n    画面描画が戻らないだけの(conhostが生きてる)ケースと\r\n    conhostが死んでvimが生き残るケースがある。\r\n\r\n#### Conditions\r\n\r\n* Vim 7.4.854 (調査の結果、原因は [851](http://ftp.vim.org/vim/patches/7.4/7.4.851) related #732)\r\n* without kaoriya (= official version)\r\n* Visual Studio 2010 (vs10) 64bit\r\n* Windows 7 64bit\r\n* [more details, dump of `:version`](https://gist.github.com/koron/2b3204bd315bbb41db81)\r\n\r\n#### Status\r\n\r\n*   It seems `SetConsoleActiveScreenBuffer()` causes this problem\r\n*   crashed test might be changed with depending on vim version or other conditions.\r\n    * test47 - 7.4.851 on VS10\r\n    * test11 - 7.4.867, 7.4.872 on VS10\r\n\r\n#### Suggested Patch\r\n\r\nhttps://gist.github.com/koron/4cabff43767bca269792"},"comment":{"url":"https://api.github.com/repos/vim-jp/issues/issues/comments/141960784","html_url":"https://github.com/vim-jp/issues/issues/764#issuecomment-141960784","issue_url":"https://api.github.com/repos/vim-jp/issues/issues/764","id":141960784,"user":{"login":"ntak","id":7880034,"avatar_url":"https://avatars.githubusercontent.com/u/7880034?v=3","gravatar_id":"","url":"https://api.github.com/users/ntak","html_url":"https://github.com/ntak","followers_url":"https://api.github.com/users/ntak/followers","following_url":"https://api.github.com/users/ntak/following{/other_user}","gists_url":"https://api.github.com/users/ntak/gists{/gist_id}","starred_url":"https://api.github.com/users/ntak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntak/subscriptions","organizations_url":"https://api.github.com/users/ntak/orgs","repos_url":"https://api.github.com/users/ntak/repos","events_url":"https://api.github.com/users/ntak/events{/privacy}","received_events_url":"https://api.github.com/users/ntak/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T12:39:45Z","updated_at":"2015-09-21T12:39:45Z","body":"別物には別名を、でないと収拾がつかなくなるので関数名は変更したままにしています。\r\nhttps://gist.github.com/ntak/ee5b51fd7b240354ea50"}}