Bug 290171 - Kopete crashes on exit/logout most of the times
Summary: Kopete crashes on exit/logout most of the times
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 1.1.3
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 294504 294934 317213 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-30 11:56 UTC by Kai Krakow
Modified: 2013-11-24 10:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12


Attachments
New crash information added by DrKonqi (8.30 KB, text/plain)
2011-12-30 12:09 UTC, Kai Krakow
Details
New crash information added by DrKonqi (7.03 KB, text/plain)
2012-01-28 02:13 UTC, Gabriele Tozzi
Details
New crash information added by DrKonqi (8.35 KB, text/plain)
2012-03-19 18:40 UTC, Kai Krakow
Details
New crash information added by DrKonqi (3.83 KB, text/plain)
2012-10-13 07:58 UTC, Jussi Hakola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2011-12-30 11:56:58 UTC
Application: kopete (1.1.3)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.2.0-rc7 x86_64
Distribution: "Gentoo Base System release 2.0.3"

-- Information about the crash:
- What I was doing when the application crashed:

When exiting kopete it crashes in 99% of all tries. This is extremely uncomfortable when kopete crashes during logout because the system will not logout and shutdown then and logout cannot be left unattended.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f09ef724780 (LWP 2957))]

Thread 4 (Thread 0x7f09d88b7700 (LWP 2976)):
#0  0x00007fffcbeb5933 in ?? ()
#1  0x00007f09e69afaa8 in clock_gettime () from /lib64/librt.so.1
#2  0x00007f09ed08c0ea in do_gettime (frac=<optimized out>, sec=<optimized out>) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f09ed14f475 in QTimerInfoList::updateCurrentTime (this=0x24a9f30) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f09ed14f81e in QTimerInfoList::timerWait (this=0x24a9f30, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f09ed14e25c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f09d88b6b4c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f09ed14e305 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f09e66d5667 in g_main_context_prepare (context=0x1e2a360, priority=0x7f09d88b6bbc) at gmain.c:2762
#9  0x00007f09e66d6589 in g_main_context_iterate (context=0x1e2a360, block=1, dispatch=1, self=<optimized out>) at gmain.c:3072
#10 0x00007f09e66d6c2d in g_main_context_iteration (context=0x1e2a360, may_block=1) at gmain.c:3155
#11 0x00007f09ed14ea76 in QEventDispatcherGlib::processEvents (this=0x1dbb590, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#12 0x00007f09ed122d52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f09ed122f9c in QEventLoop::exec (this=0x24a9c20, flags=...) at kernel/qeventloop.cpp:201
#14 0x00007f09cf639793 in QCA::SyncThread::run (this=0x1f3d190) at support/syncthread.cpp:195
#15 0x00007f09ed03aff5 in QThreadPrivate::start (arg=0x1f3d190) at thread/qthread_unix.cpp:331
#16 0x00007f09eb549d2c in start_thread () from /lib64/libpthread.so.0
#17 0x00007f09ebac077d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f09c76e8700 (LWP 2977)):
#0  0x00007f09ebab6093 in poll () from /lib64/libc.so.6
#1  0x00007f09e66d66f4 in g_main_context_poll (n_fds=1, fds=0x2198730, timeout=2023, context=0x20f5c30, priority=<optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x20f5c30, block=1, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x00007f09e66d6c2d in g_main_context_iteration (context=0x20f5c30, may_block=1) at gmain.c:3155
#4  0x00007f09ed14ea76 in QEventDispatcherGlib::processEvents (this=0x2051b10, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f09ed122d52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f09ed122f9c in QEventLoop::exec (this=0x217ade0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f09cfa8ccf5 in XMPP::SyncThread::run (this=0x2051ad0) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#8  0x00007f09ed03aff5 in QThreadPrivate::start (arg=0x2051ad0) at thread/qthread_unix.cpp:331
#9  0x00007f09eb549d2c in start_thread () from /lib64/libpthread.so.0
#10 0x00007f09ebac077d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f09c4e4f700 (LWP 3005)):
#0  0x00007f09ebab8743 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f09cf3b4f83 in posix_timer_do () at posixtimer.c:70
#2  0x00007f09cf3b5a4e in rtp_scheduler_schedule (psched=0x2ffe6b0) at scheduler.c:130
#3  0x00007f09eb549d2c in start_thread () from /lib64/libpthread.so.0
#4  0x00007f09ebac077d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f09ef724780 (LWP 2957)):
[KCrash Handler]
#6  ConnectionHandler::connectionForFamily (this=0x690020006e0125, family=19) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/liboscar/connectionhandler.cpp:88
#7  0x00007f09cfd866a3 in Client::changeContactAlias (this=0x1d8fbfa, contact=..., alias=...) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/liboscar/client.cpp:976
#8  0x00007f09d00c4cbe in OscarContact::sync (this=0x1dcdd80, flags=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/oscarcontact.cpp:194
#9  0x00007f09eedf3a72 in Kopete::MetaContact::setDisplayNameSourceContact (this=0x28625f0, contact=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopetemetacontact.cpp:835
#10 0x00007f09eedf543a in Kopete::MetaContact::removeContact (this=0x28625f0, c=0x2439fd0, deleted=true) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopetemetacontact.cpp:179
#11 0x00007f09eedf576d in Kopete::MetaContact::qt_metacall (this=0x28625f0, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0x7fffcbe4b970) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3_build/kopete/libkopete/kopetemetacontact.moc:191
#12 0x00007f09ed13821f in QMetaObject::activate (sender=0x2439fd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcbe4b970) at kernel/qobject.cpp:3278
#13 0x00007f09eeddb922 in Kopete::Contact::contactDestroyed (this=<optimized out>, _t1=0x2439fd0) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3_build/kopete/libkopete/kopetecontact.moc:211
#14 0x00007f09eeddb94f in Kopete::Contact::~Contact (this=0x2439fd0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopetecontact.cpp:127
#15 0x00007f09cdd4a019 in ICQContact::~ICQContact (this=0x2439fd0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/icq/icqcontact.cpp:72
#16 0x00007f09eedc5967 in qDeleteAll<QHash<QString, Kopete::Contact*>::const_iterator> (begin=<optimized out>, end=<optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:322
#17 0x00007f09eedc55ac in qDeleteAll<QHash<QString, Kopete::Contact*> > (c=<optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:330
#18 Kopete::Account::~Account (this=0x1cd5d40, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopeteaccount.cpp:122
#19 0x00007f09cdd44c79 in ICQAccount::~ICQAccount (this=0x1cd5d40, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/icq/icqaccount.cpp:156
#20 0x00007f09ed137d58 in QObject::event (this=0x1cd5d40, e=<optimized out>) at kernel/qobject.cpp:1200
#21 0x00007f09ec255eb4 in QApplicationPrivate::notify_helper (this=0x1630540, receiver=0x1cd5d40, e=0x3662b40) at kernel/qapplication.cpp:4481
#22 0x00007f09ec25aa68 in QApplication::notify (this=<optimized out>, receiver=0x1cd5d40, e=0x3662b40) at kernel/qapplication.cpp:4360
#23 0x00007f09edb96a86 in KApplication::notify (this=0x7fffcbe4c510, receiver=0x1cd5d40, event=0x3662b40) at /var/tmp/portage/kde-base/kdelibs-4.7.3-r1/work/kdelibs-4.7.3/kdeui/kernel/kapplication.cpp:311
#24 0x00007f09ed1239bc in QCoreApplication::notifyInternal (this=0x7fffcbe4c510, receiver=0x1cd5d40, event=0x3662b40) at kernel/qcoreapplication.cpp:787
#25 0x00007f09ed12717d in sendEvent (event=0x3662b40, receiver=0x1cd5d40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x15edb00) at kernel/qcoreapplication.cpp:1428
#27 0x00007f09ed14e883 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#28 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007f09e66d61b3 in g_main_dispatch (context=0x1632ce0) at gmain.c:2441
#30 g_main_context_dispatch (context=0x1632ce0) at gmain.c:3014
#31 0x00007f09e66d6990 in g_main_context_iterate (context=0x1632ce0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3092
#32 0x00007f09e66d6c2d in g_main_context_iteration (context=0x1632ce0, may_block=1) at gmain.c:3155
#33 0x00007f09ed14ea1f in QEventDispatcherGlib::processEvents (this=0x15ed2e0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#34 0x00007f09ec2fc3ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f09ed122d52 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f09ed122f9c in QEventLoop::exec (this=0x7fffcbe4c460, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007f09ed12742b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#38 0x0000000000416272 in main (argc=1, argv=0x7fffcbe4d398) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/kopete/main.cpp:105

This bug may be a duplicate of or related to bug 209607.

Possible duplicates by query: bug 273319.

Reported using DrKonqi
Comment 1 Kai Krakow 2011-12-30 12:07:48 UTC
This is extremely annoying as every change I do to my contact list or blocked contacts is not saved!
Comment 2 Kai Krakow 2011-12-30 12:09:25 UTC
Created attachment 67244 [details]
New crash information added by DrKonqi

kopete (1.1.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

- What I was doing when the application crashed:

Well actually it's now always crashing... :-(

-- Backtrace (Reduced):
#6  ConnectionHandler::connectionForFamily (this=0x690020006e0125, family=19) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/liboscar/connectionhandler.cpp:88
#7  0x00007fb6948cc6a3 in Client::changeContactAlias (this=0x1d16a1a, contact=..., alias=...) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/liboscar/client.cpp:976
#8  0x00007fb694c0acbe in OscarContact::sync (this=0x22eb170, flags=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/protocols/oscar/oscarcontact.cpp:194
#9  0x00007fb6af8c0a72 in Kopete::MetaContact::setDisplayNameSourceContact (this=0x27d4580, contact=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopetemetacontact.cpp:835
#10 0x00007fb6af8c243a in Kopete::MetaContact::removeContact (this=0x27d4580, c=0x1f4d020, deleted=true) at /var/tmp/portage/kde-base/kopete-4.7.3/work/kopete-4.7.3/kopete/libkopete/kopetemetacontact.cpp:179
Comment 3 Gabriele Tozzi 2012-01-28 02:13:43 UTC
Created attachment 68261 [details]
New crash information added by DrKonqi

kopete (1.1.3) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

When closing the application, it crashes every time.

-- Backtrace (Reduced):
#6  ConnectionHandler::connectionForFamily (this=0x690020006e0125, family=19) at ../../../../../kopete/protocols/oscar/liboscar/connectionhandler.cpp:88
#7  0x00007fda886d97eb in Client::changeContactAlias (this=0x1bca7ea, contact=..., alias=...) at ../../../../../kopete/protocols/oscar/liboscar/client.cpp:976
#8  0x00007fda88a0f65a in sync (flags=<optimized out>, this=0xd3acc0) at ../../../../kopete/protocols/oscar/oscarcontact.cpp:194
#9  OscarContact::sync (this=0xd3acc0, flags=<optimized out>) at ../../../../kopete/protocols/oscar/oscarcontact.cpp:162
#10 0x00007fdaa0a38ac2 in Kopete::MetaContact::setDisplayNameSourceContact (this=0x1dfcb30, contact=0x0) at ../../../kopete/libkopete/kopetemetacontact.cpp:835
Comment 4 Christoph Feck 2012-02-22 13:28:52 UTC
*** Bug 294504 has been marked as a duplicate of this bug. ***
Comment 5 Kai Krakow 2012-03-19 18:40:25 UTC
Created attachment 69739 [details]
New crash information added by DrKonqi

kopete (1.1.3) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

- What I was doing when the application crashed:

Stopped Kopete to restart it. I got a crash but not sure if this resulted from exiting or starting Kopete.

-- Backtrace (Reduced):
#6  ConnectionHandler::connectionForFamily (this=0x690020006e0125, family=19) at /var/tmp/portage/kde-base/kopete-4.7.4/work/kopete-4.7.4/kopete/protocols/oscar/liboscar/connectionhandler.cpp:88
#7  0x00007f3fd60f06a3 in Client::changeContactAlias (this=0x2499c4a, contact=..., alias=...) at /var/tmp/portage/kde-base/kopete-4.7.4/work/kopete-4.7.4/kopete/protocols/oscar/liboscar/client.cpp:976
#8  0x00007f3fd642ecbe in OscarContact::sync (this=0x231cc70, flags=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.4/work/kopete-4.7.4/kopete/protocols/oscar/oscarcontact.cpp:194
#9  0x00007f3ff579ea72 in Kopete::MetaContact::setDisplayNameSourceContact (this=0x2551a00, contact=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.7.4/work/kopete-4.7.4/kopete/libkopete/kopetemetacontact.cpp:835
#10 0x00007f3ff57a043a in Kopete::MetaContact::removeContact (this=0x2551a00, c=0x18ab580, deleted=true) at /var/tmp/portage/kde-base/kopete-4.7.4/work/kopete-4.7.4/kopete/libkopete/kopetemetacontact.cpp:179
Comment 6 Jekyll Wu 2012-10-05 13:00:39 UTC
*** Bug 294934 has been marked as a duplicate of this bug. ***
Comment 7 Jussi Hakola 2012-10-13 07:58:44 UTC
Created attachment 74514 [details]
New crash information added by DrKonqi

kopete (1.2.3) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

- What I was doing when the application crashed:
Closing down or exiting Kopete

- Custom settings of the application:
I use SILC Plugin, Messenger (WLM) Plugin, andd Skype integration plugin, all should be standard..

Mixed Debian Testing/Unstable environment,

-- Backtrace (Reduced):
#6  0x00007f412d11a48f in Kopete::Account::~Account() () from /usr/lib/libkopete.so.4
[...]
#8  0x00007f412b49ea58 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f412a5b670c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007f412a5bab8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007f412bf158a6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
Comment 8 Jekyll Wu 2013-11-09 04:09:38 UTC
*** Bug 317213 has been marked as a duplicate of this bug. ***
Comment 9 Pali Rohár 2013-11-18 09:23:23 UTC
Git commit 2301331ccf4a5eee71816c079667e3941cdbb3e2 by Pali Rohár.
Committed on 18/11/2013 at 09:22.
Pushed by pali into branch 'master'.

Do not try to sync metacontact which has display name source from NULL contact
Related: bug 218308, bug 254494, bug 277606

M  +1    -1    libkopete/kopetemetacontact.cpp

http://commits.kde.org/kopete/2301331ccf4a5eee71816c079667e3941cdbb3e2
Comment 10 Pali Rohár 2013-11-24 10:33:21 UTC
Git commit 1f1bf7b606915520832c386d151ddae7a5add6e5 by Pali Rohár.
Committed on 18/11/2013 at 09:22.
Pushed by pali into branch 'KDE/4.12'.

Do not try to sync metacontact which has display name source from NULL contact
Related: bug 218308, bug 254494, bug 277606
FIXED-IN: 4.12

M  +1    -1    libkopete/kopetemetacontact.cpp

http://commits.kde.org/kopete/1f1bf7b606915520832c386d151ddae7a5add6e5