{"id":40806,"date":"2023-10-16T17:17:38","date_gmt":"2023-10-16T21:17:38","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=40806"},"modified":"2023-11-22T12:06:45","modified_gmt":"2023-11-22T17:06:45","slug":"what-happened-to-__crashreporter_info__","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/10\/16\/what-happened-to-__crashreporter_info__\/","title":{"rendered":"What Happened to __crashreporter_info__?"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/RavivDan\/status\/1713299015306260813\">Seth Willits<\/a> (in 2022):<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/RavivDan\/status\/1713299015306260813\"><p>The new &ldquo;ips&rdquo; crash reports in macOS do not contain <code>assert()<\/code> information!<\/p><pre>(Assertion failed: (myVar != nil), function fooBarTest(), file code.m, line 100)<\/pre><p>Problematic because symbolication is often finicky, so it takes a LOT more work to find which <code>assert()<\/code> failed.<\/p><p>[&#8230;]<\/p><p>I don&rsquo;t know whether it&rsquo;s the &ldquo;log&rdquo; that&rsquo;s to blame or that the <code>___crashreporter_info__<\/code> symbol is no longer supported, but even manually writing to it doesn&rsquo;t show up in the log anymore.<\/p><\/blockquote>\n<p>I&rsquo;m seeing this problem, too. My extra crash log information is not showing up on macOS 12.4 through 14.1 beta. It did work with previous versions of Monterey.<\/p>\n\n<p><a href=\"https:\/\/twitter.com\/RavivDan\/status\/1713299015306260813\">Dan Raviv<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/RavivDan\/status\/1713299015306260813\"><p>I&rsquo;m seeing the same issue. <code>__crashreporter_info__<\/code> apparently still not working on macOS 13.6.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2013\/02\/27\/application-specific-crash-report-information\/\">Application Specific Crash Report Information<\/a><\/li>\n<\/ul>\n\n<p id=\"what-happened-to-__crashreporter_info__-update-2023-11-22\">Update (2023-11-22): <a href=\"https:\/\/twitter.com\/mraleph\/status\/1622598001855287300\">Slava Egorov<\/a> (via <a href=\"https:\/\/twitter.com\/_saagarjha\/status\/1720039695256830345\">Saagar Jha<\/a>):<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/mraleph\/status\/1622598001855287300\"><p>Yeah, it&rsquo;s really mysterious. I even stepped through it instruction by instruction. There is nothing too magical about it - it just stores string pointer into a special struct in section __DATA.__crash_info. But only the default value seems to reach crash dump.<\/p><p>My current theory is that it gets filtered somewhere (maybe for privacy reasons or security?). But have no idea how to debug that given that I can&rsquo;t attach myself to whatever daemon that writes these logs. And I doubt it&rsquo;s open source either.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/_saagarjha\/status\/1622619638386528260\">Saagar Jha<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/_saagarjha\/status\/1622619638386528260\"><p>-[OSACrashReport _regionAtAddress:immutableCheck:] checks if the string is coming from an &ldquo;immutable region&rdquo; and if not will shunt the message into a &ldquo;sensitive&rdquo; version of the application specific info that is only logged on Apple Internal builds<\/p><p>The check appears to be (does the page not have VM_PROT_WRITE &amp;&amp; is the address from the shared cache). abort_report_np will never work because it always copies its string (it does a sprintf). CRSetCrashLogMessage *can* work but you need to hand it something ReportCrash likes<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Seth Willits (in 2022): The new &ldquo;ips&rdquo; crash reports in macOS do not contain assert() information!(Assertion failed: (myVar != nil), function fooBarTest(), file code.m, line 100)Problematic because symbolication is often finicky, so it takes a LOT more work to find which assert() failed.[&#8230;]I don&rsquo;t know whether it&rsquo;s the &ldquo;log&rdquo; that&rsquo;s to blame or that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-10-16T21:17:40Z","apple_news_api_id":"34faa603-fbfa-4cee-a73d-6725c3726c91","apple_news_api_modified_at":"2023-11-22T17:06:47Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/ANPqmA_v6TO6nPWclw3JskQ","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":[2479,56,30,2077,2223,2385,71],"class_list":["post-40806","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-crash-reporter","tag-debugging","tag-mac","tag-macos-12","tag-macos-13-ventura","tag-macos-14-sonoma","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40806","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=40806"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40806\/revisions"}],"predecessor-version":[{"id":41168,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/40806\/revisions\/41168"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=40806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=40806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=40806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}