Intermittent "unexpected EOF" while downloading container layers when built with go 1.24
Description:
When pulling images, there occasionally occurs a segmentation fault in dockerd. As this is built with Go 1.24, please refer to the upstream issue: https://github.com/moby/moby/issues/49513. Until this issue is resolved, it is recommended to avoid packaging with Go 1.24 and temporarily switch to using Go 1.23 as a workaround.
Additional info:
- package version(s): docker 28.0.1 with go1.24.1 at git commit bbd0a17ccc
- config and/or log files:
- link to upstream bug report, if any: https://github.com/moby/moby/issues/49513
Steps to reproduce:
- Install the latest Docker version via
pacman -S docker
. - Repeatedly attempt to pull images using
docker pull SOME_IMAGE
- When encountering an
unexpected EOF
error, inspect Docker service logs withjournalctl -xeu docker
. - Identify crash reports similar to the following:
Process 36200 (dockerd) of user 0 dumped core.
Stack trace of thread 36220:
#0 0x00005f257ce81098 n/a (/usr/bin/dockerd + 0x39098)
#1 0x00005f257cedfbd9 n/a (/usr/bin/dockerd + 0x97bd9)
#2 0x00005f257cee5029 n/a (/usr/bin/dockerd + 0x9d029)
#3 0x00005f257cedc516 n/a (/usr/bin/dockerd + 0x94516)
#4 0x00005f257ceb0625 n/a (/usr/bin/dockerd + 0x68625)
#5 0x00005f257ceb02df n/a (/usr/bin/dockerd + 0x682df)
ELF object binary architecture: AMD x86-64