Skip to content

Raspberry Pi 5 crash in 1.5.2 due to jemalloc / 16KB page size incompatibility #1147

@holas1337

Description

@holas1337

Description

Pagefind crashes on Raspberry Pi 5 starting from version 1.5.2.

The last working version is:

  • 1.5.0 → works
  • 1.5.2 → crashes

The failure is caused by jemalloc failing on systems with 16KB memory
page size (Raspberry Pi OS ARM64 default).


Environment

  • Device: Raspberry Pi 5 (ARM64)
  • OS: Raspberry Pi OS (Linux)
  • Page size: 16KB
  • Node: npx / npm

Versions tested

Version Result


1.5.0 works
1.5.2 crashes


Steps to reproduce

npx pagefind@1.5.2 --site public/static --output-path public/pagefind

Error output

<jemalloc>: Unsupported system page size
memory allocation of 16 bytes failed

Expected behavior

Pagefind should run on ARM64 Linux systems regardless of memory page
size configuration (including Raspberry Pi 5 with 16KB pages).


Actual behavior

Binary crashes immediately due to jemalloc initialization failure on
16KB page size systems.


Suspected cause

  • jemalloc introduced or enabled in builds starting around 1.5.1
  • Raspberry Pi 5 ARM64 uses 16KB page size, incompatible with this
    configuration
  • 1.5.0 likely uses system allocator or different build flags

Impact

  • Raspberry Pi 5
  • ARM64 systems with 16KB page size
  • Other non-standard Linux memory configurations

Workaround

npx pagefind@1.5.0

Or run indexing on CI / local machine and deploy static output.


Request

  • Provide ARM64 builds without jemalloc
  • Allow fallback to system allocator
  • Detect 16KB page size systems
  • Provide Raspberry Pi compatible build

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions