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

[REG: 6.3 -> 6.4] Memory leak in moc, breaks build with ASAN

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.4.0
    • 6.4.0
    • Build tools: moc
    • None
    • Ubuntu 20.04 LTS
      cmake 3.21.1 from Qt's online installer
      clang 10.0.0
      g++ 9.3.0
    • 06e45cbd6a2e09bc32cb1c9aa3779d6bd5282c45

      1. Clone qt5.git:
        git clone git://code.qt.io/qt/qt5.git
        
      2. Initialize submodule qtbase:
        cd qt5/
        perl init-repository --module-subset=qtbase
        
      3. In an empty directory next to the clone, configure Qt with ASAN:
        /tmp/qt-bisect/qt5/configure -opensource -confirm-license -prefix $PWD/qtbase -sanitize address
        
      4. Try building:
        cmake --build .
        

        After about a minute or 125 steps, building fails due to a memory leak in moc. I'll attach the command line output.

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

            fabiankosmale Fabian Kosmale
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes