Bug 209003

Summary: Kopete crashes with segmentation fault when launching notification [QObject::setParent, KSystemTrayIcon::setMovie, KNotificationItemPrivate::syncLegacySystemTrayIcon]
Product: [Unmaintained] kopete Reporter: Eugenio Mondini <emondi>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eugenio Mondini 2009-09-30 17:57:20 UTC
Application: kopete (0.99.80)
KDE Version: 4.3.69 (KDE 4.3.69 (KDE 4.4 >= 20090923)) (Compiled from sources)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-1-686 i686
Distribution: Debian GNU/Linux 5.0.3 (lenny)

What I was doing when the application crashed:
When using kopete from gnome through ssh to localhost and receiving a message it launches a notification that appears from above and it crashes with segmentation fault everytime. I'm using kopete from sources and also qt from kde git branch.

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 0 (LWP 5246)]

Thread 3 (Thread 0xb119ab90 (LWP 5405)):
#0  0xb6ba4f96 in __pthread_mutex_unlock_usercnt () from /lib/i686/cmov/libpthread.so.0
#1  0xb58963b1 in IA__g_main_context_check (context=0x8de2328, max_priority=2147483647, fds=0x8b2ba58, n_fds=1) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2321
#2  0xb5896c9d in g_main_context_iterate (context=0x8de2328, block=1, dispatch=1, self=0x8d646f0) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2445
#3  0xb5896f28 in IA__g_main_context_iteration (context=0x8de2328, may_block=1) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2511
#4  0xb6d8063e in QEventDispatcherGlib::processEvents (this=0x8d646e0, flags={i = -1323720168}) at kernel/qeventdispatcher_glib.cpp:329
#5  0xb6d45a14 in QEventLoop::processEvents (this=0x8d85d10, flags={i = -1323720092}) at kernel/qeventloop.cpp:149
#6  0xb6d45c86 in QEventLoop::exec (this=0x8d85d10, flags={i = -1323719992}) at kernel/qeventloop.cpp:201
#7  0xb25b76a8 in QCA::SyncThread::run () from /home/kde-devel/kde/lib/libqca.so.2
#8  0xb6c313c4 in QThreadPrivate::start (arg=0x8d81b08) at thread/qthread_unix.cpp:188
#9  0xb6ba24e5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#10 0xb5e0d21e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xb0999b90 (LWP 5406)):
#0  0xb59140ac in clock_gettime () from /lib/i686/cmov/librt.so.1
#1  0xb6d835f0 in QTimerInfoList::getTime (this=0x8ed36b4, t=@0x8ed36d8) at kernel/qeventdispatcher_unix.cpp:339
#2  0xb6d83823 in QTimerInfoList::updateCurrentTime (this=0x8ed36b4) at kernel/qeventdispatcher_unix.cpp:297
#3  0xb6d81677 in timerSourceCheck (source=0x8ed3680) at kernel/qeventdispatcher_glib.cpp:157
#4  0xb58963b6 in IA__g_main_context_check (context=0x8ed9e20, max_priority=2147483647, fds=0x8ecf1e8, n_fds=1) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2323
#5  0xb5896c9d in g_main_context_iterate (context=0x8ed9e20, block=1, dispatch=1, self=0x8ed40d8) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2445
#6  0xb5896f28 in IA__g_main_context_iteration (context=0x8ed9e20, may_block=1) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2511
#7  0xb6d8063e in QEventDispatcherGlib::processEvents (this=0x8db0a40, flags={i = -1332112840}) at kernel/qeventdispatcher_glib.cpp:329
#8  0xb6d45a14 in QEventLoop::processEvents (this=0x8e62a50, flags={i = -1332112764}) at kernel/qeventloop.cpp:149
#9  0xb6d45c86 in QEventLoop::exec (this=0x8e62a50, flags={i = -1332112696}) at kernel/qeventloop.cpp:201
#10 0xb27c3062 in XMPP::SyncThread::run (this=0x8ebd670) at /home/kde-devel/kde/src/kdenetwork/kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#11 0xb6c313c4 in QThreadPrivate::start (arg=0x8ebd670) at thread/qthread_unix.cpp:188
#12 0xb6ba24e5 in start_thread () from /lib/i686/cmov/libpthread.so.0
#13 0xb5e0d21e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5387760 (LWP 5246)):
[KCrash Handler]
#6  0xb6d5f595 in QObject::setParent (this=0x8b8f9f0, parent=0x8b7aa58) at kernel/qobject.cpp:1832
#7  0xb7348efe in KSystemTrayIcon::setMovie (this=0x8b7aa58, m=0x8b8f9f0) at /home/kde-devel/kde/src/kdelibs/kdeui/notifications/ksystemtrayicon.cpp:394
#8  0xb7341e7e in KNotificationItemPrivate::syncLegacySystemTrayIcon (this=0x8b36ed8) at /home/kde-devel/kde/src/kdelibs/kdeui/notifications/knotificationitem.cpp:748
#9  0xb734372d in KNotificationItem::setStatus (this=0x8b36460, status=KNotificationItem::NeedsAttention) at /home/kde-devel/kde/src/kdelibs/kdeui/notifications/knotificationitem.cpp:105
#10 0x0805b4a9 in KopeteSystemTray::startBlink (this=0x8b36460) at /home/kde-devel/kde/src/kdenetwork/kopete/kopete/systemtray.cpp:156
#11 0x0805b974 in KopeteSystemTray::qt_metacall (this=0x8b36460, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf9a97ac) at /home/kde-devel/kde/build/kdenetwork/kopete/kopete/systemtray.moc:86
#12 0xb6d63b79 in QMetaObject::activate (sender=0x8b28268, from_signal_index=12, to_signal_index=12, argv=0xbf9a97ac) at kernel/qobject.cpp:3112
#13 0xb6d6521b in QMetaObject::activate (sender=0x8b28268, m=0xb7e44a6c, local_signal_index=8, argv=0xbf9a97ac) at kernel/qobject.cpp:3186
#14 0xb7dc23d3 in Kopete::ChatSessionManager::newEvent (this=0x8b28268, _t1=0x9062958) at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopetechatsessionmanager.moc:166
#15 0xb7dc2404 in Kopete::ChatSessionManager::postNewEvent (this=0x8b28268, e=0x9062958) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetechatsessionmanager.cpp:184
#16 0xb7d83374 in KopeteViewManager::messageAppended (this=0x8b28720, msg=@0xbf9a9c08, manager=0x8f238e8) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/private/kopeteviewmanager.cpp:400
#17 0xb7d83c1e in KopeteViewManager::qt_metacall (this=0x8b28720, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf9a9aa8)
    at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopeteviewmanager.moc:85
#18 0xb6d63b79 in QMetaObject::activate (sender=0x8b28268, from_signal_index=11, to_signal_index=11, argv=0xbf9a9aa8) at kernel/qobject.cpp:3112
#19 0xb6d6521b in QMetaObject::activate (sender=0x8b28268, m=0xb7e44a6c, local_signal_index=7, argv=0xbf9a9aa8) at kernel/qobject.cpp:3186
#20 0xb7dc2459 in Kopete::ChatSessionManager::display (this=0x8b28268, _t1=@0xbf9a9c08, _t2=0x8f238e8) at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopetechatsessionmanager.moc:159
#21 0xb7dc2753 in Kopete::ChatSessionManager::qt_metacall (this=0x8b28268, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf9a9bd8)
    at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopetechatsessionmanager.moc:95
#22 0xb6d63b79 in QMetaObject::activate (sender=0x8f238e8, from_signal_index=5, to_signal_index=6, argv=0xbf9a9bd8) at kernel/qobject.cpp:3112
#23 0xb6d63ea6 in QMetaObject::activate (sender=0x8f238e8, m=0xb7e44924, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf9a9bd8) at kernel/qobject.cpp:3206
#24 0xb7dbd4c1 in Kopete::ChatSession::messageAppended (this=0x8f238e8, _t1=@0xbf9a9c08, _t2=0x8f238e8) at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopetechatsession.moc:237
#25 0xb7dc1ef5 in Kopete::TemporaryKMMCallbackAppendMessageHandler::handleMessage (this=0x8f25920, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetechatsession.cpp:237
#26 0xb7de78d4 in Kopete::MessageHandler::handleMessageInternal (this=0x8f25920, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetemessagehandler.cpp:60
#27 0xb7de7941 in Kopete::MessageHandler::messageAccepted (this=0x8f3f730, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetemessagehandler.cpp:71
#28 0xb7de79f4 in Kopete::MessageHandler::handleMessage (this=0x8f3f730, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetemessagehandler.cpp:65
#29 0xb287189f in HistoryMessageLogger::handleMessage (this=0x8f3f730, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/plugins/history/historyplugin.cpp:105
#30 0xb7de78d4 in Kopete::MessageHandler::handleMessageInternal (this=0x8f3f730, event=0x8e25b50) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetemessagehandler.cpp:60
#31 0xb7de603e in Kopete::ProcessMessageTask::start (this=0x8f40708) at /home/kde-devel/kde/src/kdenetwork/kopete/libkopete/kopetemessagehandlerchain.cpp:166
#32 0xb7de600b in Kopete::ProcessMessageTask::qt_metacall (this=0x8f40708, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf9a9db4)
    at /home/kde-devel/kde/build/kdenetwork/kopete/libkopete/kopetemessagehandlerchain.moc:112
#33 0xb6d63b79 in QMetaObject::activate (sender=0x8c49c70, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3112
#34 0xb6d6521b in QMetaObject::activate (sender=0x8c49c70, m=0xb6e61ac8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3186
#35 0xb6d6cd75 in QSingleShotTimer::timeout (this=0x8c49c70) at .moc/debug-shared/qtimer.moc:76
#36 0xb6d6ce90 in QSingleShotTimer::timerEvent (this=0x8c49c70) at kernel/qtimer.cpp:298
#37 0xb6d60fec in QObject::event (this=0x8c49c70, e=0xbf9aa3ac) at kernel/qobject.cpp:1074
#38 0xb6137871 in QApplicationPrivate::notify_helper (this=0x8a3b3a0, receiver=0x8c49c70, e=0xbf9aa3ac) at kernel/qapplication.cpp:4056
#39 0xb6137c25 in QApplication::notify (this=0xbf9aa67c, receiver=0x8c49c70, e=0xbf9aa3ac) at kernel/qapplication.cpp:3603
#40 0xb7310aad in KApplication::notify (this=0xbf9aa67c, receiver=0x8c49c70, event=0xbf9aa3ac) at /home/kde-devel/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:302
#41 0xb6d49362 in QCoreApplication::notifyInternal (this=0xbf9aa67c, receiver=0x8c49c70, event=0xbf9aa3ac) at kernel/qcoreapplication.cpp:610
#42 0xb7a13bd5 in QCoreApplication::sendEvent () from /home/kde-devel/qt-copy/lib/libQt3Support.so.4
#43 0xb6d83e08 in QTimerInfoList::activateTimers (this=0x8a3e134) at kernel/qeventdispatcher_unix.cpp:572
#44 0xb6d815cf in timerSourceDispatch (source=0x8a3e100) at kernel/qeventdispatcher_glib.cpp:165
#45 0xb5893848 in IA__g_main_context_dispatch (context=0x8a3d4c0) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:1814
#46 0xb5896dab in g_main_context_iterate (context=0x8a3d4c0, block=1, dispatch=1, self=0x8a3aea0) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2448
#47 0xb5896f28 in IA__g_main_context_iteration (context=0x8a3d4c0, may_block=1) at /build/buildd-glib2.0_2.20.1-2-i386-hGzT8z/glib2.0-2.20.1/glib/gmain.c:2511
#48 0xb6d8061e in QEventDispatcherGlib::processEvents (this=0x8a1b8f8, flags={i = -1080384200}) at kernel/qeventdispatcher_glib.cpp:327
#49 0xb62035f8 in QGuiEventDispatcherGlib::processEvents (this=0x8a1b8f8, flags={i = -1080384152}) at kernel/qguieventdispatcher_glib.cpp:202
#50 0xb6d45a14 in QEventLoop::processEvents (this=0xbf9aa608, flags={i = -1080384076}) at kernel/qeventloop.cpp:149
#51 0xb6d45c86 in QEventLoop::exec (this=0xbf9aa608, flags={i = -1080383984}) at kernel/qeventloop.cpp:201
#52 0xb6d49cb7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#53 0xb613758a in QApplication::exec () at kernel/qapplication.cpp:3525
#54 0x0805978c in main (argc=1, argv=0xbf9aaa94) at /home/kde-devel/kde/src/kdenetwork/kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Eugenio Mondini 2009-09-30 18:05:38 UTC
Sorry, forgot to add that when in a full kde session it does not crash.
Comment 2 Dario Andres 2009-09-30 20:02:39 UTC
Merging with bug 208379. Thanks

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