{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23850","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23850/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23850/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23850/events","html_url":"https://github.com/rust-lang/rust/issues/23850","id":65112214,"number":23850,"title":"compiled program SIGSEGV after thread panic!()s","user":{"login":"mikedilger","id":1669069,"avatar_url":"https://avatars.githubusercontent.com/u/1669069?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedilger","html_url":"https://github.com/mikedilger","followers_url":"https://api.github.com/users/mikedilger/followers","following_url":"https://api.github.com/users/mikedilger/following{/other_user}","gists_url":"https://api.github.com/users/mikedilger/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedilger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedilger/subscriptions","organizations_url":"https://api.github.com/users/mikedilger/orgs","repos_url":"https://api.github.com/users/mikedilger/repos","events_url":"https://api.github.com/users/mikedilger/events{/privacy}","received_events_url":"https://api.github.com/users/mikedilger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-crash","name":"I-crash","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-30T00:46:57Z","updated_at":"2016-06-06T19:15:37Z","closed_at":"2016-06-06T19:15:37Z","body":"A panic!() in one thread is killing entire program.  Program is too large to post (website, hyper w/ 5 threads) and condition may be hard for others to replicate, but I will try to create something to demonstrate.   Tail end of output from gdb:\r\n\r\n````\r\nProgram received signal SIGPIPE, Broken pipe.\r\n[Switching to Thread 0x7fffdf5fc700 (LWP 22406)]\r\n0x00007ffff7b1b337 in send () from /lib64/libc.so.6\r\n(gdb) \r\n(gdb) c\r\nContinuing.\r\nthread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os(32) }', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:775\r\n\r\nProgram received signal SIGPIPE, Broken pipe.\r\n0x00007ffff7b1b337 in send () from /lib64/libc.so.6\r\n(gdb) c\r\nContinuing.\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000555555a96dc8 in je_arena_dalloc_bin_locked ()\r\n(gdb) c\r\nContinuing.\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000555555a96dc8 in je_arena_dalloc_bin_locked ()\r\n(gdb) c\r\nContinuing.\r\n[Thread 0x7fffef1fc700 (LWP 22651) exited]\r\n[Thread 0x7fffeeffb700 (LWP 22652) exited]\r\n[Thread 0x7fffef3fd700 (LWP 22650) exited]\r\n[Thread 0x7fffef5fe700 (LWP 22649) exited]\r\n[Thread 0x7ffff43ff700 (LWP 22647) exited]\r\n[Thread 0x7ffff4bff700 (LWP 22646) exited]\r\n[Thread 0x7ffff5bf1700 (LWP 22640) exited]\r\n[Thread 0x7fffeffff700 (LWP 22639) exited]\r\n[Thread 0x7ffff5df2700 (LWP 22638) exited]\r\n[Thread 0x7ffff7fcf840 (LWP 22632) exited]\r\n[Thread 0x7fffef7ff700 (LWP 22648) exited]\r\n\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\nThe program no longer exists.\r\n(gdb) q\r\n````\r\n\r\nWhat caused the panic was calling hyper::server::response::Response .end().unwrap() after SIGPIPE, so the response can't be sent.   But the panic!() is expected, not a bug.  The bug is the SEGV afterwards.\r\n\r\n````\r\nmike@maze ~/local/joist $ rustc --version\r\nrustc 1.0.0-nightly (27901849e 2015-03-25) (built 2015-03-26)\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/224058825","html_url":"https://github.com/rust-lang/rust/issues/23850#issuecomment-224058825","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23850","id":224058825,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T19:15:36Z","updated_at":"2016-06-06T19:15:36Z","body":"Given that this issue was fixed in hyper, and we don't have a reproduction to see if there was a broader issue, I'm going to give this a close. @mikedilger if you're still seeing something like this, please let me know!"}}
{"actor":{"display_login":"steveklabnik"}}