Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
dev
-
None
-
09fdddeb3 (dev), 70ee85eff (6.6), 830c4041b (dev), e86dc821d (6.6)
Description
In Coin, when testing submodules, the stacktraces from gdb or ASAN do not contain source code lines. I filed COIN-1087 for this, see the stacktrace from testing qtvirtualkeyboard on that ticket.
It turns out this is because the libraries are stripped when installed, see for example this snippet from a qtbase build:
agent:2023/09/29 09:22:50 build.go:875: Executing instruction 55 of 86 - ExecuteCommand agent:2023/09/29 09:22:50 build.go:428: [cmake -DQT_BUILD_DIR=/home/qt/work/qt/qtbase_build -P /home/qt/work/qt/qtbase_build/libexec/qt-cmake-private-install.cmake] 1h40m0s 20m0s false false agent:2023/09/29 09:22:50 build.go:405: -- Installing configuration: 'Debug' agent:2023/09/29 09:22:50 build.go:405: '/opt/cmake-3.16.8/bin/cmake' '--install' '/home/qt/work/qt/qtbase_build' '--config' 'Debug' '--strip' agent:2023/09/29 09:22:50 build.go:405: -- Installing: /home/qt/work/install/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake [...]
This behaviour was introduced 3 years ago in https://codereview.qt-project.org/c/qt/qtbase/+/315625
CMake: Strip binaries and libraries upon installation
To avoid big artifact sizes, strip the binaries and libraries upon
installation. This achieves stripping similar toQTBUG-69767and
QTBUG-81301but arguably in a cleaner CMake way.
Attachments
Issue Links
- resulted from
-
QTBUG-117060 ERROR: AddressSanitizer: heap-use-after-free in tst_inputpanel
-
- Closed
-