Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.6, 5.3.0, 5.3.1
-
None
-
Windows 7 64-bit
qt-opensource-windows-x86-mingw482_opengl-5.3.1_2014-05-28_14-05-01-97.exe
Description
The following C++11 code crashes with a segmentation fault:
#include <thread> int main() { for (int i = 0; i < 32768; ++i) { std::thread t([] {}); t.join(); } return 0; }
Compile with:
g++ -std=c++0x
It affects i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z but is fixed in i686-4.8.2-release-posix-dwarf-rt_v3-rev4.7z and later.
Backtrace:
Thread 620 (Thread 10360.0xeb4): #0 0x6fcae579 in libstdc++-6!execute_native_thread_routine () from C:\Qt\Qt5.3.1\5.3\mingw482_32\bin\libstdc++-6.dll No symbol table info available. #1 0x64944e4b in pthread_create_wrapper () from C:\Qt\Qt5.3.1\Tools\mingw482_32\opt\bin\libwinpthread-1.dll No symbol table info available. #2 0x766c1287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll No symbol table info available. #3 0x766c1328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll No symbol table info available. #4 0x7677338a in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll No symbol table info available. #5 0x77719f72 in ntdll!RtlInitializeExceptionChain () from C:\Windows\system32\ntdll.dll No symbol table info available. #6 0x77719f45 in ntdll!RtlInitializeExceptionChain () from C:\Windows\system32\ntdll.dll No symbol table info available. #7 0x00000000 in ?? () No symbol table info available. Thread 1 (Thread 10360.0x18b8): #0 0x776ff8d1 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll No symbol table info available. #1 0x776ff8d1 in ntdll!ZwWaitForSingleObject () from C:\Windows\system32\ntdll.dll No symbol table info available. #2 0x764a14ab in WaitForSingleObjectEx () from C:\Windows\syswow64\KernelBase.dll No symbol table info available. #3 0x00000068 in ?? () No symbol table info available. #4 0x76771194 in WaitForSingleObjectEx () from C:\Windows\syswow64\kernel32.dll No symbol table info available. #5 0x76771148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll No symbol table info available. #6 0x649463a9 in pthread_join () from C:\Qt\Qt5.3.1\Tools\mingw482_32\opt\bin\libwinpthread-1.dll No symbol table info available. #7 0x6fca0702 in libstdc++-6!_ZNSt6thread4joinEv () from C:\Qt\Qt5.3.1\5.3\mingw482_32\bin\libstdc++-6.dll No symbol table info available. #8 0x004016dc in main ()
Attachments
Issue Links
- is required for
-
QTBUG-41613 Issues to be fixed before 5.4.0 RC
- Closed