{"action":"closed","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/2657","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2657/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2657/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2657/events","html_url":"https://github.com/commercialhaskell/stack/issues/2657","id":180448884,"number":2657,"title":"Issue with corruption in downloaded executable","user":{"login":"rdnetto","id":1973389,"avatar_url":"https://avatars.githubusercontent.com/u/1973389?v=3","gravatar_id":"","url":"https://api.github.com/users/rdnetto","html_url":"https://github.com/rdnetto","followers_url":"https://api.github.com/users/rdnetto/followers","following_url":"https://api.github.com/users/rdnetto/following{/other_user}","gists_url":"https://api.github.com/users/rdnetto/gists{/gist_id}","starred_url":"https://api.github.com/users/rdnetto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdnetto/subscriptions","organizations_url":"https://api.github.com/users/rdnetto/orgs","repos_url":"https://api.github.com/users/rdnetto/repos","events_url":"https://api.github.com/users/rdnetto/events{/privacy}","received_events_url":"https://api.github.com/users/rdnetto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/further%20investigation%20required","name":"further investigation required","color":"d4c5f9"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/need%20repro","name":"need repro","color":"fbca04"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20enhancement","name":"type: enhancement","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":196,"closed_issues":251,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2016-10-02T00:22:19Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"comments":4,"created_at":"2016-10-01T10:00:45Z","updated_at":"2016-10-02T00:22:19Z","closed_at":"2016-10-02T00:22:19Z","body":"### General summary/comments (optional)\r\n\r\nI just spent half a day trying to figure out why Stack was failing with exit code 139 and no output when Docker support was enabled, and eventually tracked it down to `~/.stack/programs/x86_64-linux/stack-1.1.2/stack` being corrupted (`file` and `ldd` couldn't parse the header). Deleting the folder and tarball fixed this, but the failure was pretty non-obvious, and I can easily see someone not as familiar with strace as me getting stuck on it.\r\n\r\nI haven't read the source, but I suspect that computing a hash of the tarball before extracting it would prevent this from happening. Ideally there'd be a more helpful error message, but I don't \r\n\r\n### Steps to reproduce\r\n* Add `docker: enable: true` to a project\r\n* Corrupt `~/.stack/programs/x86_64-linux/stack-1.1.2/stack` in some way\r\n\r\n### Expected\r\nAn error message telling the user to re-run `stack setup`, or Stack automatically re-downloading the file.\r\n\r\n### Actual\r\nStack silently terminates with exit code 139.\r\n\r\n### Stack version\r\n\r\n```\r\n$ stack --version\r\nVersion 1.1.2 x86_64 hpack-0.14.1\r\n```\r\n\r\n### Method of installation\r\n* Ebuild from the [Haskell overlay](git://github.com/gentoo-haskell/gentoo-haskell.git)\r\n"}}
{"actor":{"display_login":"mgsloan"}}