-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.13.0 RC 2
-
Fix Version/s: 5.13.1, 5.14.0 Alpha
-
Component/s: ActiveX Support
-
Labels:
-
Environment:Windows 10. Visual Studio 2017. CMake 3.14.3.
-
Platform/s:
-
Commits:44602224bfae7bea08e5883768cfeef6629ac503 (qt/qtbase/5.13)
With Qt 5.13.0 RC2, CMake-based projects seem to link to the debug version of certain Qt LIB files also when building in release. This triggers the following run-time error:
Debug Assertion Failed! Program: C:\Dev\TestProject\Release\MyApp.exe File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp Line: 904 Expression: _CrtIsValidHeapPointer(block)
The mis-linking seem to be triggered by usage of static Qt libraries like ActiveQt.
Reproducer project: https://github.com/forderud/Qt-CMake-HelloWorld/tree/5.13-cmake . The reproducer will link to Qt5AxBased.lib Qt5Widgetsd.lib Qt5Guid.lib Qt5Cored.lib also when building in release.
I unfortunately don't know exactly when this regression was introduced, but it must have been sometime after 5.12.
- relates to
-
QTBUG-78119 [REG 5.13.0-5.13.1] Broken CMake build for static libs (QMAKE_PRL_LIBS_FOR_CMAKE)
-
- Closed
-