From: "mame (Yusuke Endoh)" Date: 2022-04-18T09:27:23+00:00 Subject: [ruby-core:108279] [Ruby master Bug#18735] The crash reporter need to be updated for Apple silicon Issue #18735 has been updated by mame (Yusuke Endoh). byroot (Jean Boussier) wrote in #note-3: > But I suppose we can assume Apple is going to ship a working `libunwind` at some point right? Agreed, I'm not strongly against. But I just think it's better to make sure it works if libunwind is appropriately installed. ---------------------------------------- Bug #18735: The crash reporter need to be updated for Apple silicon https://bugs.ruby-lang.org/issues/18735#change-97301 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- C backtrace dumping is only enabled for `x86_64` arch on macOS: `if defined(__APPLE__) && defined(__x86_64__) && defined(HAVE_LIBUNWIND_H)` I tested `libunwind` on M1 Mac, it seems to work fine. I think we should either remove this `x86_64` condition, or add an `arm64` condition as well. Proposed patch: https://github.com/ruby/ruby/pull/5770 The register dumping code would need to be implemented as well, but it's a bit beyond my capacities. I also think we should backport the fix on older rubies so that in case of crash we get better crash reports. -- https://bugs.ruby-lang.org/ Unsubscribe: