From: "mame (Yusuke Endoh)" Date: 2022-04-15T10:31:37+00:00 Subject: [ruby-core:108259] [Ruby master Bug#18735] The crash reporter need to be updated for Apple silicon Issue #18735 has been updated by mame (Yusuke Endoh). I guess [this commit of libunwind](https://github.com/libunwind/libunwind/pull/330) is required to work on M1 mac. Looks like the commit is not released yet. I couldn't build the master version of libunwind because I have no privilege to install some dependencies. Can you confirm that your PR works well with the latest libunwind? I think it is okay to merge it if it works well. ---------------------------------------- Bug #18735: The crash reporter need to be updated for Apple silicon https://bugs.ruby-lang.org/issues/18735#change-97280 * 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: