Segmentation fault in Qpersistantmodelindex::parent()



  • I am using Qt5.2.1 in ubuntu 12.10. I am developing a apllication which uses qtreeview. The qtreeview is updated dynamically. sometimes the application crashes at Qpersistantmodelindex::parent() with glibc error: double free or corruption detected. As i cannot see the "Qpersistantmodelindex" code i couldnot debug the issue. Can someone please help me resolve this.
    Backtrace:
    @

    double free or corruption (!prev): 0x0a4e66b0 ***
    ======= Backtrace: =========
    /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb6383ee2]
    /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb651fadf]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Gui.so.5(_ZN6QBrushD1Ev+0x78)[0xb6d2dcb8]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Gui.so.5(_ZN8QPaletteD1Ev+0x53)[0xb6ba2ae3]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN12QStyleOptionD1Ev+0x28)[0xb7244748]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZNK19QStyledItemDelegate8sizeHintERK20QStyleOptionViewItemRK11QModelIndex+0x353)[0xb75199b3]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZNK9QTreeView16indexRowSizeHintERK11QModelIndex+0x3f7)[0xb74c2c77]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZNK16QTreeViewPrivate10itemHeightEi+0x97)[0xb74c2e37]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN9QTreeView11dataChangedERK11QModelIndexS2_RK7QVectorIiE+0x1cb)[0xb74c64bb]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(+0x38a169)[0xb7481169]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN14QMetaCallEvent13placeMetaCallEP7QObject+0xa3)[0xb68a4943]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x252)[0xb68a7d92]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x6c)[0xb72158fc]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN6QFrame5eventEP6QEvent+0x35)[0xb734a195]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN19QAbstractScrollArea5eventEP6QEvent+0x474)[0xb73e3984]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN17QAbstractItemView5eventEP6QEvent+0x8c)[0xb74830dc]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xc4)[0xb71d5eb4]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa2a)[0xb71d9d7a]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8e)[0xb6879c2e]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x27c)[0xb687c8ec]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN16QCoreApplication16sendPostedEventsEP7QObjecti+0x2c)[0xb687ce2c]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(+0x2cfd14)[0xb68d0d14]
    /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x143)[0xb60849e3]
    /lib/i386-linux-gnu/libglib-2.0.so.0(+0x46d80)[0xb6084d80]
    /lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x41)[0xb6084e61]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x68)[0xb68d1128]
    /opt/Qt5.2.1/5.2.1/gcc/plugins/platforms/libqxcb.so(+0xa6836)[0xb4263836]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x26)[0xb68782e6]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xcc)[0xb687872c]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x92)[0xb687ced2]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Gui.so.5(_ZN15QGuiApplication4execEv+0x24)[0xb6b7ab04]
    /opt/Qt5.2.1/5.2.1/gcc/lib/libQt5Widgets.so.5(_ZN12QApplication4execEv+0x14)[0xb71d0914]
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.