-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Description
Version
v20.19.6
Platform
> uname -a
Linux 79f27e4c6e8d 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64 Linux
Subsystem
No response
What steps will reproduce the bug?
It is a bit difficult to explain...
Long story short: We were using this official docker image:
https://hub.docker.com/layers/library/node/20-alpine3.22/images/sha256-bcd88137d802e2482c9df3cdec71e0431857ebbbdba6973776b5593214056d86
And on Nov 25, 2025 at 9:39 pm it got updated, and we traced the change to this commit:
nodejs/docker-node@edcdc15
(node env was bumped from 20.19.5 to 20.19.6)
The problem:
Since our internal release that used this container version (2 days after the change got pushed), we started to see segmentation faults on our workloads.
For context: We use AWS ECS services with tasks running on Fargate and Fargate Spot instances.
The only lead we have is the exit code of the containers: 139
How often does it reproduce? Is there a required condition?
! There are no application logs that could indicate other issues/errors and after our investigations we ruled out the possibility that this error comes from application code.
As for the timing of these occurrences, it seems completely random. Sometimes workers would crash with exit code 139 3-30 seconds after launch, sometimes after a few minutes, other times no crash at all.
What is the expected behavior? Why is that the expected behavior?
No crashes!
What do you see instead?
This is the formatted error (from AWS ECS) we see for different tasks in our workloads:
Exit Code: 139
Reason: N/A
Stopped Reason: Essential container in task exited
Stop Code: EssentialContainerExited
Additional information
Our workaround was to switch to using the previous node version (20.19.5):
https://hub.docker.com/layers/library/node/20.19.5-alpine3.22/images/sha256-be8d32d651b3e0c9c2b28fdc1d3888408125d703232013cff955344d052027e5
This change fixed all our issues with containers crashing randomly with exit code 139.
I thought I should report this behavior since it might need further investigation.