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

QRegularExpression::optimize() takes drastically longer in static release build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.14.2, 6.1.2, 6.3.0
    • Core: Other
    • Ubuntu 20.04 LTS
      clang 10.0.0

    Description

      1. Build the attached project with Qt which was configured with "-developer-build"
      2. Run the project passing in the attached input file:
        ./report input.txt
        

        It will return immediately.

      3. Build the attached project with Qt which was configured with "-static -release" instead.
        No sanitizers needed.
      4. Run the project passing in the attached input file:
        ./report input.txt
        

        It will take much longer until the program exits. For me it takes about six seconds. This is nearly thousand times longer.

      Google's oss-fuzz found this as issue 21711

      Attachments

        1. input.txt
          0.1 kB
          Robert Löhning
        2. main.cpp
          0.2 kB
          Robert Löhning
        3. report.pro
          0.0 kB
          Robert Löhning
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            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