{"id":1783,"date":"2008-09-23T10:11:22","date_gmt":"2008-09-23T14:11:22","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=1783"},"modified":"2008-09-23T10:11:25","modified_gmt":"2008-09-23T14:11:25","slug":"so-you-crashed-in-objc_msgsend","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2008\/09\/23\/so-you-crashed-in-objc_msgsend\/","title":{"rendered":"So You Crashed in objc_msgSend()"},"content":{"rendered":"<p><a href=\"http:\/\/www.sealiesoftware.com\/blog\/archive\/2008\/09\/22\/objc_explain_So_you_crashed_in_objc_msgSend.html\">Greg Parker<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.sealiesoftware.com\/blog\/archive\/2008\/09\/22\/objc_explain_So_you_crashed_in_objc_msgSend.html\">\n<p>Most likely, you sent a message to an already-freed object. Or maybe your pointer is perfectly correct, but someone else mangled the object&rsquo;s contents&mdash;perhaps a buffer overrun in a nearby allocation, or use of a dangling pointer that once pointed to the memory now occupied by your object. Occasionally <code>objc_msgSend()<\/code> crashes because a memory error smashed the runtime&rsquo;s own data structures, but usually the trouble is in the receiver object itself.<\/p>\n<p>Whether you&rsquo;re in the debugger or looking at a crash log, you can recover more information about the crash than just the backtrace.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Greg Parker: Most likely, you sent a message to an already-freed object. Or maybe your pointer is perfectly correct, but someone else mangled the object&rsquo;s contents&mdash;perhaps a buffer overrun in a nearby allocation, or use of a dangling pointer that once pointed to the memory now occupied by your object. Occasionally objc_msgSend() crashes because a [&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":[],"class_list":["post-1783","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1783","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=1783"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1783\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}