Skip to content

Bun will abort on 64K page size kernel #6241

Closed

Description

@gnattu

What version of Bun is running?

1.0.3

What platform is your computer?

Linux 5.6.3 aarch64 unknown

What steps can reproduce the bug?

Run bun on a kernel with arm64 CPU that supports 64K page size, and then enable 64K page size for the Linux kernel.

getconf PAGESIZE
65536

With such kernel, even an extremely simple Hello world server would result in exit-code aborted:

The hello.js

Bun.serve({
  port: 8080,
  fetch(request) {
    return new Response("Hello world");
  },
});

The result:

~/.bun/bin/bun run hello.js
Aborted

What is the expected behavior?

Bun should not crash

What do you see instead?

Bun crashed with exit code aborted

Additional information

I'm not 100% sure if it is related to 64K page size, but I have tested it on various arm64 boards I currently have, and it only aborts on the one with 64K kernel.

Activity

  1. Jarred-Sumner commented on Aug 29, 2024

    @Jarred-Sumner
    Collaborator

    We have a lot of hardcoded constants that assume page size

  2. added and removed
    bugSomething isn't working
    on Oct 26, 2024
  3. RossComputerGuy commented on Dec 17, 2024

    @RossComputerGuy

    I've noticed this on Ampere Altra as well running with a 64k page size.

  4. added
    jscRelated to an issue in JavaScriptCore
    and removed on Jun 18, 2025
  5. nektro commented on Jun 18, 2025

    @nektro
    Contributor

    Zig updated its standard library to handle dynamic page sizes per target so this is now blocked on either jsc as it expects 16kb page size for this target unless compiled with a particular flag or we would have to offer a separate build

  6. TigerHix commented on Jul 3, 2025

    @TigerHix
  7. github-actions commented on Nov 25, 2025

    @github-actions
    Contributor

    Found 1 possible duplicate issue:

    1. tracking: support non-4k page sizes on aarch64 linux #17627

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  8. dylan-conway commented on Mar 23, 2026

    @dylan-conway
    Member

    Support for 64k page size will be added in the next release (v1.3.12). We patched JSC in #28345

  9. 190n commented on Mar 23, 2026

    @190n
    Contributor

    Exciting! Wanna update #17627 too?

    For those curious, the relevant WebKit-side changes are at oven-sh/WebKit#176 (the SHA change in #28345 is only adding that PR's merge commit). Will you be upstreaming this support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

crashAn issue that could cause a crashjscRelated to an issue in JavaScriptCore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions