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

Program crashes opening QFileDialog when asan flags are used (heap-use-after-free)

    XMLWordPrintable

    Details

    • Commits:
      524f39db899d68e0ef90184a268eb75ad4ac216e

      Description

      When using these flags:

      GLOBAL_FLAGS += -fsanitize=address,bounds -fsanitize-undefined-trap-on-error -O0
      QMAKE_CFLAGS += $$GLOBAL_FLAGS
      QMAKE_CXXFLAGS += $$GLOBAL_FLAGS
      QMAKE_LFLAGS += $$GLOBAL_FLAGS

      The address sanitizer is triggered when opening QFileDialogs and crashes the executing program.

      Attached is a simple reproducible gui project to simulate this. In addition, attached is the output produced by asan.

        Attachments

        1. buggy_asan.txt
          8 kB
        2. buggy.zip
          5 kB
        For Gerrit Dashboard: QTBUG-59611
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mattwaltz mattwaltz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes