{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/3367","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/3367/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/3367/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/3367/events","html_url":"https://github.com/rust-lang/cargo/issues/3367","id":193343173,"number":3367,"title":"cargo run: exit on signals not communicated","user":{"login":"birkenfeld","id":144359,"avatar_url":"https://avatars.githubusercontent.com/u/144359?v=3","gravatar_id":"","url":"https://api.github.com/users/birkenfeld","html_url":"https://github.com/birkenfeld","followers_url":"https://api.github.com/users/birkenfeld/followers","following_url":"https://api.github.com/users/birkenfeld/following{/other_user}","gists_url":"https://api.github.com/users/birkenfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/birkenfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birkenfeld/subscriptions","organizations_url":"https://api.github.com/users/birkenfeld/orgs","repos_url":"https://api.github.com/users/birkenfeld/repos","events_url":"https://api.github.com/users/birkenfeld/events{/privacy}","received_events_url":"https://api.github.com/users/birkenfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-04T10:18:45Z","updated_at":"2016-12-05T16:39:50Z","closed_at":"2016-12-05T16:39:49Z","body":"Simple example crate that segfaults:\r\n```\r\nfn main() {\r\n    unsafe {\r\n        println!(\"{}\", *(0 as *mut i32));\r\n    }\r\n}\r\n```\r\nRunning it:\r\n```\r\n$ cargo run\r\n   Compiling rust-test v0.1.0 (file:///home/gbr/devel/rust-test)\r\n    Finished debug [unoptimized + debuginfo] target(s) in 0.14 secs\r\n     Running `target/debug/rust-test`\r\n$ target/debug/rust-test\r\n[1]    7789 segmentation fault  target/debug/rust-test\r\n```\r\nIt would be nice to have the exit by signal communicated back by Cargo, otherwise this looks like everything went fine.\r\n\r\nBTW, the exit codes as given by `$?` are `1` for `cargo run` and `139` for direct invocation."}}
{"actor":{"display_login":"birkenfeld"}}