{"id":3762,"date":"2011-09-15T09:10:39","date_gmt":"2011-09-15T14:10:39","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=3762"},"modified":"2018-02-13T14:29:33","modified_gmt":"2018-02-13T19:29:33","slug":"reliable-crash-reporting","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2011\/09\/15\/reliable-crash-reporting\/","title":{"rendered":"Reliable Crash Reporting"},"content":{"rendered":"<p><a href=\"http:\/\/landonf.bikemonkey.org\/code\/objc\/Reliable_Crash_Reporting.20110912.html\">Landon Fuller<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/landonf.bikemonkey.org\/code\/objc\/Reliable_Crash_Reporting.20110912.html\"><p>Implementing a reliable and safe crash reporter on iOS presents a unique challenge: an application may not fork() additional processes, and <em>all handling of the crash must occur in the crashed process.<\/em> If this sounds like a difficult proposition to you, you&rsquo;re right. Consider the state of a crashed process: the crashed thread abruptly stopped executing, memory might have been corrupted, data structures may be partially updated, and locks may be held by a paused thread. It&rsquo;s within this hostile environment that the crash reporter must reliably produce an accurate crash report.<\/p><\/blockquote>\r\n<p>Mac developers may soon be updating their crash reporters, as Lion&rsquo;s application sandbox requires a temporary entitlement to access the crash log files.<\/p>\r\n<p>In theory, you can get crash logs from iTunes Connect, but there&rsquo;s no way to contact the user who submitted them, and I&rsquo;ve never actually seen any crash logs show up there for my applications.<\/p>","protected":false},"excerpt":{"rendered":"<p>Landon Fuller: Implementing a reliable and safe crash reporter on iOS presents a unique challenge: an application may not fork() additional processes, and all handling of the crash must occur in the crashed process. If this sounds like a difficult proposition to you, you&rsquo;re right. Consider the state of a crashed process: the crashed thread [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[30,53],"class_list":["post-3762","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-mac","tag-sandboxing"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=3762"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3762\/revisions"}],"predecessor-version":[{"id":3769,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3762\/revisions\/3769"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=3762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=3762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=3762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}