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

"ASan runtime does not come first in initial library list" when running empty console application built with qmake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      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

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes