Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28021

Crash on session switch

    XMLWordPrintable

Details

    • Linux/X11
    • a35d56ca2e (qt-creator/qt-creator/8.0) a35d56ca2e (qt-creator/qt-creator/master) a35d56ca2e (qt-creator/qt-creator/qds-3.6) a35d56ca2e (qt-creator/qt-creator/qds-dev) a35d56ca2e (qt-creator/qt-creator/9.0) a35d56ca2e (qt-creator/qt-creator/qds-3.7)

    Description

      In order to reproduce it load a session containing Creator, switch to another session containing Creator, switch session back to the first session.
      Main thread:

      1   std::__atomic_base<int>::operator++                                                                                                                            atomic_base.h       378  0x7fffc0156867 
      2   QAtomicOps<int>::ref<int>                                                                                                                                      qatomic_cxx11.h     281  0x7fffc01528d3 
      3   QBasicAtomicInteger<int>::ref                                                                                                                                  qbasicatomic.h      101  0x7fffc014ca54 
      4   QArrayData::ref                                                                                                                                                qarraydata.h        87   0x7fffc013e586 
      5   QArrayDataPointer<char16_t>::ref                                                                                                                               qarraydatapointer.h 325  0x7fffc0152c4f 
      6   QArrayDataPointer<char16_t>::QArrayDataPointer                                                                                                                 qarraydatapointer.h 71   0x7fffc014d188 
      7   QString::QString                                                                                                                                               qstring.h           1242 0x7fffc013ef4f 
      8   Core::IDocument::plainDisplayName                                                                                                                              idocument.cpp       766  0x7fffc03d89af 
      9   Core::DocumentModel::Entry::plainDisplayName                                                                                                                   documentmodel.cpp   578  0x7fffc02845a1 
      10  Core::Internal::DocumentModelPrivate::disambiguateDisplayNames                                                                                                 documentmodel.cpp   144  0x7fffc0281b68 
      11  Core::Internal::DocumentModelPrivate::addEntry                                                                                                                 documentmodel.cpp   121  0x7fffc02818d3 
      12  Core::Internal::DocumentModelPrivate::addSuspendedDocument                                                                                                     documentmodel.cpp   436  0x7fffc028387c 
      13  Core::EditorManager::restoreState                                                                                                                              editormanager.cpp   3646 0x7fffc02ab40c 
      14  ProjectExplorer::SessionManagerPrivate::restoreEditors                                                                                                         session.cpp         963  0x7fff83b312d0 
      15  ProjectExplorer::SessionManager::loadSession                                                                                                                   session.cpp         1120 0x7fff83b321bf 
      16  ProjectExplorer::ProjectExplorerPluginPrivate::setSession                                                                                                      projectexplorer.cpp 4207 0x7fff839fc904 
      17  QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QAction *>, void, void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(QAction *)>::call qobjectdefs_impl.h  171  0x7fff83a2ea2d 
      18  QtPrivate::FunctionPointer<void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(QAction *)>::call<QtPrivate::List<QAction *>, void>                        qobjectdefs_impl.h  208  0x7fff83a2987f 
      19  QtPrivate::QSlotObject<void (ProjectExplorer::ProjectExplorerPluginPrivate:: *)(QAction *), QtPrivate::List<QAction *>, void>::impl                            qobjectdefs_impl.h  419  0x7fff83a248a1 
      20  QtPrivate::QSlotObjectBase::call                                                                                                                               qobjectdefs_impl.h  399  0x7ffff5383d0b 
      ... <More>                                                                                                                                                                                                 
      

      Frame 10:

          const QString displayName = entry->plainDisplayName();
      

      operates on already deleted entry (I did printouts of c'tors and d'tors of all Entry instances).

      Attachments

        Issue Links

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

          Activity

            People

              davschul David Schulz
              jkobus Jarek Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes