Bug 303034

Summary: Kopete crash on exit after deleting phantom contacts
Product: [Unmaintained] kopete Reporter: Shayne Johnson <steampoweredlawngnome>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Shayne Johnson 2012-07-04 20:42:06 UTC
Application: kopete (1.2.90)
KDE Platform Version: 4.8.90 (4.8.90)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-26-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
I opted to view all offline contacts so I could do some cleanup. Several contacts were duplicated with no account icon next to them, suggesting to me they were phantom contacts that did not need to be there. I deleted all phantom contacts (but no real ones at this point) and Kopete crashed on the last one. I reopened Kopete and repeated the procedure, but it did not crash until I exited the application. The phantom contacts remain.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f2e3f7eb780 (LWP 13624))]

Thread 5 (Thread 0x7f2e27d1f700 (LWP 13625)):
#0  0x00007f2e36b465a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2e36b0a914 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2e36b0afaa in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e36b0b164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2e3d237426 in QEventDispatcherGlib::processEvents (this=0x7f2e200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f2e3d206c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2e3d206ed7 in QEventLoop::exec (this=0x7f2e27d1edd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f2e3d105fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f2e3d1e69ff in QInotifyFileSystemWatcherEngine::run (this=0x17dcea0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f2e3d108fcb in QThreadPrivate::start (arg=0x17dcea0) at thread/qthread_unix.cpp:298
#10 0x00007f2e375e5e9a in start_thread (arg=0x7f2e27d1f700) at pthread_create.c:308
#11 0x00007f2e3bb774bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f2e1ffff700 (LWP 13627)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:55
#1  __pthread_mutex_unlock (mutex=0x7f2e1800c300) at pthread_mutex_unlock.c:290
#2  0x00007f2e36b465d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e36b0b02a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2e36b0b49a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f2e2556d406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007f2e36b2c9e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f2e375e5e9a in start_thread (arg=0x7f2e1ffff700) at pthread_create.c:308
#8  0x00007f2e3bb774bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f2e0b5ad700 (LWP 13633)):
#0  0x00007f2e3bb6bb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f2e36b0b036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2e36b0b164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e3d237426 in QEventDispatcherGlib::processEvents (this=0x7f2df80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f2e3d206c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2e3d206ed7 in QEventLoop::exec (this=0x7f2df80013c0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f2e1e3409ba in QCA::SyncThread::run() () from /usr/lib/libqca.so.2
#7  0x00007f2e3d108fcb in QThreadPrivate::start (arg=0x1a09570) at thread/qthread_unix.cpp:298
#8  0x00007f2e375e5e9a in start_thread (arg=0x7f2e0b5ad700) at pthread_create.c:308
#9  0x00007f2e3bb774bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2e0adac700 (LWP 13634)):
#0  0x00007f2e3bb6bb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f2e36b0b036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2e36b0b164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e3d237426 in QEventDispatcherGlib::processEvents (this=0x7f2dfc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f2e3d206c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2e3d206ed7 in QEventLoop::exec (this=0x7f2dfc0013c0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f2e1e77eea5 in XMPP::SyncThread::run (this=0x1a10c70) at ../../../../../kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#7  0x00007f2e3d108fcb in QThreadPrivate::start (arg=0x1a10c70) at thread/qthread_unix.cpp:298
#8  0x00007f2e375e5e9a in start_thread (arg=0x7f2e0adac700) at pthread_create.c:308
#9  0x00007f2e3bb774bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2e3f7eb780 (LWP 13624)):
[KCrash Handler]
#6  0x00007f2e3eea3519 in QList (l=..., this=0x7fff13d527b0) at /usr/include/qt4/QtCore/qlist.h:122
#7  QListIterator (container=..., this=0x7fff13d527b0) at /usr/include/qt4/QtCore/qlist.h:902
#8  Kopete::MetaContact::isOnline (this=0x17ea6e0) at ../../../kopete/libkopete/kopetemetacontact.cpp:516
#9  0x00007f2e3e7aae9e in Kopete::UI::ContactListTreeModel::countConnected (this=<optimized out>, gmi=<optimized out>) at ../../../../kopete/kopete/contactlist/contactlisttreemodel.cpp:233
#10 0x00007f2e3e7ab0f3 in Kopete::UI::ContactListTreeModel::data (this=0x11aaf30, index=..., role=138) at ../../../../kopete/kopete/contactlist/contactlisttreemodel.cpp:318
#11 0x00007f2e3e7b445a in Kopete::UI::ContactListProxyModel::filterAcceptsRow (this=0x11aefd0, sourceRow=<optimized out>, sourceParent=...) at ../../../../kopete/kopete/contactlist/contactlistproxymodel.cpp:139
#12 0x00007f2e3c8c0a4a in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x11ac480, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1131
#13 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x11aaf30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff13d52e80) at kernel/qobject.cpp:3547
#14 0x00007f2e3d268507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#15 0x00007f2e3e7af0ab in Kopete::UI::ContactListTreeModel::addMetaContactToGroup (this=0x11aaf30, mc=0x180a8e0, group=0x17e07f0) at ../../../../kopete/kopete/contactlist/contactlisttreemodel.cpp:172
#16 0x00007f2e3e7ace50 in Kopete::UI::ContactListTreeModel::handleContactDataChange (this=0x11aaf30, mc=0x180a8e0) at ../../../../kopete/kopete/contactlist/contactlisttreemodel.cpp:602
#17 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x180a8e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff13d531b0) at kernel/qobject.cpp:3547
#18 0x00007f2e3eea1ee0 in Kopete::MetaContact::onlineStatusChanged (this=<optimized out>, _t1=0x180a8e0, _t2=Kopete::OnlineStatus::Unknown) at ./kopetemetacontact.moc:269
#19 0x00007f2e3eea4b64 in Kopete::MetaContact::updateOnlineStatus (this=0x180a8e0) at ../../../kopete/libkopete/kopetemetacontact.cpp:157
#20 0x00007f2e3eea4bd1 in Kopete::MetaContact::slotContactStatusChanged (this=0x180a8e0, c=0x16dbc00, status=...) at ../../../kopete/libkopete/kopetemetacontact.cpp:607
#21 0x00007f2e3eea777c in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kopetemetacontact.moc:166
#22 Kopete::MetaContact::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./kopetemetacontact.moc:128
#23 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x16dbc00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff13d533c0) at kernel/qobject.cpp:3547
#24 0x00007f2e3ee8bca9 in Kopete::Contact::onlineStatusChanged (this=<optimized out>, _t1=0x16dbc00, _t2=..., _t3=...) at ./kopetecontact.moc:221
#25 0x00007f2e3ee8bd0f in Kopete::Contact::slotAccountIsConnectedChanged (this=0x16dbc00) at ../../../kopete/libkopete/kopetecontact.cpp:216
#26 0x00007f2e3ee8f30d in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x16dbc00, _c=<optimized out>) at ./kopetecontact.moc:134
#27 Kopete::Contact::qt_static_metacall (_o=0x16dbc00, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./kopetecontact.moc:106
#28 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x175d180, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#29 0x00007f2e3ee75aad in Kopete::Account::slotOnlineStatusChanged (this=0x175d180, newStatus=..., oldStatus=...) at ../../../kopete/libkopete/kopeteaccount.cpp:584
#30 0x00007f2e3ee75eef in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x175d180, _c=<optimized out>) at ./kopeteaccount.moc:137
#31 Kopete::Account::qt_static_metacall (_o=0x175d180, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./kopeteaccount.moc:112
#32 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x174adf0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff13d537b0) at kernel/qobject.cpp:3547
#33 0x00007f2e3ee8bca9 in Kopete::Contact::onlineStatusChanged (this=<optimized out>, _t1=0x174adf0, _t2=..., _t3=...) at ./kopetecontact.moc:221
#34 0x00007f2e3ee8c46c in Kopete::Contact::setOnlineStatus (this=0x174adf0, status=...) at ../../../kopete/libkopete/kopetecontact.cpp:172
#35 0x00007f2e1e690ecf in JabberBaseContact::reevaluateStatus (this=0x174adf0) at ../../../../kopete/protocols/jabber/jabberbasecontact.cpp:313
#36 0x00007f2e1e68abea in JabberResourcePool::notifyRelevantContacts (this=<optimized out>, jid=..., removed=false) at ../../../../kopete/protocols/jabber/jabberresourcepool.cpp:100
#37 0x00007f2e1e68b5a3 in JabberResourcePool::addResource (this=0x173cc40, jid=..., resource=...) at ../../../../kopete/protocols/jabber/jabberresourcepool.cpp:120
#38 0x00007f2e1e683011 in JabberAccount::setPresence (this=0x175d180, status=...) at ../../../../kopete/protocols/jabber/jabberaccount.cpp:1080
#39 0x00007f2e1e6858e5 in JabberAccount::disconnect (this=0x175d180, reason=Kopete::Account::Manual) at ../../../../kopete/protocols/jabber/jabberaccount.cpp:702
#40 0x00007f2e3eebd43b in Kopete::Protocol::aboutToUnload (this=0x1722f50) at ../../../kopete/libkopete/kopeteprotocol.cpp:151
#41 0x00007f2e3eeb7702 in Kopete::PluginManager::shutdown (this=0x1529368) at ../../../kopete/libkopete/kopetepluginmanager.cpp:191
#42 0x000000000041b769 in queryExit (this=0x1331570) at ../../../kopete/kopete/kopetewindow.cpp:878
#43 KopeteWindow::queryExit (this=0x1331570) at ../../../kopete/kopete/kopetewindow.cpp:863
#44 0x00007f2e3dd2e26e in KMainWindow::closeEvent (this=0x1331570, e=0x7fff13d54fb0) at ../../kdeui/widgets/kmainwindow.cpp:604
#45 0x000000000041b4eb in KopeteWindow::closeEvent (this=0x1331570, e=0x7fff13d54fb0) at ../../../kopete/kopete/kopetewindow.cpp:905
#46 0x00007f2e3c35e4ee in QWidget::event (this=0x1331570, event=0x7fff13d54fb0) at kernel/qwidget.cpp:8520
#47 0x00007f2e3c737c4b in QMainWindow::event (this=0x1331570, event=0x7fff13d54fb0) at widgets/qmainwindow.cpp:1478
#48 0x00007f2e3dd6a4d8 in KXmlGuiWindow::event (this=0x1331570, ev=0x7fff13d54fb0) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#49 0x00007f2e3c30d894 in notify_helper (e=0x7fff13d54fb0, receiver=0x1331570, this=0x11b36c0) at kernel/qapplication.cpp:4559
#50 QApplicationPrivate::notify_helper (this=0x11b36c0, receiver=0x1331570, e=0x7fff13d54fb0) at kernel/qapplication.cpp:4531
#51 0x00007f2e3c312713 in QApplication::notify (this=0x7fff13d55c90, receiver=0x1331570, e=0x7fff13d54fb0) at kernel/qapplication.cpp:4420
#52 0x00007f2e3dc6e9e6 in KApplication::notify (this=0x7fff13d55c90, receiver=0x1331570, event=0x7fff13d54fb0) at ../../kdeui/kernel/kapplication.cpp:311
#53 0x00007f2e3d207e9c in QCoreApplication::notifyInternal (this=0x7fff13d55c90, receiver=0x1331570, event=0x7fff13d54fb0) at kernel/qcoreapplication.cpp:876
#54 0x00007f2e3c35824d in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#55 QWidgetPrivate::close_helper (this=0x1332930, mode=QWidgetPrivate::CloseWithEvent) at kernel/qwidget.cpp:7928
#56 0x0000000000414c4a in KopeteApplication::quitKopete (this=0x7fff13d55c90) at ../../../kopete/kopete/kopeteapplication.cpp:355
#57 0x0000000000418971 in KopeteWindow::slotQuit (this=0x1331570) at ../../../kopete/kopete/kopetewindow.cpp:912
#58 0x00007f2e3d21c281 in QMetaObject::activate (sender=0x1524570, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff13d551e0) at kernel/qobject.cpp:3547
#59 0x00007f2e3c3072a1 in QAction::activated (this=<optimized out>, _t1=-63) at .moc/release-shared/moc_qaction.cpp:297
#60 0x00007f2e3c307335 in QAction::activate (this=0x1524570, event=<optimized out>) at kernel/qaction.cpp:1260
#61 0x00007f2e3d221446 in QObject::event (this=0x1524570, e=<optimized out>) at kernel/qobject.cpp:1195
#62 0x00007f2e3c3073f0 in event (e=<optimized out>, this=<optimized out>) at kernel/qaction.cpp:1187
#63 QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1172
#64 0x00007f2e3db85aaa in KAction::event (this=<optimized out>, event=0x2498680) at ../../kdeui/actions/kaction.cpp:131
#65 0x00007f2e3c30d894 in notify_helper (e=0x2498680, receiver=0x1524570, this=0x11b36c0) at kernel/qapplication.cpp:4559
#66 QApplicationPrivate::notify_helper (this=0x11b36c0, receiver=0x1524570, e=0x2498680) at kernel/qapplication.cpp:4531
#67 0x00007f2e3c312713 in QApplication::notify (this=0x7fff13d55c90, receiver=0x1524570, e=0x2498680) at kernel/qapplication.cpp:4420
#68 0x00007f2e3dc6e9e6 in KApplication::notify (this=0x7fff13d55c90, receiver=0x1524570, event=0x2498680) at ../../kdeui/kernel/kapplication.cpp:311
#69 0x00007f2e3d207e9c in QCoreApplication::notifyInternal (this=0x7fff13d55c90, receiver=0x1524570, event=0x2498680) at kernel/qcoreapplication.cpp:876
#70 0x00007f2e3d20bc6a in sendEvent (event=0x2498680, receiver=0x1524570) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#71 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1161440) at kernel/qcoreapplication.cpp:1500
#72 0x00007f2e3d236f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#73 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#74 0x00007f2e36b0ad53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#75 0x00007f2e36b0b0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#76 0x00007f2e36b0b164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#77 0x00007f2e3d2373bf in QEventDispatcherGlib::processEvents (this=0x1162d20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#78 0x00007f2e3c3b5d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#79 0x00007f2e3d206c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#80 0x00007f2e3d206ed7 in QEventLoop::exec (this=0x7fff13d55c10, flags=...) at kernel/qeventloop.cpp:204
#81 0x00007f2e3d20bf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#82 0x000000000041418f in main (argc=1, argv=0x7fff13d56b18) at ../../../kopete/kopete/main.cpp:105

Possible duplicates by query: bug 301989, bug 301739, bug 298290.

Reported using DrKonqi
Comment 1 Janek Bevendorff 2012-07-29 14:10:25 UTC

*** This bug has been marked as a duplicate of bug 298290 ***