[Bug 175080] New: Kontact settings dialog results in dereferencing invalid parentItem in KPageWidgetModel::parent

Stefan Usenbinz usenbinz at gmx.de
Thu Nov 13 20:05:22 GMT 2008


http://bugs.kde.org/show_bug.cgi?id=175080

           Summary: Kontact settings dialog results in dereferencing invalid
                    parentItem in KPageWidgetModel::parent
           Product: kontact
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: usenbinz at gmx.de


Version:            (using Devel)
Compiler:          gcc-Version 4.2.4 (Ubuntu 4.2.4-1ubuntu3) 
OS:                Linux
Installed from:    Compiled sources

Trying to open Kontact configuration dialog from menu results in SIGSEGV. While
there are already other crash reports for this use case the backtrace is
different.

qt-copy revision 883348
KDE revision 883827

Application: Kontact (kontact), signal SIGSEGV
0x00007ffaf00a1b50 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7ffaf5ae96f0 (LWP 31705)):
[KCrash Handler]
#5  0x00007ffaf4a8a326 in PageItem::row (this=0x1) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagewidgetmodel.cpp:217
#6  0x00007ffaf4a8a3dc in KPageWidgetModel::parent (this=0xb422c0,
index=@0xc2d620) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagewidgetmodel.cpp:359
#7  0x00007ffaf3e0c0e1 in QModelIndex::parent (this=0xc2d620) at
kernel/qabstractitemmodel.h:358
#8  0x00007ffaf3e0712f in QPersistentModelIndex::parent (this=0xb9a0b8) at
kernel/qabstractitemmodel.cpp:363
#9  0x00007ffaf2d9b3c0 in QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved
(this=0xb9a020, parent=@0x7ffffdb22960, start=4, end=4) at
itemviews/qitemselectionmodel.cpp:559
#10 0x00007ffaf2d9ba47 in QItemSelectionModel::qt_metacall (this=0x9950e0,
_c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7ffffdb22890) at
.moc/debug-shared/moc_qitemselectionmodel.cpp:129
#11 0x00007ffaf4a8652a in KDEPrivate::SelectionModel::qt_metacall
(this=0x9950e0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7ffffdb22890)
    at /home/kde-devel/kde/build/KDE/kdelibs/kdeui/kpageview_p.moc:277
#12 0x00007ffaf3e27d85 in QMetaObject::activate (sender=0xb422c0,
from_signal_index=10, to_signal_index=10, argv=0x7ffffdb22890) at
kernel/qobject.cpp:3028
#13 0x00007ffaf3e281e9 in QMetaObject::activate (sender=0xb422c0,
m=0x7ffaf4127f20, local_signal_index=6, argv=0x7ffffdb22890) at
kernel/qobject.cpp:3101
#14 0x00007ffaf3e65f5b in QAbstractItemModel::rowsAboutToBeRemoved
(this=0xb422c0, _t1=@0x7ffffdb22960, _t2=4, _t3=4) at
.moc/debug-shared/moc_qabstractitemmodel.cpp:164
#15 0x00007ffaf3e094c3 in QAbstractItemModel::beginRemoveRows (this=0xb422c0,
parent=@0x7ffffdb22960, first=4, last=4) at kernel/qabstractitemmodel.cpp:2124
#16 0x00007ffaf4a8ad32 in KPageWidgetModel::removePage (this=0xb422c0,
item=0xbecee0) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagewidgetmodel.cpp:478
#17 0x00007ffaf4a89908 in KPageWidget::removePage (this=0xa76ce0,
item=0xbecee0) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagewidget.cpp:113
#18 0x00007ffaf4a833f7 in KPageDialog::removePage (this=0x994a40,
item=0xbecee0) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagedialog.cpp:105
#19 0x00007ffaea84153e in KSettings::DialogPrivate::createDialogFromServices
(this=0x9350b0) at
/home/kde-devel/kde/src/KDE/kdelibs/kutils/ksettings/dialog.cpp:388
#20 0x00007ffaea842438 in KSettings::Dialog::showEvent (this=0x994a40) at
/home/kde-devel/kde/src/KDE/kdelibs/kutils/ksettings/dialog.cpp:120
#21 0x00007ffaf28d5b11 in QWidget::event (this=0x994a40, event=0x7ffffdb23590)
at kernel/qwidget.cpp:7360
#22 0x00007ffaf287c017 in QApplicationPrivate::notify_helper (this=0x630d80,
receiver=0x994a40, e=0x7ffffdb23590) at kernel/qapplication.cpp:3803
#23 0x00007ffaf287dc7b in QApplication::notify (this=0x7ffffdb25530,
receiver=0x994a40, e=0x7ffffdb23590) at kernel/qapplication.cpp:3768
#24 0x00007ffaf4a5555a in KApplication::notify (this=0x7ffffdb25530,
receiver=0x994a40, event=0x7ffffdb23590) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#25 0x00007ffaf3e1327e in QCoreApplication::notifyInternal
(this=0x7ffffdb25530, receiver=0x994a40, event=0x7ffffdb23590) at
kernel/qcoreapplication.cpp:583
#26 0x00007ffaf3e16cbf in QCoreApplication::sendEvent (receiver=0x994a40,
event=0x7ffffdb23590) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#27 0x00007ffaf28d98ac in QWidgetPrivate::show_helper (this=0x9352b0) at
kernel/qwidget.cpp:6372
#28 0x00007ffaf28d9ef0 in QWidget::setVisible (this=0x994a40, visible=true) at
kernel/qwidget.cpp:6584
#29 0x00007ffaf2cfadd0 in QDialog::setVisible (this=0x994a40, visible=true) at
dialogs/qdialog.cpp:651
#30 0x00007ffaf109bc4f in QWidget::show (this=0x994a40) at
/home/kde-devel/qt-copy/include/QtGui/qwidget.h:464
#31 0x00007ffaf1095564 in Kontact::MainWindow::slotPreferences (this=0x751a10)
at /home/kde-devel/kde/src/KDE/kdepim/kontact/src/mainwindow.cpp:993
#32 0x00007ffaf109adfd in Kontact::MainWindow::qt_metacall (this=0x751a10,
_c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffffdb239b0)
    at /home/kde-devel/kde/build/KDE/kdepim/kontact/src/mainwindow.moc:113
#33 0x00007ffaf3e27d85 in QMetaObject::activate (sender=0x9d78c0,
from_signal_index=5, to_signal_index=6, argv=0x7ffffdb239b0) at
kernel/qobject.cpp:3028
#34 0x00007ffaf3e27f97 in QMetaObject::activate (sender=0x9d78c0,
m=0x7ffaf32a0940, from_local_signal_index=1, to_local_signal_index=2,
argv=0x7ffffdb239b0) at kernel/qobject.cpp:3121
#35 0x00007ffaf28748ff in QAction::triggered (this=0x9d78c0, _t1=false) at
.moc/debug-shared/moc_qaction.cpp:216
#36 0x00007ffaf287629a in QAction::activate (this=0x9d78c0,
event=QAction::Trigger) at kernel/qaction.cpp:1125
#37 0x00007ffaf2c6e2e5 in QMenuPrivate::activateAction (this=0xa162b0,
action=0x9d78c0, action_e=QAction::Trigger, self=true) at
widgets/qmenu.cpp:1002
#38 0x00007ffaf2c70b8a in QMenu::mouseReleaseEvent (this=0xa2ab70,
e=0x7ffffdb24720) at widgets/qmenu.cpp:2169
#39 0x00007ffaf4b281ed in KMenu::mouseReleaseEvent (this=0xa2ab70,
e=0x7ffffdb24720) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/widgets/kmenu.cpp:452
#40 0x00007ffaf28d5191 in QWidget::event (this=0xa2ab70, event=0x7ffffdb24720)
at kernel/qwidget.cpp:7163
#41 0x00007ffaf2c6bf85 in QMenu::event (this=0xa2ab70, e=0x7ffffdb24720) at
widgets/qmenu.cpp:2265
#42 0x00007ffaf287c017 in QApplicationPrivate::notify_helper (this=0x630d80,
receiver=0xa2ab70, e=0x7ffffdb24720) at kernel/qapplication.cpp:3803
#43 0x00007ffaf287cbb4 in QApplication::notify (this=0x7ffffdb25530,
receiver=0xa2ab70, e=0x7ffffdb24720) at kernel/qapplication.cpp:3528
#44 0x00007ffaf4a5555a in KApplication::notify (this=0x7ffffdb25530,
receiver=0xa2ab70, event=0x7ffffdb24720) at
/home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#45 0x00007ffaf3e1327e in QCoreApplication::notifyInternal
(this=0x7ffffdb25530, receiver=0xa2ab70, event=0x7ffffdb24720) at
kernel/qcoreapplication.cpp:583
#46 0x00007ffaf2887fb1 in QCoreApplication::sendSpontaneousEvent
(receiver=0xa2ab70, event=0x7ffffdb24720) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#47 0x00007ffaf28807b6 in QApplicationPrivate::sendMouseEvent
(receiver=0xa2ab70, event=0x7ffffdb24720, alienWidget=0x0,
nativeWidget=0xa2ab70, buttonDown=0x7ffaf32dc4a8,
    lastMouseReceiver=@0x7ffaf32dc4b0) at kernel/qapplication.cpp:2793
#48 0x00007ffaf28f51d1 in QETWidget::translateMouseEvent (this=0xa2ab70,
event=0x7ffffdb250f0) at kernel/qapplication_x11.cpp:3976
#49 0x00007ffaf28f2cee in QApplication::x11ProcessEvent (this=0x7ffffdb25530,
event=0x7ffffdb250f0) at kernel/qapplication_x11.cpp:3038
#50 0x00007ffaf291f171 in x11EventSourceDispatch (s=0x6346e0, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#51 0x00007ffaec750364 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#52 0x00007ffaec753675 in ?? () from /usr/lib/libglib-2.0.so.0
#53 0x00007ffaec753b5b in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#54 0x00007ffaf3e41500 in QEventDispatcherGlib::processEvents (this=0x62d5c0,
flags=@0x7ffffdb25370) at kernel/qeventdispatcher_glib.cpp:319
#55 0x00007ffaf291e983 in QGuiEventDispatcherGlib::processEvents
(this=0x62d5c0, flags=@0x7ffffdb253d0) at
kernel/qguieventdispatcher_glib.cpp:198
#56 0x00007ffaf3e103c4 in QEventLoop::processEvents (this=0x7ffffdb25490,
flags=@0x7ffffdb25450) at kernel/qeventloop.cpp:143
#57 0x00007ffaf3e105c0 in QEventLoop::exec (this=0x7ffffdb25490,
flags=@0x7ffffdb254b0) at kernel/qeventloop.cpp:190
#58 0x00007ffaf3e13ac8 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:845
#59 0x00007ffaf287bd78 in QApplication::exec () at kernel/qapplication.cpp:3331
#60 0x00000000004043a0 in main (argc=1, argv=0x7ffffdb25a38) at
/home/kde-devel/kde/src/KDE/kdepim/kontact/src/main.cpp:218


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list