{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1612","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1612/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1612/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1612/events","html_url":"https://github.com/realm/realm-cocoa/pull/1612","id":60860097,"number":1612,"title":"Fix a crash in CFRunLoopSourceInvalidate","user":{"login":"tgoyne","id":408944,"avatar_url":"https://avatars.githubusercontent.com/u/408944?v=3","gravatar_id":"","url":"https://api.github.com/users/tgoyne","html_url":"https://github.com/tgoyne","followers_url":"https://api.github.com/users/tgoyne/followers","following_url":"https://api.github.com/users/tgoyne/following{/other_user}","gists_url":"https://api.github.com/users/tgoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/tgoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgoyne/subscriptions","organizations_url":"https://api.github.com/users/tgoyne/orgs","repos_url":"https://api.github.com/users/tgoyne/repos","events_url":"https://api.github.com/users/tgoyne/events{/privacy}","received_events_url":"https://api.github.com/users/tgoyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-12T17:32:25Z","updated_at":"2015-03-12T19:49:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/realm-cocoa/pulls/1612","html_url":"https://github.com/realm/realm-cocoa/pull/1612","diff_url":"https://github.com/realm/realm-cocoa/pull/1612.diff","patch_url":"https://github.com/realm/realm-cocoa/pull/1612.patch"},"body":"It turns out that the documentation's recommendation to release run loop sources immediate after adding them to the run loop is a rather bad idea, as the run loop releases its sources when it's shut down, so we'd crash if the kqueue waiter outlived the source thread.\r\n\r\nThe test forces this to happen by holding on to the RLMRealm after the thread dies, but it can happen inconsistently without that.\r\n\r\n@alazier "},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/78591187","html_url":"https://github.com/realm/realm-cocoa/pull/1612#issuecomment-78591187","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1612","id":78591187,"user":{"login":"alazier","id":250144,"avatar_url":"https://avatars.githubusercontent.com/u/250144?v=3","gravatar_id":"","url":"https://api.github.com/users/alazier","html_url":"https://github.com/alazier","followers_url":"https://api.github.com/users/alazier/followers","following_url":"https://api.github.com/users/alazier/following{/other_user}","gists_url":"https://api.github.com/users/alazier/gists{/gist_id}","starred_url":"https://api.github.com/users/alazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alazier/subscriptions","organizations_url":"https://api.github.com/users/alazier/orgs","repos_url":"https://api.github.com/users/alazier/repos","events_url":"https://api.github.com/users/alazier/events{/privacy}","received_events_url":"https://api.github.com/users/alazier/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T19:49:07Z","updated_at":"2015-03-12T19:49:07Z","body":":+1: "}}