Bug 261700 - Kontact crashes when modifying contact in address book
Summary: Kontact crashes when modifying contact in address book
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: contacts (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
: 266308 266312 267980 267982 269318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-31 11:27 UTC by Dominique Lebrun
Modified: 2015-07-05 12:43 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6


Attachments
New crash information added by DrKonqi (9.82 KB, text/plain)
2011-01-16 19:35 UTC, Jörg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Lebrun 2010-12-31 11:27:07 UTC
Application: kontact (4.4.9)
KDE Platform Version: 4.5.4 (KDE 4.5.4)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
I was modifying the e-mail address of an old contact in my address book (maybe it's irrelevant, but this contact existed in my address book before the Akonadi migration, and had not been changed since). When I clicked OK, Kontact crashed (see backtrace). However, when I restarted Kontact, I saw that the modification had been made.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0xb78ad730 (LWP 1925))]

Thread 2 (Thread 0xb306ab70 (LWP 2243)):
#0  0x00a4d416 in __kernel_vsyscall ()
#1  0x00760df6 in __poll (fds=0x7f7ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x08b56a1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x08b4943c in ?? () from /lib/libglib-2.0.so.0
#4  0x08b49848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x078fb59f in QEventDispatcherGlib::processEvents (this=0x9faacd0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x078cb609 in QEventLoop::processEvents (this=0xb306a270, flags=) at kernel/qeventloop.cpp:149
#7  0x078cba8a in QEventLoop::exec (this=0xb306a270, flags=...) at kernel/qeventloop.cpp:201
#8  0x077c7b7e in QThread::exec (this=0x8f80918) at thread/qthread.cpp:490
#9  0x078aa35b in QInotifyFileSystemWatcherEngine::run (this=0x8f80918) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x077cadf9 in QThreadPrivate::start (arg=0x8f80918) at thread/qthread_unix.cpp:266
#11 0x01c92cc9 in start_thread (arg=0xb306ab70) at pthread_create.c:304
#12 0x0076f69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb78ad730 (LWP 1925)):
[KCrash Handler]
#7  QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x9aa7158, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1186
#8  0x015a0554 in QSortFilterProxyModel::qt_metacall (this=0xa390898, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfd47404) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:128
#9  0x0037ca5a in AkonadiFuture::ContactsFilterModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdepim.so.4
#10 0x078d28ca in QMetaObject::metacall (object=0xa390898, cl=173684528, idx=30, argv=0xbfd47404) at kernel/qmetaobject.cpp:237
#11 0x078e56ad in QMetaObject::activate (sender=0xa39f080, m=0x79ff198, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#12 0x07936559 in QAbstractItemModel::dataChanged (this=0xa39f080, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0x0159e6b7 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x9b99b78, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1191
#14 0x015a0554 in QSortFilterProxyModel::qt_metacall (this=0xa39f080, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfd47664) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:128
#15 0x0047cc32 in Akonadi::EntityMimeTypeFilterModel::qt_metacall (this=0xa39f080, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0xbfd47664) at ./entitymimetypefiltermodel.moc:64
#16 0x078d28ca in QMetaObject::metacall (object=0xa39f080, cl=173684528, idx=30, argv=0xbfd47664) at kernel/qmetaobject.cpp:237
#17 0x078e56ad in QMetaObject::activate (sender=0x9ca01e8, m=0x79ff198, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#18 0x07936559 in QAbstractItemModel::dataChanged (this=0x9ca01e8, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#19 0x00c091bb in KSelectionProxyModelPrivate::emitContinuousRanges (this=0x9c5c340, sourceFirst=..., sourceLast=..., proxyFirst=..., proxyLast=...) at ../../kdeui/itemviews/kselectionproxymodel.cpp:610
#20 0x00c0be03 in KSelectionProxyModelPrivate::sourceDataChanged (this=0x0, topLeft=..., bottomRight=...) at ../../kdeui/itemviews/kselectionproxymodel.cpp:632
#21 0x00c15f97 in KSelectionProxyModel::qt_metacall (this=0x9ca01e8, _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0xbfd47924) at ./moc_kselectionproxymodel.cpp:133
#22 0x078d28ca in QMetaObject::metacall (object=0x9ca01e8, cl=173684528, idx=39, argv=0xbfd47924) at kernel/qmetaobject.cpp:237
#23 0x078e56ad in QMetaObject::activate (sender=0xa51b280, m=0x79ff198, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#24 0x07936559 in QAbstractItemModel::dataChanged (this=0xa51b280, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#25 0x00487270 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0xabf3d68, top=..., bottom=...) at ../../akonadi/entitytreemodel_p.cpp:1279
#26 0x0048d772 in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0xabf3d68, item=...) at ../../akonadi/entitytreemodel_p.cpp:834
#27 0x0047f79d in Akonadi::EntityTreeModel::qt_metacall (this=0xa51b280, _c=QMetaObject::InvokeMetaMethod, _id=44, _a=0xbfd47be4) at ./entitytreemodel.moc:141
#28 0x0037e182 in AkonadiFuture::ContactsTreeModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdepim.so.4
#29 0x078d28ca in QMetaObject::metacall (object=0xa51b280, cl=173684528, idx=44, argv=0xbfd47be4) at kernel/qmetaobject.cpp:237
#30 0x078e56ad in QMetaObject::activate (sender=0x9d3f858, m=0x59e088, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#31 0x004d3cf9 in Akonadi::Monitor::itemChanged (this=0x9d3f858, _t1=..., _t2=...) at ./monitor.moc:160
#32 0x004d68e6 in Akonadi::MonitorPrivate::emitItemNotification (this=0xa50fe78, msg=..., item=..., collection=..., collectionDest=...) at ../../akonadi/monitor_p.cpp:392
#33 0x004d7b37 in Akonadi::MonitorPrivate::emitNotification (this=0xa50fe78, msg=...) at ../../akonadi/monitor_p.cpp:239
#34 0x004d88d7 in Akonadi::MonitorPrivate::dataAvailable (this=0xa50fe78) at ../../akonadi/monitor_p.cpp:251
#35 0x004d3d63 in Akonadi::Monitor::qt_metacall (this=0x9d3f858, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbfd47e9c) at ./monitor.moc:148
#36 0x0043b75a in Akonadi::ChangeRecorder::qt_metacall (this=0x9d3f858, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbfd47e9c) at ./changerecorder.moc:72
#37 0x078d28ca in QMetaObject::metacall (object=0x9d3f858, cl=173684528, idx=25, argv=0xbfd47e9c) at kernel/qmetaobject.cpp:237
#38 0x078e56ad in QMetaObject::activate (sender=0xa50febc, m=0x59c8a8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#39 0x004798f7 in Akonadi::EntityCacheBase::dataAvailable (this=0xa50febc) at ./entitycache_p.moc:88
#40 0x0043be58 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult(KJob*) () from /usr/lib/libakonadi-kde.so.4
#41 0x00479984 in Akonadi::EntityCacheBase::qt_metacall (this=0xa50febc, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfd48078) at ./entitycache_p.moc:77
#42 0x078d28ca in QMetaObject::metacall (object=0xa50febc, cl=173684528, idx=5, argv=0xbfd48078) at kernel/qmetaobject.cpp:237
#43 0x078e56ad in QMetaObject::activate (sender=0x9d10718, m=0x5a67b48, local_signal_index=3, argv=0x0) at kernel/qobject.cpp:3280
#44 0x058f4af3 in KJob::result (this=0x9d10718, _t1=0x9d10718) at ./kjob.moc:194
#45 0x058f4e58 in KJob::emitResult (this=0x9d10718) at ../../kdecore/jobs/kjob.cpp:312
#46 0x004c87a9 in delayedEmitResult (this=0x9d10718, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x9de7360) at ../../akonadi/job.cpp:143
#47 Akonadi::Job::qt_metacall (this=0x9d10718, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x9de7360) at ./job.moc:91
#48 0x004b58ea in Akonadi::ItemFetchJob::qt_metacall (this=0x9d10718, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x9de7360) at ./itemfetchjob.moc:73
#49 0x078d28ca in QMetaObject::metacall (object=0x9d10718, cl=173684528, idx=34, argv=0x9de7360) at kernel/qmetaobject.cpp:237
#50 0x078dddf6 in QMetaCallEvent::placeMetaCall (this=0xa5a2530, object=0x9d10718) at kernel/qobject.cpp:534
#51 0x078df6a2 in QObject::event (this=0x9d10718, e=0xa5a3730) at kernel/qobject.cpp:1219
#52 0x00f33fdc in QApplicationPrivate::notify_helper (this=0x8e88690, receiver=0x9d10718, e=0xa5a2530) at kernel/qapplication.cpp:4396
#53 0x00f3a04e in QApplication::notify (this=0xbfd489c4, receiver=0x9d10718, e=0xa5a2530) at kernel/qapplication.cpp:3798
#54 0x00c2805a in KApplication::notify (this=0xbfd489c4, receiver=0x9d10718, event=0xa5a2530) at ../../kdeui/kernel/kapplication.cpp:310
#55 0x078ccb3b in QCoreApplication::notifyInternal (this=0xbfd489c4, receiver=0x9d10718, event=0xa5a2530) at kernel/qcoreapplication.cpp:732
#56 0x078cfd8b in sendEvent (receiver=0x0, event_type=0, data=0x8e65eb8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#57 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8e65eb8) at kernel/qcoreapplication.cpp:1373
#58 0x078cff4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#59 0x078fba74 in sendPostedEvents (s=0x8e8af10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#60 postEventSourceDispatch (s=0x8e8af10) at kernel/qeventdispatcher_glib.cpp:277
#61 0x08b45855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#62 0x08b49668 in ?? () from /lib/libglib-2.0.so.0
#63 0x08b49848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#64 0x078fb565 in QEventDispatcherGlib::processEvents (this=0x8e65b78, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#65 0x00ff5be5 in QGuiEventDispatcherGlib::processEvents (this=0x8e65b78, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#66 0x078cb609 in QEventLoop::processEvents (this=0xbfd48924, flags=) at kernel/qeventloop.cpp:149
#67 0x078cba8a in QEventLoop::exec (this=0xbfd48924, flags=...) at kernel/qeventloop.cpp:201
#68 0x078d000f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#69 0x00f32e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#70 0x0804b132 in _start ()

Reported using DrKonqi
Comment 1 Jörg 2011-01-16 19:35:20 UTC
Created attachment 56100 [details]
New crash information added by DrKonqi

kaddressbook (4.4.9) on KDE Platform 4.5.5 (KDE 4.5.5) "release 1" using Qt 4.6.3

I can confirm this for kaddressbook 4.4.9 / KDE 4.5.5 in openSUSE 11.3. If I change a contact, kaddressbook crashes, but the modification is made.

Moreover, if I try to add a new contact, the same happens. I can enter data, then kaddressbook crashes, but the new contact is there afterwards.

-- Backtrace (Reduced):
#7  0xb6d96a42 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x81acc50, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1149
#8  0xb6d97dd1 in QSortFilterProxyModel::qt_metacall (this=0x8223820, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfb7e8e4) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:128
#9  0xb56e0342 in AkonadiFuture::ContactsFilterModel::qt_metacall (this=0x8223820, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0xbfb7e8e4)
    at /usr/src/debug/kdepim-4.4.9/build/libkdepim/contactsfilterproxymodel.moc:68
[...]
[...]
#12 0xb62ee71d in QAbstractItemModel::dataChanged (this=0x8223b10, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:148
#13 0xb6d96318 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x8223b90, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1154
Comment 2 Jörg 2011-01-16 19:43:21 UTC
In both cases (change an old or add a new contact), the crash is reproduceable. It always crashes on the first attempt.
Comment 3 Christophe Marin 2011-02-14 16:01:54 UTC
*** Bug 266308 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2011-02-14 16:34:17 UTC
*** Bug 266312 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2011-03-09 11:51:40 UTC
*** Bug 267982 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2011-03-09 11:52:00 UTC
*** Bug 267980 has been marked as a duplicate of this bug. ***
Comment 7 Christophe Marin 2011-03-24 18:25:36 UTC
*** Bug 269318 has been marked as a duplicate of this bug. ***
Comment 8 Andre Woebbeking 2011-04-30 10:31:51 UTC
I also can confirm this with kdepim 4.4.11 and kde 4.6.3.

Additional information:

ASSERT failure in QVector<T>::at: "index out of range"
Comment 9 Christophe Marin 2011-09-24 16:26:45 UTC
This crash is likely fixed in kdepim > 4.6. Feel free to reopen if you get a similar backtrace with a recent kdepim version.