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

    • 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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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