Bug 201832 - Kopete crashed when renaming a meta contact
Summary: Kopete crashed when renaming a meta contact
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: Contact list (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 202994 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-29 00:29 UTC by Alex Merry
Modified: 2009-10-31 18:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Merry 2009-07-29 00:29:12 UTC
Application that crashed: kopete
Version of the application: 0.70.90
KDE Version: 4.3.61 (KDE 4.3.61 (KDE 4.4 >= 20090717))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-ARCH x86_64

What I was doing when the application crashed:
Steps:
1. Have a metacontact with no real contacts attached.
2. Select either use name from address book (if it is linked to the address book) or select use custom name and enter a name
3. Click OK
4. Crash.

Note that these are contacts that used to be attached to a real contact, but the real contact was subsequently removed.  The option "take name from contact" is greyed out.

 -- Backtrace:
Application: Kopete (kopete), signal: Aborted
[Current thread is 0 (LWP 3097)]

Thread 2 (Thread 0x7fef1c013910 (LWP 3132)):
#0  0x00007fef2de12dd9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef2e09c191 in QWaitConditionPrivate::wait (this=0x1365bb0, time=18446744073709551615) at /home/kde-devel/kde-qt/src/corelib/thread/qwaitcondition_unix.cpp:87
#2  0x00007fef2e09bf39 in QWaitCondition::wait (this=0x12b4720, mutex=0x12b4718, time=18446744073709551615) at /home/kde-devel/kde-qt/src/corelib/thread/qwaitcondition_unix.cpp:159
#3  0x00007fef2f625078 in QHostInfoAgent::run (this=0x12b4700) at /home/kde-devel/kde-qt/src/network/kernel/qhostinfo.cpp:260
#4  0x00007fef2e09ab78 in QThreadPrivate::start (arg=0x12b4700) at /home/kde-devel/kde-qt/src/corelib/thread/qthread_unix.cpp:189
#5  0x00007fef2de0e57a in start_thread () from /lib/libpthread.so.0
#6  0x00007fef2c26116d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fef3258a760 (LWP 3097)):
[KCrash Handler]
#5  0x00007fef2c1c7f15 in raise () from /lib/libc.so.6
#6  0x00007fef2c1c9340 in abort () from /lib/libc.so.6
#7  0x00007fef2e08f194 in qt_message_output (msgType=QtFatalMsg, 
    buf=0x1483818 "ASSERT failure in QList<T>::at: \"index out of range\", file /home/kde-devel/qt/include/QtCore/../../../kde-qt/src/corelib/tools/qlist.h, line 395")
    at /home/kde-devel/kde-qt/src/corelib/global/qglobal.cpp:2017
#8  0x00007fef2e08fc5f in qFatal (msg=0x7fef2e21bf00 "ASSERT failure in %s: \"%s\", file %s, line %d") at /home/kde-devel/kde-qt/src/corelib/global/qglobal.cpp:2216
#9  0x00007fef2e08ed66 in qt_assert_x (where=0x7fef30af4127 "QList<T>::at", what=0x7fef30af4114 "index out of range", 
    file=0x7fef30af40c8 "/home/kde-devel/qt/include/QtCore/../../../kde-qt/src/corelib/tools/qlist.h", line=395) at /home/kde-devel/kde-qt/src/corelib/global/qglobal.cpp:1794
#10 0x00007fef30ac8937 in QList<Kopete::Contact*>::at (this=0x7fffdb189cc0, i=-1) at /home/kde-devel/qt/include/QtCore/../../../kde-qt/src/corelib/tools/qlist.h:395
#11 0x00007fef30ac2635 in KopeteMetaLVIProps::selectedNameSourceContact (this=0x143d4f0) at /home/kde-devel/src/KDE/kdenetwork/kopete/kopete/contactlist/kopetelviprops.cpp:442
#12 0x00007fef30ac27b4 in KopeteMetaLVIProps::slotOkClicked (this=0x143d4f0) at /home/kde-devel/src/KDE/kdenetwork/kopete/kopete/contactlist/kopetelviprops.cpp:465
#13 0x00007fef30ac3341 in KopeteMetaLVIProps::qt_metacall (this=0x143d4f0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffdb189de0)
    at /home/kde-devel/build/KDE/kdenetwork/kopete/kopete/contactlist/kopetelviprops.moc:144
#14 0x00007fef2e1d0ee9 in QMetaObject::activate (sender=0x143d4f0, from_signal_index=45, to_signal_index=45, argv=0x0) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3119
#15 0x00007fef2e1d128d in QMetaObject::activate (sender=0x143d4f0, m=0x7fef2f30a500, local_signal_index=9, argv=0x0) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3193
#16 0x00007fef2edfb1f1 in operator-> (this=0x7fef2edfb1f1) at /home/kde-devel/src/KDE/kdelibs/kdeui/dialogs/kdialog.cpp:1018
#17 0x00007fef2edf9b39 in KDialog::showButtonSeparator (this=0x143d4f0, state=4) at /home/kde-devel/src/KDE/kdelibs/kdeui/dialogs/kdialog.cpp:609
#18 0x00007fef2edfafad in KDialog::saveDialogSize (this=0x7fef2edfb1f1, config=@0x7fffdb189ec0, options={i = 766906368}) at /home/kde-devel/src/KDE/kdelibs/kdeui/dialogs/kdialog.cpp:998
#19 0x00007fef30ac32eb in KopeteMetaLVIProps::qt_metacall (this=0x143d4f0, _c=QMetaObject::InvokeMetaMethod, _id=69, _a=0x7fffdb18a0b0)
    at /home/kde-devel/build/KDE/kdenetwork/kopete/kopete/contactlist/kopetelviprops.moc:139
#20 0x00007fef2e1d0ee9 in QMetaObject::activate (sender=0x13e9b08, from_signal_index=4, to_signal_index=4, argv=0x7fffdb18a0b0) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3119
#21 0x00007fef2e1d128d in QMetaObject::activate (sender=0x13e9b08, m=0x7fef2e4ee880, local_signal_index=0, argv=0x7fffdb18a0b0) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3193
#22 0x00007fef2e1d6e88 in QSignalMapper::mapped (this=0x13e9b08, _t1=4) at .moc/debug-shared/moc_qsignalmapper.cpp:95
#23 0x00007fef2e1d6b7d in QSignalMapper::map (this=0x13e9b08, sender=0x1480240) at /home/kde-devel/kde-qt/src/corelib/kernel/qsignalmapper.cpp:266
#24 0x00007fef2e1d6b10 in QSignalMapper::map (this=0x13e9b08) at /home/kde-devel/kde-qt/src/corelib/kernel/qsignalmapper.cpp:257
#25 0x00007fef2e1d6dfa in QSignalMapper::qt_metacall (this=0x13e9b08, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7fffdb18a290) at .moc/debug-shared/moc_qsignalmapper.cpp:81
#26 0x00007fef2e1d0ee9 in QMetaObject::activate (sender=0x1480240, from_signal_index=29, to_signal_index=30, argv=0x7fffdb18a290) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3119
#27 0x00007fef2e1d1361 in QMetaObject::activate (sender=0x1480240, m=0x7fef2db70700, from_local_signal_index=2, to_local_signal_index=3, argv=0x7fffdb18a290)
    at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3213
#28 0x00007fef2d698ed7 in QAbstractButton::clicked (this=0x1480240, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:200
#29 0x00007fef2d34cb34 in QAbstractButtonPrivate::emitClicked (this=0x14ac710) at /home/kde-devel/kde-qt/src/gui/widgets/qabstractbutton.cpp:543
#30 0x00007fef2d34caa1 in QAbstractButtonPrivate::click (this=0x14ac710) at /home/kde-devel/kde-qt/src/gui/widgets/qabstractbutton.cpp:536
#31 0x00007fef2d34e29d in QAbstractButton::mouseReleaseEvent (this=0x1480240, e=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/widgets/qabstractbutton.cpp:1115
#32 0x00007fef2ceff5b4 in QWidget::event (this=0x1480240, event=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/kernel/qwidget.cpp:7521
#33 0x00007fef2d34e11c in QAbstractButton::event (this=0x1480240, e=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/widgets/qabstractbutton.cpp:1077
#34 0x00007fef2d41e557 in QPushButton::event (this=0x1480240, e=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/widgets/qpushbutton.cpp:662
#35 0x00007fef2ce98856 in QApplicationPrivate::notify_helper (this=0xc35100, receiver=0x1480240, e=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:4057
#36 0x00007fef2ce973ce in QApplication::notify (this=0x7fffdb18fb40, receiver=0x1480240, e=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:3759
#37 0x00007fef2ee9ed97 in Private (this=0x1480240, parent=0x411c30) at /home/kde-devel/src/KDE/kdelibs/kdeui/jobs/kuiserverjobtracker.cpp:39
#38 0x00007fef2e1b4b7c in QCoreApplication::notifyInternal (this=0x7fffdb18fb40, receiver=0x1480240, event=0x7fffdb18acb0) at /home/kde-devel/kde-qt/src/corelib/kernel/qcoreapplication.cpp:610
#39 0x00007fef303a7d43 in QCoreApplication::sendSpontaneousEvent () from /home/kde-devel/qt/lib/libQt3Support.so.4
#40 0x00007fef2ce95937 in QApplicationPrivate::sendMouseEvent (receiver=0x1480240, event=0x7fffdb18acb0, alienWidget=0x1480240, nativeWidget=0x143d4f0, buttonDown=0x7fef2db8cf18, 
    lastMouseReceiver=@0x7fef2db8cf20) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:2925
#41 0x00007fef2cf22a4c in QETWidget::translateMouseEvent (this=0x143d4f0, event=0x7fffdb18c830) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication_x11.cpp:4448
#42 0x00007fef2cf1f3b4 in QApplication::x11ProcessEvent (this=0x7fffdb18fb40, event=0x7fffdb18c830) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication_x11.cpp:3444
#43 0x00007fef2cf57162 in x11EventSourceDispatch (s=0xc548c0, callback=0, user_data=0x0) at /home/kde-devel/kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#44 0x00007fef28bd7dbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0x00007fef28bdb568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#46 0x00007fef28bdb690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0x00007fef2e1edd25 in QEventDispatcherGlib::processEvents (this=0xc34e20, flags={i = 100}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventdispatcher_glib.cpp:324
#48 0x00007fef2cf5785c in QGuiEventDispatcherGlib::processEvents (this=0xc34e20, flags={i = 100}) at /home/kde-devel/kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#49 0x00007fef2e1b1db8 in QEventLoop::processEvents (this=0x7fffdb18cc10, flags={i = 100}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventloop.cpp:149
#50 0x00007fef2e1b1ef5 in QEventLoop::exec (this=0x7fffdb18cc10, flags={i = 64}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventloop.cpp:200
#51 0x00007fef2d4c095b in QDialog::exec (this=0x143d4f0) at /home/kde-devel/kde-qt/src/gui/dialogs/qdialog.cpp:498
#52 0x00007fef30ab34e8 in KopeteContactListView::showItemProperties (this=0xe70a90) at /home/kde-devel/src/KDE/kdenetwork/kopete/kopete/contactlist/kopetecontactlistview.cpp:309
#53 0x00007fef30ab8ddc in KopeteContactListView::qt_metacall (this=0xe70a90, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffdb18ce50)
    at /home/kde-devel/build/KDE/kdenetwork/kopete/kopete/contactlist/kopetecontactlistview.moc:112
#54 0x00007fef2e1d0ee9 in QMetaObject::activate (sender=0xe33340, from_signal_index=5, to_signal_index=6, argv=0x7fffdb18ce50) at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3119
#55 0x00007fef2e1d1361 in QMetaObject::activate (sender=0xe33340, m=0x7fef2db4d7c0, from_local_signal_index=1, to_local_signal_index=2, argv=0x7fffdb18ce50)
    at /home/kde-devel/kde-qt/src/corelib/kernel/qobject.cpp:3213
#56 0x00007fef2ce884a7 in QAction::triggered (this=0xe33340, _t1=false) at .moc/debug-shared/moc_qaction.cpp:236
#57 0x00007fef2ce878a8 in QAction::activate (this=0xe33340, event=QAction::Trigger) at /home/kde-devel/kde-qt/src/gui/kernel/qaction.cpp:1160
#58 0x00007fef2d404bdc in QMenuPrivate::activateCausedStack (this=0xeeddb0, causedStack=@0x7fffdb18cf50, action=0xe33340, action_e=QAction::Trigger, self=true)
    at /home/kde-devel/kde-qt/src/gui/widgets/qmenu.cpp:967
#59 0x00007fef2d4050dc in QMenuPrivate::activateAction (this=0xeeddb0, action=0xe33340, action_e=QAction::Trigger, self=true) at /home/kde-devel/kde-qt/src/gui/widgets/qmenu.cpp:1060
#60 0x00007fef2d409b8e in QMenu::mouseReleaseEvent (this=0xefa1d0, e=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/gui/widgets/qmenu.cpp:2254
#61 0x00007fef2ef96583 in QList<KToolBar*>::detach_helper (this=0x3) at /home/kde-devel/qt/include/QtCore/../../../kde-qt/src/corelib/tools/qlist.h:528
#62 0x00007fef2ceff5b4 in QWidget::event (this=0xefa1d0, event=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/gui/kernel/qwidget.cpp:7521
#63 0x00007fef2d40a2a2 in QMenu::event (this=0xefa1d0, e=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/gui/widgets/qmenu.cpp:2353
#64 0x00007fef2ce98856 in QApplicationPrivate::notify_helper (this=0xc35100, receiver=0xefa1d0, e=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:4057
#65 0x00007fef2ce973ce in QApplication::notify (this=0x7fffdb18fb40, receiver=0xefa1d0, e=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:3759
#66 0x00007fef2ee9ed97 in Private (this=0xc555d0, parent=0x411c30) at /home/kde-devel/src/KDE/kdelibs/kdeui/jobs/kuiserverjobtracker.cpp:39
#67 0x00007fef2e1b4b7c in QCoreApplication::notifyInternal (this=0x7fffdb18fb40, receiver=0xefa1d0, event=0x7fffdb18db60) at /home/kde-devel/kde-qt/src/corelib/kernel/qcoreapplication.cpp:610
#68 0x00007fef303a7d43 in QCoreApplication::sendSpontaneousEvent () from /home/kde-devel/qt/lib/libQt3Support.so.4
#69 0x00007fef2ce95937 in QApplicationPrivate::sendMouseEvent (receiver=0xefa1d0, event=0x7fffdb18db60, alienWidget=0x0, nativeWidget=0xefa1d0, buttonDown=0x7fef2db8cf18, 
    lastMouseReceiver=@0x7fef2db8cf20) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:2925
#70 0x00007fef2cf2273c in QETWidget::translateMouseEvent (this=0xefa1d0, event=0x7fffdb18f6e0) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication_x11.cpp:4382
#71 0x00007fef2cf1f3b4 in QApplication::x11ProcessEvent (this=0x7fffdb18fb40, event=0x7fffdb18f6e0) at /home/kde-devel/kde-qt/src/gui/kernel/qapplication_x11.cpp:3444
#72 0x00007fef2cf57162 in x11EventSourceDispatch (s=0xc548c0, callback=0, user_data=0x0) at /home/kde-devel/kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#73 0x00007fef28bd7dbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#74 0x00007fef28bdb568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#75 0x00007fef28bdb690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#76 0x00007fef2e1edd25 in QEventDispatcherGlib::processEvents (this=0xc34e20, flags={i = 36}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventdispatcher_glib.cpp:324
#77 0x00007fef2cf5785c in QGuiEventDispatcherGlib::processEvents (this=0xc34e20, flags={i = 36}) at /home/kde-devel/kde-qt/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#78 0x00007fef2e1b1db8 in QEventLoop::processEvents (this=0x7fffdb18faa0, flags={i = 36}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventloop.cpp:149
#79 0x00007fef2e1b1ef5 in QEventLoop::exec (this=0x7fffdb18faa0, flags={i = 0}) at /home/kde-devel/kde-qt/src/corelib/kernel/qeventloop.cpp:200
#80 0x00007fef2e1b527e in QCoreApplication::exec () at /home/kde-devel/kde-qt/src/corelib/kernel/qcoreapplication.cpp:888
#81 0x00007fef2ce96626 in QApplication::exec () at /home/kde-devel/kde-qt/src/gui/kernel/qapplication.cpp:3526
#82 0x0000000000415d07 in main (argc=3, argv=0x7fffdb1909b8) at /home/kde-devel/src/KDE/kdenetwork/kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Dario Andres 2009-08-07 19:58:15 UTC
*** Bug 202994 has been marked as a duplicate of this bug. ***
Comment 2 Matt Rogers 2009-09-05 21:16:30 UTC
argh. that's not cool at all.
Comment 3 Roman Jarosz 2009-10-31 10:40:09 UTC
SVN commit 1042888 by rjarosz:

Don't crash if source contact index is invalid.

 M  +2 -6      kopetelviprops.cpp
Comment 4 Roman Jarosz 2009-10-31 18:32:01 UTC
SVN commit 1043069 by rjarosz:

Backport commit 1042888.
Don't crash if source contact index is invalid.

CCBUG: 201832



 M  +2 -6      kopetelviprops.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1043069