Skip to content

Latest nightly binary is broken on aarch64 Asahi ("unsupported system page size") #134563

Closed
@eggyal

Description

@eggyal
Contributor

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

Activity

added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Dec 20, 2024
ionicmc-rs

ionicmc-rs commented on Dec 20, 2024

@ionicmc-rs
Contributor

Hey it didnt add the labels, let me try to add them

@rustbot label I-compilemem O-AArch64 requires-nightly S-has-bisection

added
I-compilememIssue: Problems and improvements with respect to memory usage during compilation.
O-AArch64Armv8-A or later processors in AArch64 mode
requires-nightlyThis issue requires a nightly compiler in some way.
S-has-bisectionStatus: A bisection has been found for this issue
on Dec 20, 2024
Kobzol

Kobzol commented on Dec 20, 2024

@Kobzol
Member

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

bjorn3 commented on Dec 20, 2024

@bjorn3
Member

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 using JEMALLOC_SYS_WITH_LG_PAGE at build time.

eggyal

eggyal commented on Dec 20, 2024

@eggyal
ContributorAuthor

Yes, I can confirm this was on Asahi.

Kobzol

Kobzol commented on Dec 20, 2024

@Kobzol
Member

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.

changed the title [-]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")[/+] on Dec 20, 2024
mrkajetanp

mrkajetanp commented on Dec 20, 2024

@mrkajetanp
Contributor

Should we maybe then just switch off jemalloc for this build since that's where the problem seems to be?

11 remaining items

added and removed
requires-nightlyThis issue requires a nightly compiler in some way.
on Jan 5, 2025
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Jan 5, 2025
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
and removed
I-compilememIssue: Problems and improvements with respect to memory usage during compilation.
on Jan 5, 2025
apiraino

apiraino commented on Jan 6, 2025

@apiraino
Contributor

WG-prioritization assigning priority (Zulip discussion).

@rustbot label -I-prioritize +P-critical

added and removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Jan 6, 2025
added
P-highHigh priority
and removed on Jan 6, 2025
added a commit that references this issue on Jan 6, 2025

Auto merge of rust-lang#135081 - mrkajetanp:jemalloc-64k, r=<try>

5917c7b
added a commit that references this issue on Jan 7, 2025

Rollup merge of rust-lang#135081 - mrkajetanp:jemalloc-64k, r=Kobzol

2b97db2
added a commit that references this issue on Jan 7, 2025
c656f5b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeP-highHigh priorityS-has-bisectionStatus: A bisection has been found for this issueT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @eggyal@Kobzol@apiraino@bjorn3@mrkajetanp

      Issue actions

        Latest nightly binary is broken on aarch64 Asahi ("unsupported system page size") · Issue #134563 · rust-lang/rust