{"action":"opened","issue":{"url":"https://api.github.com/repos/tomaka/glutin/issues/778","repository_url":"https://api.github.com/repos/tomaka/glutin","labels_url":"https://api.github.com/repos/tomaka/glutin/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/glutin/issues/778/comments","events_url":"https://api.github.com/repos/tomaka/glutin/issues/778/events","html_url":"https://github.com/tomaka/glutin/issues/778","id":155849738,"number":778,"title":"Segfault on exit on OS X when running window example","user":{"login":"jbrd","id":3728063,"avatar_url":"https://avatars.githubusercontent.com/u/3728063?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrd","html_url":"https://github.com/jbrd","followers_url":"https://api.github.com/users/jbrd/followers","following_url":"https://api.github.com/users/jbrd/following{/other_user}","gists_url":"https://api.github.com/users/jbrd/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrd/subscriptions","organizations_url":"https://api.github.com/users/jbrd/orgs","repos_url":"https://api.github.com/users/jbrd/repos","events_url":"https://api.github.com/users/jbrd/events{/privacy}","received_events_url":"https://api.github.com/users/jbrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T22:28:50Z","updated_at":"2016-05-19T22:28:50Z","closed_at":null,"body":"Am running on OS X 10.10.5 (Yosemite), with rustc 1.8.0. \r\n\r\nRunning the window example crashes on exit. Steps to reproduce:\r\n\r\n- Clone glutin and check out latest master branch\r\n- Run `cargo run --example window`\r\n- Close the window\r\n\r\nUpon closing the window, the example will segfault. Details as follows:\r\n\r\n```\r\nCrashed Thread:        0  Dispatch queue: com.apple.main-thread\r\n\r\nException Type:        EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018\r\n\r\nVM Regions Near 0x18:\r\n--> \r\n    __TEXT                 00000001038b4000-0000000103938000 [  528K] r-x/rwx SM=COW  /Users/USER/*\r\n\r\nApplication Specific Information:\r\nobjc_msgSend() selector name: setDelegate:\r\n\r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0   libobjc.A.dylib               \t0x00007fff8bf6e0dd objc_msgSend + 29\r\n1   window                        \t0x00000001038c8a98 glutin::message::send_unverified<objc::runtime::Object,(*mut objc::runtime::Object),()> + 88 (mod.rs:187)\r\n2   window                        \t0x00000001038ca88a api::cocoa::WindowDelegate.Drop::drop::had74467e0a12df1dQJa + 202 (<objc macros>:18)\r\n3   window                        \t0x00000001038b5bad glutin..api..cocoa..WindowDelegate::drop.9621::h4035d12b5366011b + 61\r\n4   window                        \t0x00000001038b5ad1 glutin..api..cocoa..Window::drop.9599::h56518e6bf43ec835 + 49\r\n5   window                        \t0x00000001038b5a96 glutin..Window::drop.9596::h2c081b64f8945d0a + 6\r\n6   window                        \t0x00000001038b5896 window::main + 1302 (window.rs:37)\r\n7   window                        \t0x00000001038f38e3 sys_common::unwind::try::try_fn::h662774255089384887 + 35\r\n8   window                        \t0x00000001038f214c __rust_try + 12\r\n9   window                        \t0x00000001038f37a1 rt::lang_start::h06c4303e25b79660ujz + 497\r\n10  window                        \t0x00000001038ba03a main + 42\r\n11  libdyld.dylib                 \t0x00007fff902b15c9 start + 1\r\n```\r\n\r\nCan anybody else repro this issue?"}}
{"actor":{"display_login":"jbrd"}}