[Konsole-devel] [konsole] [Bug 331724] New: Crash on close [Konsole::StackedViewContainer::removeViewWidget, QStackedWidget::indexOf]

Kevin Funk kfunk at kde.org
Tue Mar 4 09:43:42 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=331724

            Bug ID: 331724
           Summary: Crash on close
                    [Konsole::StackedViewContainer::removeViewWidget,
                    QStackedWidget::indexOf]
    Classification: Unclassified
           Product: konsole
           Version: unspecified
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: kfunk at kde.org

Note: Using konsole from 'frameworks' branch

Backtrace (reduced):
#0  0x000000000261f4f0 in ?? ()
#1  0x00007ffff794fd32 in QStackedWidget::indexOf (this=0x2607310,
widget=0x2620410) at
/home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qstackedwidget.cpp:261
#2  0x00007fffda982f7f in Konsole::StackedViewContainer::removeViewWidget
(this=0x26191b0, view=0x2620410) at
/home/krf/devel/src/kf5/konsole/src/ViewContainer.cpp:757
#3  0x00007fffda9802a0 in Konsole::ViewContainer::viewDestroyed
(this=0x26191b0, object=0x2620410) at
/home/krf/devel/src/kf5/konsole/src/ViewContainer.cpp:167
#4  0x00007fffda9a0947 in Konsole::ViewContainer::qt_static_metacall
(_o=0x26191b0, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fffffffbf50) at
/home/krf/devel/build/kf5/konsole/src/moc_ViewContainer.cpp:125
#5  0x00007ffff6cc417e in QMetaObject::activate (sender=0x2620410,
signalOffset=0, local_signal_index=0, argv=0x7fffffffbf50) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3569
#6  0x00007ffff6cc395a in QMetaObject::activate (sender=0x2620410, m=0x40b300
<QObject::staticMetaObject>, local_signal_index=0, argv=0x7fffffffbf50) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3444
#7  0x00007ffff6cc6d99 in QObject::destroyed (this=0x2620410, _t1=0x2620410) at
.moc/moc_qobject.cpp:202
#8  0x00007ffff7780b92 in QWidget::~QWidget (this=0x2620410,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1457
#9  0x00007fffda9719b7 in Konsole::TerminalDisplay::~TerminalDisplay
(this=0x2620410, __in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/konsole/src/TerminalDisplay.cpp:416
#10 0x00007fffda9719f0 in Konsole::TerminalDisplay::~TerminalDisplay
(this=0x2620410, __in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/konsole/src/TerminalDisplay.cpp:426
#11 0x00007ffff6cbece6 in QObjectPrivate::deleteChildren (this=0x26198f0) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1841
#12 0x00007ffff7780c4d in QWidget::~QWidget (this=0x2607310,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1486
#13 0x00007ffff78e10d4 in QFrame::~QFrame (this=0x2607310, __in_chrg=<optimized
out>) at /home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qframe.cpp:217
#14 0x00007ffff794fad2 in QStackedWidget::~QStackedWidget (this=0x2607310,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qstackedwidget.cpp:149
#15 0x00007ffff794fb08 in QStackedWidget::~QStackedWidget (this=0x2607310,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qstackedwidget.cpp:151
#16 0x00007ffff6cbece6 in QObjectPrivate::deleteChildren (this=0x2619720) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1841
#17 0x00007ffff7780c4d in QWidget::~QWidget (this=0x260ac30,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1486
#18 0x00007ffff7780d5a in QWidget::~QWidget (this=0x260ac30,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1506
#19 0x00007ffff6cbece6 in QObjectPrivate::deleteChildren (this=0x25f2040) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1841
#20 0x00007ffff7780c4d in QWidget::~QWidget (this=0x25f1ff0,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1486
#21 0x00007ffff78e10d4 in QFrame::~QFrame (this=0x25f1ff0, __in_chrg=<optimized
out>) at /home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qframe.cpp:217
#22 0x00007ffff794c990 in QSplitter::~QSplitter (this=0x25f1ff0,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/widgets/qsplitter.cpp:968
#23 0x00007fffda9a5a49 in Konsole::ViewSplitter::~ViewSplitter (this=0x25f1ff0,
__in_chrg=<optimized out>) at
/home/krf/devel/build/kf5/konsole/src/../../../../src/kf5/konsole/src/ViewSplitter.h:47
#24 0x00007fffda9a5a82 in Konsole::ViewSplitter::~ViewSplitter (this=0x25f1ff0,
__in_chrg=<optimized out>) at
/home/krf/devel/build/kf5/konsole/src/../../../../src/kf5/konsole/src/ViewSplitter.h:47
#25 0x00007ffff55e8663 in KParts::Part::~Part (this=0x25f0560,
__vtt_parm=0x7fffdaa2c6f0 <VTT for Konsole::Part+16>, __in_chrg=<optimized
out>) at /home/krf/devel/src/kf5/frameworks/kparts/src/part.cpp:65
#26 0x00007ffff55ea7d4 in KParts::ReadOnlyPart::~ReadOnlyPart (this=0x25f0560,
__vtt_parm=0x7fffdaa2c6e8 <VTT for Konsole::Part+8>, __in_chrg=<optimized out>)
at /home/krf/devel/src/kf5/frameworks/kparts/src/readonlypart.cpp:51
#27 0x00007fffdaa24194 in Konsole::Part::~Part (this=0x25f0560,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/home/krf/devel/src/kf5/konsole/src/Part.cpp:95
#28 0x00007fffdaa241fc in Konsole::Part::~Part (this=0x25f0560,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/home/krf/devel/src/kf5/konsole/src/Part.cpp:98
#29 0x00007ffff6cbece6 in QObjectPrivate::deleteChildren (this=0x25f0c40) at
/home/krf/devel/src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1841
#30 0x00007ffff7780c4d in QWidget::~QWidget (this=0x25f0c00,
__in_chrg=<optimized out>) at
/home/krf/devel/src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:1486
#31 0x00007fffdaa34b7d in KDevKonsoleView::~KDevKonsoleView (this=0x25f0c00,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevplatform/plugins/konsole/kdevkonsoleview.cpp:115
#32 0x00007fffdaa34bb2 in KDevKonsoleView::~KDevKonsoleView (this=0x25f0c00,
__in_chrg=<optimized out>) at
/home/krf/devel/src/kf5/extragear/kdevelop/kdevplatform/plugins/konsole/kdevkonsoleview.cpp:118

Valgrind report:
==428== Invalid read of size 8
==428==    at 0x51E7D19: QStackedWidget::indexOf(QWidget*) const
(qstackedwidget.cpp:261)
==428==    by 0x222D9F7E:
Konsole::StackedViewContainer::removeViewWidget(QWidget*)
(ViewContainer.cpp:757)
==428==    by 0x222D729F: Konsole::ViewContainer::viewDestroyed(QObject*)
(ViewContainer.cpp:167)
==428==    by 0x222F7946: Konsole::ViewContainer::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) (moc_ViewContainer.cpp:125)
==428==    by 0x600017D: QMetaObject::activate(QObject*, int, int, void**)
(qobject.cpp:3569)
==428==    by 0x5FFF959: QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (qobject.cpp:3444)
==428==    by 0x6002D98: QObject::destroyed(QObject*) (moc_qobject.cpp:202)
==428==    by 0x5018B91: QWidget::~QWidget() (qwidget.cpp:1457)
==428==    by 0x222C89B6: Konsole::TerminalDisplay::~TerminalDisplay()
(TerminalDisplay.cpp:416)
==428==    by 0x222C89EF: Konsole::TerminalDisplay::~TerminalDisplay()
(TerminalDisplay.cpp:426)
==428==    by 0x5FFACE5: QObjectPrivate::deleteChildren() (qobject.cpp:1841)
==428==    by 0x5018C4C: QWidget::~QWidget() (qwidget.cpp:1486)
==428==  Address 0x16c9d300 is 0 bytes inside a block of size 32 free'd
==428==    at 0x4C2BADC: operator delete(void*) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==428==    by 0x5010267: QStackedLayout::~QStackedLayout()
(qstackedlayout.cpp:196)
==428==    by 0x5018813: QWidget::~QWidget() (qwidget.cpp:1389)
==428==    by 0x51790D3: QFrame::~QFrame() (qframe.cpp:217)
==428==    by 0x51E7AD1: QStackedWidget::~QStackedWidget()
(qstackedwidget.cpp:149)
==428==    by 0x51E7B07: QStackedWidget::~QStackedWidget()
(qstackedwidget.cpp:151)
==428==    by 0x5FFACE5: QObjectPrivate::deleteChildren() (qobject.cpp:1841)
==428==    by 0x5018C4C: QWidget::~QWidget() (qwidget.cpp:1486)
==428==    by 0x5018D59: QWidget::~QWidget() (qwidget.cpp:1506)
==428==    by 0x5FFACE5: QObjectPrivate::deleteChildren() (qobject.cpp:1841)
==428==    by 0x5018C4C: QWidget::~QWidget() (qwidget.cpp:1486)
==428==    by 0x51790D3: QFrame::~QFrame() (qframe.cpp:217)

Reproducible: Always

Steps to Reproduce:
1. Run shell-uicontrollertest in kdevplatform from frameworks branch
2.
3.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list