A small update here on my part: This christmas holiday I tried to set out and understand the source of my problem. However what I found instead: - Using the Qt-provided MinGW 11.2.0 64-bit I was not able to reproduce the problems reported here [i.e. using ThreadPool-pthread.cpp and conditionVariableTest.cpp]. - Using the Qt-provided MinGW 8.1.0 64-bit both programs still fail. According to https://wiki.qt.io/MinGW the respective versions are: - 11.2.0: mingw-builds x86_64-11.2.0-release-posix-seh-rt_v9-rev1...
I recently encountered the same problem - however not when using pthread explicitely but the MinGW64 std::condition_variable. A somewhat minimal example is attached. If there is anything I can do so a fix gets implemented - please let me know. Other than that I would like to emphasize the criticality once more: This breaks std-library components!
I should probably add that ftello64 returns "8" for all tested compilers.
_ftelli64 returns wrong values with MinGW-w64 32-bit