
foojay · 9 min readDevOps & CI/CD
SIGILL on Startup: How the JDK AOT Cache Crashed Axelix in Docker
The article explains how the Java AOT cache can cause SIGILL crashes in Docker images when CPU features differ between build and runtime machines. It details the AOT cache structure, the adapter caching mechanism, and the missing CPU‑feature checks that led to the bug. It also describes the upstream fix and the practical mitigation of disabling adapter caching.
- AOT cache stores machine code adapters that depend on CPU features like AVX‑512 or SVE.
- JVM 25 did not validate CPU features inside the same architecture, causing SIGILL on incompatible CPUs.
- Disabling AOTAdapterCaching or using JDK 27’s CPU‑feature checks prevents crashes while retaining most performance gains.