Details
Description
reproducable deadlock of a program that does nothing else but qDebug() << "hello world" (see attached main.cpp).
Affects currently approx. < 5% of our relevant computers/users - affected environments cannot be fixed, not even with qInstallMessageHandler(), QT_FORCE_STDERR_LOGGING etc.
stack trace:
Attaching to program `C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\loggingDeadlock.exe', process 6776 [New Thread 6776.0x4c7c] [New Thread 6776.0x4758] [New Thread 6776.0x4c64] [New Thread 6776.0x4fcc] [New Thread 6776.0x5818] (gdb) bt #0 0x00007ffc874f0b11 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007ffc8751cbae in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x00007ffc87087614 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #3 0x00007ffc874a26b1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x0000000000000000 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) info thread Id Target Id Frame 1 Thread 6776.0x4c7c 0x00007ffc874edb34 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll 2 Thread 6776.0x4758 0x00007ffc874f0a74 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll 3 Thread 6776.0x4c64 0x00007ffc874f0a74 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll 4 Thread 6776.0x4fcc 0x00007ffc874f0a74 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll 5 Thread 6776.0x5818 0x00007ffc874f0b11 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) thread 1 [Switching to thread 1 (Thread 6776.0x4c7c)] #0 0x00007ffc874edb34 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) bt #0 0x00007ffc874edb34 in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007ffc84de1b40 in WaitForMultipleObjectsEx () from C:\WINDOWS\System32\KernelBase.dll #2 0x00007ffc84de1a3e in WaitForMultipleObjects () from C:\WINDOWS\System32\KernelBase.dll #3 0x0000000064941ead in pthread_cond_init () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\libwinpthread-1.dll #4 0x00000000649421a0 in pthread_cond_init () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\libwinpthread-1.dll #5 0x0000000064942721 in pthread_cond_wait () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\libwinpthread-1.dll #6 0x000000006fd07a37 in libstdc+{+}-6!.cxa_guard_acquire () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\libstdc{+}+-6.dll #7 0x0000000068a08d5c in QLoggingCategory::defaultCategory() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #8 0x000000006889afa8 in qt_message(QtMsgType, QMessageLogContext const&, char const*, char*) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #9 0x0000000068c3910d in QMessageLogger::warning(char const*, ...) const () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #10 0x0000000068931ca4 in updateSystemPrivate() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #11 0x0000000068931d75 in systemData() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #12 0x00000000689364f5 in QLocale::QLocale() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #13 0x00000000689ea476 in QResourceFileEngine::QResourceFileEngine(QString const&) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #14 0x0000000068a060dd in _q_resolveEntryAndCreateLegacyEngine_recursive(QFileSystemEntry&, QFileSystemMetaData&, QAbstractFileEngine*&, bool) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #15 0x0000000068a06216 in QFileSystemEngine::resolveEntryAndCreateLegacyEngine(QFileSystemEntry&, QFileSystemMetaData&) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #16 0x00000000689d2739 in QFileInfo::exists(QString const&) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #17 0x00000000688989c1 in QLibraryInfoPrivate::findConfiguration() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #18 0x0000000068898e90 in QLibrarySettings::load() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #19 0x000000006889977b in QLibraryInfo::location(QLibraryInfo::LibraryLocation) () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #20 0x0000000068a0b09d in QLoggingRegistry::initializeRules() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #21 0x0000000068a0ca26 in QLoggingRegistry::instance() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #22 0x0000000068a08d88 in QLoggingCategory::defaultCategory() () from C:\Users\trn7rt\AppData\Local\CCS\libnetfile-1.15.7-0\bin\Qt5Core.dll #23 0x000000000040157d in main () at main.cpp:7