Skip to content

Panic with Pointer is not 4-bits aligned or over 51-bits #4275

Open
@andreievg

Description

@andreievg

Describe the bug
Getting this panic on aarch64-linux-android build running on Android device:

2025-06-06 09:19:02.933955487 [ERROR] <log_panics:130>:thread '' panicked at 'assertion left == right failed: Pointer is not 4-bits aligned or over 51-bits.
left: 502975824280
right: 12970367429802852760': /.cargo/git/checkouts/boa-126d820dff07bf57/6f03c21/core/engine/src/value/inner/nan_boxed.rs:379

To Reproduce

I've create this repo, with replication instructions, test pass on v0.20, but fail on main, this is only testeable with, arm64-v8a.

Github action result:

with main - fail

https://github.com/andreievg/boa-alignment-test/actions/runs/15518347532/job/43688241875

with 0.20 - pass

https://github.com/andreievg/boa-alignment-test/actions/runs/15518345141/job/43688235969

with revert 14b88c9a (my fork) - fail - oops i thought it was just the latest change, but looks like it might be from: #4091

https://github.com/andreievg/boa-alignment-test/actions/runs/15518421733/job/43688400569#step:8:19

with 12faeca - pass (this is before #4091)

https://github.com/andreievg/boa-alignment-test/actions/runs/15518534570

Expected behavior
Explain what you expected to happen, and what is happening instead.

Build environment (please complete the following information):

  • OS: Samsung tablet, Android
  • Version: On "main", 0.20 works
  • Target triple: aarch64-linux-android
  • Rustc version: 1.86.0

Additional context

@raskad, here is the issue, sorry couldn't get replication going in the github action

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions