Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3
-
None
Description
I'm using a per-repo CMake build of Qt configured with the following options to build a qmake project (as some examples attached to bug reports use qmake):
-DCMAKE_BUILD_TYPE=Debug -DFEATURE_developer_build=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DECM_ENABLE_SANITIZERS=address
Compile output:
09:41:53: Running steps for project untitled1... 09:41:53: Starting: "/home/mitch/dev/qt-dev-debug/qtbase/bin/qmake" /home/mitch/dev/temp/untitled1/untitled1.pro -spec linux-g++ CONFIG+=qml_debug Info: creating stash file /home/mitch/dev/temp/untitled1-qt_dev_debug-Debug/.qmake.stash 09:41:53: The process "/home/mitch/dev/qt-dev-debug/qtbase/bin/qmake" exited normally. 09:41:53: Starting: "/usr/bin/make" -f /home/mitch/dev/temp/untitled1-qt_dev_debug-Debug/Makefile qmake_all make: Nothing to be done for 'qmake_all'. 09:41:53: The process "/usr/bin/make" exited normally. 09:41:53: Starting: "/usr/bin/make" -j32 g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_CORE_LIB -I../untitled1 -I. -I../../qt-dev-debug/qtbase/include -I../../qt-dev-debug/qtbase/include/QtCore -I. -I../../qt-dev-debug/qtbase/mkspecs/linux-g++ -o main.o ../untitled1/main.cpp g++ -Wl,-rpath,/home/mitch/dev/qt-dev-debug/qtbase/lib -o untitled1 main.o /home/mitch/dev/qt-dev-debug/qtbase/lib/libQt6Core.so -lasan -lpthread /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libasan.so: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libasan.so: warning: the use of `tempnam' is dangerous, better use `mkstemp' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libasan.so: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' 09:41:55: The process "/usr/bin/make" exited normally. 09:41:55: Elapsed time: 00:01.
Application output:
09:42:20: Starting /home/mitch/dev/temp/untitled1-qt_dev_debug-Debug/untitled1 ... ==24047==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. 09:42:20: /home/mitch/dev/temp/untitled1-qt_dev_debug-Debug/untitled1 exited with code 1
Attachments
Issue Links
- relates to
-
QTBUG-98279 -lasan recorded in Qt6Core.prl when building Qt with address sanitizer
-
- Reported
-
-
QTBUG-97933 Building Qt with gcc and ASan fails with ASan linking error
-
- Closed
-