Priority: Not Evaluated
Affects Version/s: 5.15.0
Fix Version/s: 5.15.1
Component/s: Core: Plugins
Environment:Qt 5.15.0 Commercial
Windows 10, OS build 19041.450
MSVC 2019 with CL version 19.26.28806 for x64
QMAKE/jom under Qt Creator 4.12.1 (as supplied with the commercial installer).
I am seeing a repeatable crash before entering main with debug builds against a static build of Qt 5.15.
- Qt 5.15.0 Commercial
- Windows 10, OS build 19041.450
- MSVC 2019 with CL version 19.26.28806 for x64
- QMAKE/jom under Qt Creator 4.12.1 (as supplied with the commercial installer).
I am using the following configure line to build Qt:
Here's my qmake.pro file:
And here is my main:
The crash occurs in QArrayData::deallocate after calling qRegisterStaticPluginFunction to initialize QWindowsVistaStylePlugin (under static initialization in Windows initterm function).
I note that the call to staticPluginList in qRegisterStaticPluginFunction returns a null pointer and that this function is called before anything in in the macro Q_GLOBAL_STATIC(StaticPluginList, staticPluginList) is called. The issue appears to be related to order of static initialization across compilation units.