Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92558

configure ignores "-sanitize address"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2
    • 6.2
    • Build System: CMake
    • None
    • Ubuntu 20.04 LTS
      clang 10.0.0
      cmake 3.16.3 from Ubuntu's repository
      cmake 3.19.2 from Qt's online installer
    •  8194f790533fbd2c499feb1187774caab7eceb47

    Description

      1. Configure Qt to use the address sanitizer using the switch:
        -sanitize address
        

        My entire call:

        /tmp/qt-bisect/qt5/configure -platform linux-clang -opensource -confirm-license -nomake examples -nomake tests -prefix $PWD/qtbase -release -static -no-gc-binaries -sanitize fuzzer-no-link -sanitize address -no-openssl
        
      2. When this finished, start building Qt:
        cmake --build .
        
      3. While Qt is building, check whether the compiler will build with address sanitizer, e.g.:
        ps -ef |grep address
        

        You won't find any compiler calls.

      Instead, you should see something like:

      qtrob     375077  375076  0 19:43 pts/0    00:00:00 /usr/lib/llvm-10/bin/clang++ -DHAVE_CONFIG_H -DQT_BOOTSTRAPPED -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=2 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR="6.2.0" -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -Iqtbase/src/corelib/Core_autogen/include -Iqtbase/include -Iqtbase/include/QtCore -I/tmp/qt-bisect/qt5/qtbase/src/corelib -Iqtbase/src/corelib -Iqtbase/src/corelib/global -I/tmp/qt-bisect/qt5/qtbase/src/corelib/../3rdparty/tinycbor/src -Iqtbase/include/QtCore/6.2.0 -Iqtbase/include/QtCore/6.2.0/QtCore -I/tmp/qt-bisect/qt5/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -I/tmp/qt-bisect/qt5/qtbase/src/corelib/../3rdparty/double-conversion -I/tmp/qt-bisect/qt5/qtbase/src/corelib/../3rdparty/forkfd -Iqtbase/src/corelib/.rcc -I/tmp/qt-bisect/qt5/qtbase/mkspecs/linux-clang -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Iqtbase/src/xml/Xml_autogen/include -Iqtbase/include/QtXml -I/tmp/qt-bisect/qt5/qtbase/src/xml -Iqtbase/src/xml -Iqtbase/include/QtXml/6.2.0 -Iqtbase/include/QtXml/6.2.0/QtXml -I/tmp/qt-bisect/qt5/qtbase/src/tools/bootstrap/.. -I/tmp/qt-bisect/qt5/qtbase/src/tools/bootstrap/../../3rdparty/tinycbor/src -fsanitize=fuzzer-no-link -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -ffunction-sections -fdata-sections -std=gnu++17 -MD -MT qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/io/qurlidna.cpp.o -MF qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/io/qurlidna.cpp.o.d -o qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/io/qurlidna.cpp.o -c /tmp/qt-bisect/qt5/qtbase/src/corelib/io/qurlidna.cpp
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              semlanik Alexey Edelev
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes