Support for running under Rosetta 2 emulation on Apple M1?

598 views
Skip to first unread message

Marshall Greenblatt

unread,
Mar 15, 2021, 3:57:45 PM3/15/21
to Crashpad-dev
Hi All,

I have an application based on Chromium that supports crash reporting. When running the Intel app under Rosetta 2 emulation on an Apple M1 device the crash capture fails with errors (like [1]) that appear related to missing kernel functionality. What would it take to get crash reporting working under Rosetta 2 emulation? Would it make a difference if I was only interested in capturing the stack trace information?

Thanks,
Marshall

[1] Errors:

[0308/165743.355212:ERROR:render_frame_impl.cc(1348)] Intentionally crashing (with null pointer dereference) because user navigated to chrome://crash/
[0308/165743.365592:ERROR:process_reader_mac.cc(308)] thread_get_state(4): (os/kern) invalid argument (4)
[0308/165743.365787:ERROR:process_reader_mac.cc(308)] thread_get_state(4): (os/kern) invalid argument (4)
[0308/165743.365816:ERROR:process_reader_mac.cc(308)] thread_get_state(4): (os/kern) invalid argument (4)
[0308/165743.365837:ERROR:process_reader_mac.cc(308)] thread_get_state(4): (os/kern) invalid argument (4)
...
[0308/165743.366918:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x305837000, 0x2000): (os/kern) invalid address (1)
[0308/165743.367746:WARNING:process_reader_mac.cc(517)] multiple MH_EXECUTE modules (/Users/marshall/Downloads/cef_binary_87.1.14+ga29e9a3+chromium-87.0.4280.141_macosx64_client/Release/cefclient.app/Contents/Frameworks/cefclient Helper (Renderer).app/Contents/MacOS/cefclient Helper (Renderer), /Library/Apple/usr/libexec/oah/runtime)
[0308/165743.484195:ERROR:exception_snapshot_mac.cc(139)] exception_thread not found in task

Glenn Popelka

unread,
Dec 8, 2021, 3:49:38 PM12/8/21
to Crashpad-dev, magree...@gmail.com
We have a macos app using crashpad code from early 2019, and notice we are not getting crash reporting when the app runs on M1. We cannot do native M1/Universal due to 3rd party constraints.

Does the latest crashpad support crash dumps under Rosetta 2?

Mark Mentovai

unread,
Dec 9, 2021, 12:35:47 PM12/9/21
to Glenn Popelka, Crashpad-dev, magree...@gmail.com
No, Crashpad doesn’t support this.

--
You received this message because you are subscribed to the Google Groups "Crashpad-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crashpad-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/98a0ebbd-50b6-4c7d-8b9a-d7a7fd1cefccn%40chromium.org.

Eric Sanders

unread,
Mar 17, 2022, 7:20:06 AM3/17/22
to Crashpad-dev, Mark Mentovai, Crashpad-dev, magree...@gmail.com, Glenn Popelka
Hi all,

Is there any chance of reviving this? What is missing at the Apple level?

Thanks
-EricS
Reply all
Reply to author
Forward
0 new messages