Skip to content

mongo 8.0.5+ crash-loops with SIGSEGV (exit 139) on arm64 / Raspberry Pi 5; 8.0.4 is fine #762

@tuffant21

Description

@tuffant21

Summary

On arm64 (Raspberry Pi 5, Cortex-A76 / ARMv8.2-A), mongod from the official image starts, runs for a short time, then dies with SIGSEGV (docker events shows die exitCode=139) and loops forever under a restart policy. No graceful shutdown and no fatal log line is emitted; the next start just reports "Detected unclean shutdown."

Bisecting the published tags gives a clean boundary: 8.0.4 is the last good release; 8.0.5 is the first that crash-loops, and every release after it (8.0.6 → 8.0.26, all 8.2.x, all 8.3.x, latest) is affected.

Reproduction

docker run --rm mongo:8.0.5     # SIGSEGV (exit 139), crash-loops roughly every ~30s
docker run --rm mongo:8.0.4     # runs fine

No app, config, replica set, or volumes required — a bare docker run reproduces it. To watch the crash:

docker events --filter image=mongo:8.0.5 --filter event=die \
  --format '{{.Time}} exit={{.Actor.Attributes.exitCode}}'

Bisect (one standalone container per version)

Version Result
8.0.0 – 8.0.4 OK
8.0.5 first bad — SIGSEGV 139
8.0.6, 8.0.13, 8.0.26 crash-loop
8.2.1, 8.2.9 crash-loop (139)
8.3.4 crash-loop

There is no published 8.0.2 or 8.0.7, so 8.0.4 → 8.0.5 is the exact consecutive boundary in the official images.

Environment

  • Image: official library/mongo, tags 8.0.5+ (build: allocator: tcmalloc-google, distmod: ubuntu2404, distarch: aarch64)
  • Host: Raspberry Pi 5, Cortex-A76 (ARMv8.2-A), Ubuntu kernel 7.0.0-1010-raspi, page size 4096
  • Docker 29.5.1

Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions