[GH-ISSUE #449] [Issue]: lite crashes on Raspberry Pi since 1.5.7 due to upstream Wolfi issue #198

Closed
opened 2026-10-20 17:26:09 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @robwil on GitHub (May 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/449

Originally assigned to: @coxde on GitHub.

Summary

The :lite Docker image silently crashes with SIGILL (exit 132) on Raspberry Pi 4 / Cortex-A72-class CPUs whenever the server makes an outgoing LLM API call, due to a Wolfi-side regression in the nodejs-24 aarch64 binary that landed in the wolfi-base rebuild around 2026-05-01. v1.5.6-lite still runs; v1.5.7-lite and v1.5.8 (:lite) crash. I've filed a bug fix request upstream here: https://github.com/wolfi-dev/os/issues/78694

Expected behavior

Outgoing LLM calls (e.g. to OpenRouter) complete normally and the server stays up, like it does on :latest and like :lite did up to v1.5.6.

Actual behavior

The Node process is killed by SIGILL the moment the server invokes fetch() to call the LLM API. Because init: true plus restart: unless-stopped mask the signal, there is no error in the container logs — the server just silently restarts. From the user side, chats stall with no message.

A captured core dump shows the faulting instruction is PMULL2, an optional AArch64 instruction (FEAT_PMULL) that Cortex-A72 does not implement. It's emitted from V8/JIT-allocated memory on the global fetch() path used by undici. https.get and node:http2 are unaffected, so the failure is specific to the V8 codegen path that fetch exercises.

The regression is upstream in Wolfi's nodejs-24 build, not in Marinara source — Dockerfile.lite uses an unpinned cgr.dev/chainguard/wolfi-base reference, so when Wolfi rebuilt their base around 2026-05-01 the next :lite image silently inherited the broken binary. I'm filing this as a heads-up since the :lite tag is the one most affected Pi users will be on.

Steps to reproduce

  1. On a Raspberry Pi 4 (or any Cortex-A72-class aarch64 host without pmull in /proc/cpuinfo Features), run:
    docker run --rm --entrypoint node ghcr.io/pasta-devs/marinara-engine:lite \
      -e 'fetch("https://example.com/").then(r=>r.text()).then(t=>console.log(t.length))'
    
  2. Observe Illegal instruction (core dumped) and exit code 132.
  3. For the in-app version: deploy the :lite image via the documented docker compose setup, configure any LLM connection, send a chat — the container restarts silently mid-request.

Environment

  • Marinara Engine version: 1.5.8 (ghcr.io/pasta-devs/marinara-engine:lite, image Created=2026-05-05); also confirmed on 1.5.7-lite. v1.5.6-lite is unaffected.
  • Install type: docker (compose, behind gluetun WireGuard, but reproduces standalone)
  • OS + version: Raspberry Pi OS 64-bit (Debian Bookworm), kernel 6.6.20+rpt-rpi-v8, aarch64
  • Browser or app shell: not browser-related (server-side crash); reproduced from Firefox and the bare docker run repro above

Logs, screenshots, or video

Bisect across published :lite tags on this Pi:

:lite tag wolfi-base build fetch() test
1.5.6-lite 2026-04-17 ✅ exit 0
1.5.7-lite 2026-05-01 ❌ SIGILL exit 132
1.5.8 (:lite) 2026-05-01 ❌ SIGILL exit 132

gdb on the captured core dump:

Program terminated with signal SIGILL, Illegal instruction.
#0  0x0000001c71ec30c8 in ?? ()
=> 0x1c71ec30c8: pmull2 v0.1q, v31.2d, v30.2d
   0x1c71ec30c0: dup    v31.2d, x16
   0x1c71ec30c4: ushr   v30.16b, v3.16b, #7
   0x1c71ec30cc: pmull  v30.1q, v31.1d, v30.1d
   0x1c71ec30d0: trn2   v30.8b, v30.8b, v0.8b

CPU features on the affected hardware (note the absence of pmull):

Features: fp asimd evtstrm crc32 cpuid
HWCAP   : 0x887

Identical Node 24.15.0 from the official nodejs.org aarch64 tarball runs the same fetch() reproducer cleanly on the same hardware, confirming the bug is in Wolfi's build of the binary, not in upstream Node.

Additional context

Workaround for users today (e.g. for release notes or issue replies):

image: ghcr.io/pasta-devs/marinara-engine@sha256:726b3c82468a1e1b0ed84579c754202d700e8cf27861465d1c41fd2dc99adab8

That's the v1.5.6-lite multi-arch index. Alternatively :latest (Debian-based) is unaffected.

Possible directions — you know the project's maintenance budget and user base better than I do, so just options to weigh:

  • Wait for the upstream Wolfi fix. No code change needed; once Wolfi rolls a corrected nodejs-24, the next :lite rebuild picks it up automatically.
    • Pros: zero work; root-cause fix; no policy change.
    • Cons: Pi-class users are stuck until then; no protection from similar regressions later.
  • Add a README / compatibility note. Mention that :lite may not currently run on Cortex-A72-class hardware and point those users at :latest.
    • Pros: very low effort; sets expectations.
    • Cons: users coming from copy-pasted compose templates may miss it.
  • Pin wolfi-base by digest in Dockerfile.lite. Locks :lite builds to a known-good Wolfi snapshot.
    • Pros: protects against this exact failure mode recurring; reproducible builds.
    • Cons: base stops floating forward to security updates without active maintenance / Renovate; recovering the Apr-17 digest takes a bit of registry archaeology.
  • Switch Dockerfile.lite base to node:24-slim. Same approach as the standard Dockerfile.
    • Pros: Debian's Node binary uses a conservative ARM baseline so this class of issue goes away.
    • Cons: loses Chainguard's hardened base which is part of :lite's value proposition; image grows by ~80–100 MB.
  • Pi-class CI smoke check. Run the published :lite under a Pi-equivalent CPU constraint as a publish gate.
    • Pros: catches anything like this before users see it.
    • Cons: QEMU -cpu cortex-a72 is doable but adds CI minutes and one more thing to keep working.

I've also filed this against wolfi-dev/os (https://github.com/wolfi-dev/os/issues/78694) so the upstream binary gets fixed regardless of which direction you take here.

Happy to test patches on this hardware if useful — and thanks for the project, the :lite image was great on the Pi before this and I'd love to see it back!

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @robwil on GitHub (May 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/449 Originally assigned to: @coxde on GitHub. ## Summary The `:lite` Docker image silently crashes with `SIGILL` (exit 132) on Raspberry Pi 4 / Cortex-A72-class CPUs whenever the server makes an outgoing LLM API call, due to a Wolfi-side regression in the `nodejs-24` aarch64 binary that landed in the wolfi-base rebuild around 2026-05-01. v1.5.6-lite still runs; v1.5.7-lite and v1.5.8 (`:lite`) crash. I've filed a bug fix request upstream here: https://github.com/wolfi-dev/os/issues/78694 ## Expected behavior Outgoing LLM calls (e.g. to OpenRouter) complete normally and the server stays up, like it does on `:latest` and like `:lite` did up to v1.5.6. ## Actual behavior The Node process is killed by `SIGILL` the moment the server invokes `fetch()` to call the LLM API. Because `init: true` plus `restart: unless-stopped` mask the signal, there is no error in the container logs — the server just silently restarts. From the user side, chats stall with no message. A captured core dump shows the faulting instruction is `PMULL2`, an optional AArch64 instruction (`FEAT_PMULL`) that Cortex-A72 does not implement. It's emitted from V8/JIT-allocated memory on the global `fetch()` path used by undici. `https.get` and `node:http2` are unaffected, so the failure is specific to the V8 codegen path that fetch exercises. The regression is upstream in Wolfi's `nodejs-24` build, not in Marinara source — `Dockerfile.lite` uses an unpinned `cgr.dev/chainguard/wolfi-base` reference, so when Wolfi rebuilt their base around 2026-05-01 the next `:lite` image silently inherited the broken binary. I'm filing this as a heads-up since the `:lite` tag is the one most affected Pi users will be on. ## Steps to reproduce 1. On a Raspberry Pi 4 (or any Cortex-A72-class aarch64 host without `pmull` in `/proc/cpuinfo` Features), run: ```bash docker run --rm --entrypoint node ghcr.io/pasta-devs/marinara-engine:lite \ -e 'fetch("https://example.com/").then(r=>r.text()).then(t=>console.log(t.length))' ``` 2. Observe `Illegal instruction (core dumped)` and exit code 132. 3. For the in-app version: deploy the `:lite` image via the documented `docker compose` setup, configure any LLM connection, send a chat — the container restarts silently mid-request. ## Environment - Marinara Engine version: 1.5.8 (`ghcr.io/pasta-devs/marinara-engine:lite`, image `Created=2026-05-05`); also confirmed on 1.5.7-lite. v1.5.6-lite is unaffected. - Install type: docker (compose, behind gluetun WireGuard, but reproduces standalone) - OS + version: Raspberry Pi OS 64-bit (Debian Bookworm), kernel `6.6.20+rpt-rpi-v8`, `aarch64` - Browser or app shell: not browser-related (server-side crash); reproduced from Firefox and the bare `docker run` repro above ## Logs, screenshots, or video Bisect across published `:lite` tags on this Pi: | `:lite` tag | wolfi-base build | `fetch()` test | |---|---|---| | 1.5.6-lite | 2026-04-17 | ✅ exit 0 | | 1.5.7-lite | 2026-05-01 | ❌ SIGILL exit 132 | | 1.5.8 (`:lite`) | 2026-05-01 | ❌ SIGILL exit 132 | `gdb` on the captured core dump: ``` Program terminated with signal SIGILL, Illegal instruction. #0 0x0000001c71ec30c8 in ?? () => 0x1c71ec30c8: pmull2 v0.1q, v31.2d, v30.2d 0x1c71ec30c0: dup v31.2d, x16 0x1c71ec30c4: ushr v30.16b, v3.16b, #7 0x1c71ec30cc: pmull v30.1q, v31.1d, v30.1d 0x1c71ec30d0: trn2 v30.8b, v30.8b, v0.8b ``` CPU features on the affected hardware (note the absence of `pmull`): ``` Features: fp asimd evtstrm crc32 cpuid HWCAP : 0x887 ``` Identical Node 24.15.0 from the official `nodejs.org` aarch64 tarball runs the same `fetch()` reproducer cleanly on the same hardware, confirming the bug is in Wolfi's build of the binary, not in upstream Node. ## Additional context **Workaround for users today** (e.g. for release notes or issue replies): ```yaml image: ghcr.io/pasta-devs/marinara-engine@sha256:726b3c82468a1e1b0ed84579c754202d700e8cf27861465d1c41fd2dc99adab8 ``` That's the v1.5.6-lite multi-arch index. Alternatively `:latest` (Debian-based) is unaffected. **Possible directions** — you know the project's maintenance budget and user base better than I do, so just options to weigh: - **Wait for the upstream Wolfi fix.** No code change needed; once Wolfi rolls a corrected `nodejs-24`, the next `:lite` rebuild picks it up automatically. - *Pros:* zero work; root-cause fix; no policy change. - *Cons:* Pi-class users are stuck until then; no protection from similar regressions later. - **Add a README / compatibility note.** Mention that `:lite` may not currently run on Cortex-A72-class hardware and point those users at `:latest`. - *Pros:* very low effort; sets expectations. - *Cons:* users coming from copy-pasted compose templates may miss it. - **Pin wolfi-base by digest in `Dockerfile.lite`.** Locks `:lite` builds to a known-good Wolfi snapshot. - *Pros:* protects against this exact failure mode recurring; reproducible builds. - *Cons:* base stops floating forward to security updates without active maintenance / Renovate; recovering the Apr-17 digest takes a bit of registry archaeology. - **Switch `Dockerfile.lite` base to `node:24-slim`.** Same approach as the standard `Dockerfile`. - *Pros:* Debian's Node binary uses a conservative ARM baseline so this class of issue goes away. - *Cons:* loses Chainguard's hardened base which is part of `:lite`'s value proposition; image grows by ~80–100 MB. - **Pi-class CI smoke check.** Run the published `:lite` under a Pi-equivalent CPU constraint as a publish gate. - *Pros:* catches anything like this before users see it. - *Cons:* QEMU `-cpu cortex-a72` is doable but adds CI minutes and one more thing to keep working. I've also filed this against `wolfi-dev/os` (https://github.com/wolfi-dev/os/issues/78694) so the upstream binary gets fixed regardless of which direction you take here. Happy to test patches on this hardware if useful — and thanks for the project, the `:lite` image was great on the Pi before this and I'd love to see it back! ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:26:09 +07:00
Author
Owner

@robwil commented on GitHub (May 7, 2026):

Quick note re. image size in the options above: PR #500 (chown-collapse) just landed in main and shaves a big chunk off :lite on its own, independent of any base-image decision. From a local Debian (node:24-slim) rebuild on my Pi:

Image Size
Wolfi :lite 1.5.8 (current, broken on Pi 4) 1.29 GB
Debian rebuild without #500 1.40 GB
Debian rebuild with #500 826 MB
Wolfi 1.5.6-lite (last working on Pi 4, no #500) 743 MB

So once #500 ships, a Debian-based :lite would actually be smaller than the broken Wolfi build (and only ~85 MB more than v1.5.6-lite, before any further dep-stripping). The "Debian is bigger" objection is weaker than I made it sound — most of that gap was the duplicated chown layer, not the base. Wanted to flag so the size cons aren't double-counted, but the security benefits of Wolfi probably still stand.

<!-- gh-comment-id:4394165304 --> @robwil commented on GitHub (May 7, 2026): Quick note re. image size in the options above: PR #500 (chown-collapse) just landed in main and shaves a big chunk off `:lite` on its own, independent of any base-image decision. From a local Debian (`node:24-slim`) rebuild on my Pi: | Image | Size | |---|---| | Wolfi `:lite` 1.5.8 (current, broken on Pi 4) | 1.29 GB | | Debian rebuild without #500 | 1.40 GB | | Debian rebuild **with #500** | **826 MB** | | Wolfi 1.5.6-lite (last working on Pi 4, no #500) | 743 MB | So once #500 ships, a Debian-based `:lite` would actually be smaller than the broken Wolfi build (and only ~85 MB more than v1.5.6-lite, before any further dep-stripping). The "Debian is bigger" objection is weaker than I made it sound — most of that gap was the duplicated chown layer, not the base. Wanted to flag so the size cons aren't double-counted, but the security benefits of Wolfi probably still stand.
Author
Owner

@coxde commented on GitHub (May 7, 2026):

Thanks for the detailed report and upstream filing. This looks like an upstream Wolfi nodejs-24 aarch64 regression rather than a Marinara runtime bug. You can keep this open for tracking the upstream fixes.

For now we are going to document this as a known compatibility issue for Raspberry Pi 4 / Cortex-A72-class devices and wait for the Wolfi fix in wolfi-dev/os#78694. The recommended workaround is to use the regular Debian-based :latest image on affected hardware, or pin the last known-good lite image.

<!-- gh-comment-id:4396239630 --> @coxde commented on GitHub (May 7, 2026): Thanks for the detailed report and upstream filing. This looks like an upstream Wolfi `nodejs-24` aarch64 regression rather than a Marinara runtime bug. You can keep this open for tracking the upstream fixes. For now we are going to document this as a [known compatibility issue](https://github.com/Pasta-Devs/Marinara-Engine/commit/82a9ab1cb3717669bdd566f003aa0b92b311f4ba) for Raspberry Pi 4 / Cortex-A72-class devices and wait for the Wolfi fix in wolfi-dev/os#78694. The recommended workaround is to use the regular Debian-based `:latest` image on affected hardware, or pin the last known-good lite image.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Closing.

<!-- gh-comment-id:4414875048 --> @SpicyMarinara commented on GitHub (May 10, 2026): Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#198
No description provided.