Closed
Description
On aarch64 GNU/Linux:
$ rustc +nightly -vV
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
LLVM ERROR: out of memory
Allocation failed
Aborted (core dumped)
searched nightlies: from nightly-2024-12-19 to nightly-2024-12-20
regressed nightly: nightly-2024-12-20
searched commit range: 4ba4ac6...9e136a3
regressed commit: 023521e
bisected with cargo-bisect-rustc v0.6.7
Host triple: aarch64-unknown-linux-gnu
Reproduce with:
cargo bisect-rustc --without-cargo --start 2024-12-19 --script ./check.sh
Due to #133809 cc @mrkajetanp @Kobzol
@rustbot label +I-compilemem +O-AArch64 +requires-nightly +S-has-bisection
Metadata
Metadata
Assignees
Labels
Category: This is a bug.Armv8-A or later processors in AArch64 modeHigh priorityStatus: A bisection has been found for this issueRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.
Activity
ionicmc-rs commentedon Dec 20, 2024
Hey it didnt add the labels, let me try to add them
@rustbot label I-compilemem O-AArch64 requires-nightly S-has-bisection
Kobzol commentedon Dec 20, 2024
Thanks for the report. We should probably first get the after-dist tests running, or make sure that we test and deploy aarch64 on the same hardware, because currently we don't really have any tests that check whether the built artifacts actually work..
Posted a revert in #134564.
bjorn3 commentedon Dec 20, 2024
Are you on Asahi Linux by any chance? Asahi Linux uses 16k pages, but Jemalloc only supports a page size of at most the page size of the build system unless you explicitly override it with
--with-lg-page
at compile time. The tikv-jemalloc-sys crate we use supports setting this usingJEMALLOC_SYS_WITH_LG_PAGE
at build time.eggyal commentedon Dec 20, 2024
Yes, I can confirm this was on Asahi.
Kobzol commentedon Dec 20, 2024
Ok, so something like this wouldn't be caught on our CI anyway then. But it still seems like a regression, so we should probably restore the original behavior.
[-]Latest nightly binary for aarch64-unknown-linux-gnu is broken ("unsupported system page size")[/-][+]Latest nightly binary is broken on aarch64 Asahi ("unsupported system page size")[/+]mrkajetanp commentedon Dec 20, 2024
Should we maybe then just switch off jemalloc for this build since that's where the problem seems to be?
11 remaining items
apiraino commentedon Jan 6, 2025
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-critical
Auto merge of rust-lang#135081 - mrkajetanp:jemalloc-64k, r=<try>
Rollup merge of rust-lang#135081 - mrkajetanp:jemalloc-64k, r=Kobzol
Unrolled build for rust-lang#135081