You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jemalloc crashes on M1 Macs when building for an x86_64 target. Note that this bug does not occur when building for an aarch64 target. However, since some of our production software depends on C libraries that currently do not support ARM, we are forced to target x86_64 instead of ARM on the Rust side as well.
The program crashes with Exception: EXC_BAD_ACCESS (code=2, address=0x100f11688) when run from CLion, or terminated by signal SIGBUS (Misaligned address error) when run from command line.
This issue is preventing us from using Jemalloc when building and testing on M1 Macs, however we do use Jemalloc in all other circumstances without issues.
$ uname -a
Darwin bcd074405562.ant.amazon.com 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/Xxx/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin
stable-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin
active toolchain
----------------
/Users/Xxx/.rustup/toolchains/stable-x86_64-apple-darwin (overridden by '/Users/Xxx/CLionProjects/JemallocTest/rust-toolchain.toml')
rustc 1.62.1 (e092d0b6b 2022-07-16)
$ uname -a
Darwin bcd074405562.ant.amazon.com 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/Xxx/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin
stable-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin
active toolchain
----------------
/Users/Xxx/.rustup/toolchains/stable-aarch64-apple-darwin (overridden by '/Users/Xxx/CLionProjects/JemallocTest/rust-toolchain.toml')
rustc 1.63.0 (4b91a6ea7 2022-08-08)
The text was updated successfully, but these errors were encountered:
Please have a look at a minimal hello world program to reproduce: https://github.com/chriphus/jemalloc-bug
Jemalloc crashes on M1 Macs when building for an x86_64 target. Note that this bug does not occur when building for an aarch64 target. However, since some of our production software depends on C libraries that currently do not support ARM, we are forced to target x86_64 instead of ARM on the Rust side as well.
The program crashes with
Exception: EXC_BAD_ACCESS (code=2, address=0x100f11688)
when run from CLion, orterminated by signal SIGBUS (Misaligned address error)
when run from command line.The stack trace is:
This issue is preventing us from using Jemalloc when building and testing on M1 Macs, however we do use Jemalloc in all other circumstances without issues.
System Information
X86_64 Toolchain (Bug present)
Build & Run
AARCH64 Toolchain (Bug is not present)
Build & Run
The text was updated successfully, but these errors were encountered: