Bug 160549 - kopete crashes when contact gets deleted while contact window is still open [jabber]
Summary: kopete crashes when contact gets deleted while contact window is still open [...
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 03:04 UTC by Oliver Putz
Modified: 2009-01-15 19:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Putz 2008-04-08 03:04:27 UTC
Version:           0.50.50 (using 4.00.68 (KDE 4.0.68 >= 20080402), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.23-gentoo-r9

Steps to reproduce:

1) Go online with a jabber account
2) Add a MSN contact to the jabber account
3) Start a conversation with that MSN contact (open the converation window)
4) Delete the contact while the conversation window is still open
5) See kopete (kdenetwork r792147) crash with the following backtrace:

Application: Kopete (kopete), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb59b86d0 (LWP 9009)]
[KCrash handler]
#6  0xb6a46c29 in QString::isEmpty (this=0xbfa59d5c)
    at /usr/include/qt4/QtCore/qstring.h:655
#7  0xb3ff680a in ChatView::slotContactRemoved (this=0x83c7db0, 
    contact=0x844cd68, reason=@0xbfa59ef4, format=Qt::PlainText, 
    suppressNotification=false)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/kopete/chatwindow/chatview.cpp:547
#8  0xb3ff8b04 in ChatView::qt_metacall (this=0x83c7db0, 
    _c=QMetaObject::InvokeMetaMethod, _id=62, _a=0xbfa59eb0)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/kopete/chatwindow/chatview.moc:184
#9  0xb7e3f2c8 in QMetaObject::activate (sender=0x8440530, 
    from_signal_index=<value optimized out>, to_signal_index=15, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#10 0xb7e3f7e2 in QMetaObject::activate (sender=0x8440530, m=0xb6af7764, 
    from_local_signal_index=9, to_local_signal_index=11, argv=0xbfa59eb0)
    at kernel/qobject.cpp:3085
#11 0xb6a868a5 in Kopete::ChatSession::contactRemoved (this=0x8440530, 
    _t1=0x844cd68, _t2=@0xbfa59ef4, _t3=Qt::PlainText, _t4=false)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/libkopete/kopetechatsession.moc:260
#12 0xb6a86c29 in Kopete::ChatSession::slotContactDestroyed (this=0x8440530, 
    contact=0x844cd68)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/kopetechatsession.cpp:489
#13 0xb6a8872a in Kopete::ChatSession::qt_metacall (this=0x8440530, 
    _c=QMetaObject::InvokeMetaMethod, _id=47, _a=0xbfa5a02c)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/libkopete/kopetechatsession.moc:207
#14 0xb42dd4ea in JabberChatSession::qt_metacall (this=0x8440530, 
    _c=QMetaObject::InvokeMetaMethod, _id=47, _a=0xbfa5a02c)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/protocols/jabber/jabberchatsession.moc:71
#15 0xb7e3f2c8 in QMetaObject::activate (sender=0x844cd68, 
    from_signal_index=<value optimized out>, to_signal_index=10, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#16 0xb7e3fa44 in QMetaObject::activate (sender=0x844cd68, m=0xb6af7a80, 
    local_signal_index=1, argv=0xbfa5a02c) at kernel/qobject.cpp:3065
#17 0xb6a91ff4 in Kopete::Contact::contactDestroyed (this=0x844cd68, 
    _t1=0x844cd68)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork_build/kopete/libkopete/kopetecontact.moc:195
#18 0xb6a95e74 in ~Contact (this=0x844cd68)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/kopetecontact.cpp:124
#19 0xb42ce618 in ~JabberBaseContact (this=0x844cd68)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/protocols/jabber/jabberbasecontact.h:33
#20 0xb42cc7bc in ~JabberContact (this=0x844cd68)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/protocols/jabber/jabbercontact.cpp:130
#21 0xb7e3b6ee in QObjectPrivate::deleteChildren (this=0x8350c78)
    at kernel/qobject.cpp:1854
#22 0xb7e43be9 in ~QObject (this=0x84e1608) at kernel/qobject.cpp:871
#23 0xb6ac1c97 in ~PropertyContainer (this=0x84e1608)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/kopetepropertycontainer.cpp:46
#24 0xb6a99b17 in ~ContactListElement (this=0x84e1608)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/kopetecontactlistelement.cpp:54
#25 0xb6aad737 in ~MetaContact (this=0x84e1608)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/libkopete/kopetemetacontact.cpp:73
#26 0xb7e38c1c in qDeleteInEventHandler (o=0x80ab501)
    at kernel/qobject.cpp:3580
#27 0xb7e3aea0 in QObject::event (this=0x84e1608, e=0x84a5898)
    at kernel/qobject.cpp:1115
#28 0xb6c8671f in QApplicationPrivate::notify_helper (this=0x80c40f0, 
    receiver=0x84e1608, e=0x84a5898) at kernel/qapplication.cpp:3735
#29 0xb6c882fa in QApplication::notify (this=0xbfa5a8d8, receiver=0x84e1608, 
    e=0x84a5898) at kernel/qapplication.cpp:3329
#30 0xb78897c3 in KApplication::notify (this=0xbfa5a8d8, receiver=0x84e1608, 
    event=0x84a5898)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:311
#31 0xb7e28cf7 in QCoreApplication::notifyInternal (this=0xbfa5a8d8, 
    receiver=0x84e1608, event=0x84a5898) at kernel/qcoreapplication.cpp:586
#32 0xb7e2a059 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x80ade80)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 0xb7e2a3bd in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1084
#34 0xb6d1eb1e in QEventDispatcherX11::processEvents (this=0x80cbe70, 
    flags=@0xbfa5a804)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#35 0xb7e27e61 in QEventLoop::processEvents (this=0xbfa5a870, 
    flags=@0xbfa5a838) at kernel/qeventloop.cpp:146
#36 0xb7e27f8f in QEventLoop::exec (this=0xbfa5a870, flags=@0xbfa5a878)
    at kernel/qeventloop.cpp:197
#37 0xb7e2a476 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:838
#38 0xb6c85e37 in QApplication::exec () at kernel/qapplication.cpp:3267
#39 0x08089f8c in main (argc=)
    at /var/tmp/portage/kde-base/kdenetwork-9999.4/work/kdenetwork-9999.4/kopete/kopete/main.cpp:102
#40 0xb5db5fdc in __libc_start_main (main=0x8087ff0 <main>, argc=1, 
    ubp_av=0xbfa5acc4, init=0x809d120 <__libc_csu_init>, 
    fini=0x809d110 <__libc_csu_fini>, rtld_fini=0xb7f28100 <_dl_fini>, 
    stack_end=0xbfa5acbc) at libc-start.c:229
#41 0x08065101 in _start ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 1 Dominik Tritscher 2008-07-28 19:58:25 UTC
I can't confirm that with kopete 0.50.80 from KDE4.1RC1 Kubuntu packages.
Deleting the contact while chat window still opened just closes the chat window.
Comment 2 Oliver Putz 2008-07-28 20:13:35 UTC
I too cannot reproduce this crash any longer. So I just assume that it was fixed somewhen inbetween me reporting it and KDE-4.1 RC1. Closing WORKSFORME
Comment 3 Andreas Pakulat 2009-01-15 19:41:34 UTC
*** Bug 180850 has been marked as a duplicate of this bug. ***