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

QFileDialog causes segmentation faults of programs linked to libKF5XmlGui

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.2
    • 5.5.1, 5.6.1
    • None

    Description

      When writing a program based on the class KXmlGuiWindow of KF5, I observed segmentation faults at termination of the program, if static methods of the QFileDialog class were called.

      The segfaults already occur with a minimum program consisting of an instantiation of QApplication and a call to QFileDialog::getExistingDirectory() (see attached example).

      The segfaults also occur when, instead of calling QFileDialog::getExistingDirectory(), an instance of QFileDialog is created (see line commented out in the example main.cpp).

      The segfaults do not occur if the program is not linked to libKF5XmlGui (by commenting out the line containing "KF5::XmlGui" in the CMakeLists.txt file of the attached example). Then the program terminates normally.

      The segfaults are not observed when using the older version Qt 5.4.2 on
      openSUSE 13.2.

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            stille stille
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes