+ Further investigation has shown that CMake is no the main culprit here. There appears to be something wrong with the system libraries. The likely candidates are Musl libc, GCC, Binutils, and Valgrind. The problem might be made worse when threads are in use. Even the ls
command is showing problems. I would not be surprised if there is some sort of optimization problem.
+
+ I intend to first try different versions of Musl. The compiler and the linker are additional points of interest. I must also consider Valgrind to be mis-reporting. However, I believe the mis-reporting to be unlikely as I can identify bad behavior in several programs that works fine outside of this environment. +
+