You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: processes such as ctest freezing in container when using more than 1 CPU core #293
If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
hardware: MacBook Pro M2 Max (don't know if this is a requirement; I don't have any other hardware to test with)
container v0.2.0 installed via homebrew (it's not a new bug, it was also already present on v0.1.0)
container image pull gcc:15.1.0-bookworm (it's not specific to this container; lots of other containers do the job as well; this one is just the simplest to reproduce with)
cd /my
sh cmake-3.31.8-linux-x86_64.sh
pushd /usr/bin
ln -s /my/cmake-3.31.8-linux-x86_64/bin/cmake
ln -s /my/cmake-3.31.8-linux-x86_64/bin/ctest
popd
tar xfz jansson-2.14.tar.gz
cd jansson-2.14
cmake .
make
make check
Current behavior
Subprocess ctest of make check freezes during the tests. If you're unlucky, already process cmake freezes two steps earlier. Seems quite random at which stage exactly it freezes.
Possibly helpful observations:
If you use a container that has strace installed, and via a second shell container exec -it <hash of the container> /bin/bash attach to the frozen process via strace -p <its pid>, the frozen process continues to run as expected (all tests passed, exit code 0). Thus, it seems that an EINTR unblocks the frozen process again.
The bug does not occur when running the container with just 1 CPU core.
Expected behavior
Must not freeze also when the container is run with many (e.g. 12) CPU cores.
Activity
yerseg commentedon Jul 15, 2025
Having same issue with my ubuntu-based dev container. My CMake build hangs always at some time but goes under strace.
jglogan commentedon Aug 15, 2025
validated against GitHub artifacts:
https://github.com/akheron/jansson/releases/tag/v2.14
https://github.com/Kitware/CMake/releases/tag/v3.31.8
jglogan commentedon Aug 15, 2025
created for convenience:
run.sh
build.sh
jglogan commentedon Aug 15, 2025
@jgehw @yerseg I'm on an M3 Pro Max, when I tried with 2 CPUs, running the commands one by one, everything worked fine.
Went to 10 CPUs and just ran the build script and I see it hang in
cmake.ps output:
Attached strace to PID 18 and
cmakecompleted.makeworked,make checkalso hung.Nothing obvious in the boot logs but that's not going to show anything about the shell's child processes.
dcantah commentedon Aug 26, 2025
We've identified this as a Rosetta emulation issue. The Rosetta team is investigating!
jglogan commentedon Mar 31, 2026
Please retest with macOS 26.2 or newer. I believe that the Rosetta fix for this issue landed there.
I tested with on my system using the
build.shscript above and don't see the hang.Open a new issue with full repro steps if you see it happening on 26.2 or newer.
jgehw commentedon Apr 11, 2026
I retested with macOS 26.4 -- that fixed the issue :-)
Many thanks!