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

Segmentation fault at QBasicAtomicInt::ref after creating & destroying QApplication + QTreeView twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.1
    • 4.6.0
    • None
    • Win32 (VS2005, static linking), Win32 (MinGW dynamic linking)
    • 828b1299e1ecb2da23799a2e49370e00dcf9c126

    Description

      Getting segmentation fault after creating & destroying QApplication + QTreeView twice.
      Reproducing code:

      #include <QtGui/QtGui>
      
      void testQt(int argc, char** argv)
      {
          QApplication* app = new QApplication(argc, argv);
          QTreeView* treeView = new QTreeView();
          delete treeView;
          delete app;
      }
      
      int main(int argc, char** argv)
      {
          testQt(argc, argv);
          testQt(argc, argv);
          return 0;
      }
      

      Attachments

        1. main.cpp
          0.3 kB
          Denis Itskovich
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dzyubenk Denis Dzyubenko (Inactive)
            shwonder Denis Itskovich
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes