Application that crashed: kopete Version of the application: 0.80.2 KDE Version: 4.3.3 (KDE 4.3.3) Qt Version: 4.6.0 Operating System: Linux 2.6.31-15-generic i686 Distribution: Ubuntu 9.10 What I was doing when the application crashed: I had set up a Bonjour/iChat network at home, with Avahi+Kopete on Linux and Bonjour+PidginPortable on Windows. Kopete doesn't seem to see any of the other network members, but they see it, so message sending only works from Windows to Linux. However, whenever I send a message from there, Kopete simply crashes. -- Backtrace: Application: Kopete (kopete), signal: Segmentation fault [Current thread is 1 (Thread 0xb787b700 (LWP 5700))] Thread 4 (Thread 0xb5e5cb70 (LWP 5705)): #0 0x008f5422 in __kernel_vsyscall () #1 0x00b5cba6 in *__GI___poll (fds=0xbddff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #2 0x065b354b in IA__g_poll (fds=0x8c346b8, nfds=1, timeout=-1) at /build/buildd/glib2.0-2.22.3/glib/gpoll.c:127 #3 0x065a656b in g_main_context_poll (context=0x8ce33d8, block=<value optimized out>, dispatch=1, self=0x8c34690) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2904 #4 g_main_context_iterate (context=0x8ce33d8, block=<value optimized out>, dispatch=1, self=0x8c34690) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2586 #5 0x065a6863 in IA__g_main_context_iteration (context=0x8ce33d8, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654 #6 0x0443feff in QEventDispatcherGlib::processEvents (this=0x8cf7a90, flags=...) at kernel/qeventdispatcher_glib.cpp:409 #7 0x044127b9 in QEventLoop::processEvents (this=0x8c1f3c0, flags=) at kernel/qeventloop.cpp:149 #8 0x04412c0a in QEventLoop::exec (this=0x8c1f3c0, flags=...) at kernel/qeventloop.cpp:201 #9 0x019d2a0a in QCA::SyncThread::run() () from /usr/lib/libqca.so.2 #10 0x0431271e in QThreadPrivate::start (arg=0x8c1f0a0) at thread/qthread_unix.cpp:244 #11 0x00c1480e in start_thread (arg=0xb5e5cb70) at pthread_create.c:300 #12 0x00b6a7ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 3 (Thread 0xb55e1b70 (LWP 5706)): #0 0x00c63e06 in *__GI_clock_gettime (clock_id=13008884, tp=0xb55e1038) at ../sysdeps/unix/clock_gettime.c:100 #1 0x0443d00b in qt_gettime () at kernel/qcore_unix.cpp:109 #2 0x044420d5 in QTimerInfoList::updateCurrentTime (this=0x8d3ac34) at kernel/qeventdispatcher_unix.cpp:340 #3 0x0443fffe in timerSourceCheckHelper (src=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:150 #4 0x065a5cd1 in IA__g_main_context_check (context=0x8d39b40, max_priority=2147483647, fds=0x8d726a0, n_fds=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2469 #5 0x065a647c in g_main_context_iterate (context=0x8d39b40, block=<value optimized out>, dispatch=1, self=0x8d3b6c8) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2588 #6 0x065a6863 in IA__g_main_context_iteration (context=0x8d39b40, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654 #7 0x0443feff in QEventDispatcherGlib::processEvents (this=0x8dbfa00, flags=...) at kernel/qeventdispatcher_glib.cpp:409 #8 0x044127b9 in QEventLoop::processEvents (this=0x8d67bb8, flags=) at kernel/qeventloop.cpp:149 #9 0x04412c0a in QEventLoop::exec (this=0x8d67bb8, flags=...) at kernel/qeventloop.cpp:201 #10 0x08260ffb in XMPP::SyncThread::run (this=0x8dbe7f8) at ../../../../../kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151 #11 0x0431271e in QThreadPrivate::start (arg=0x8dbe7f8) at thread/qthread_unix.cpp:244 #12 0x00c1480e in start_thread (arg=0xb55e1b70) at pthread_create.c:300 #13 0x00b6a7ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 2 (Thread 0xb4de0b70 (LWP 5707)): #0 0x008f5422 in __kernel_vsyscall () #1 0x00c18e15 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x00b7778d in __pthread_cond_wait (cond=0x8d25188, mutex=0x8d25170) at forward.c:139 #3 0x04313677 in QWaitConditionPrivate::wait (this=0x8ce47a8, mutex=0x8ce47a4, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #4 QWaitCondition::wait (this=0x8ce47a8, mutex=0x8ce47a4, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #5 0x083dc102 in QHostInfoAgent::run (this=0x8ce4798) at kernel/qhostinfo.cpp:252 #6 0x0431271e in QThreadPrivate::start (arg=0x8ce4798) at thread/qthread_unix.cpp:244 #7 0x00c1480e in start_thread (arg=0xb4de0b70) at pthread_create.c:300 #8 0x00b6a7ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 The current source language is "auto; currently c". Thread 1 (Thread 0xb787b700 (LWP 5700)): [KCrash Handler] #6 Kopete::Contact::account (this=0xbfdc113c) at ../../../kopete/libkopete/kopetecontact.cpp:460 #7 0x04b42af7 in BonjourContactConnection::readMessage (this=0x0, token=...) at ../../../../kopete/protocols/bonjour/bonjourcontactconnection.cpp:371 #8 0x04b42f4b in BonjourContactConnection::readData (this=0x8c45ef8, token=...) at ../../../../kopete/protocols/bonjour/bonjourcontactconnection.cpp:317 #9 0x04b43db4 in BonjourContactConnection::dataInSocket (this=0x8c45ef8) at ../../../../kopete/protocols/bonjour/bonjourcontactconnection.cpp:180 #10 0x04b31d93 in BonjourContactConnection::qt_metacall (this=0x8c45ef8, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfdc136c) at moc_bonjourcontactconnection.cpp:90 #11 0x0441940a in QMetaObject::metacall (object=0x8c45ef8, cl=QMetaObject::QueryPropertyScriptable, idx=10, argv=0xbfdc136c) at kernel/qmetaobject.cpp:237 #12 0x04427b8b in QMetaObject::activate (sender=0x929d6f8, m=0x4527c48, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3282 #13 0x044771a7 in QIODevice::readyRead (this=0x929d6f8) at .moc/release-shared/moc_qiodevice.cpp:91 #14 0x083fa5d2 in QAbstractSocketPrivate::canReadNotification (this=0x9377100) at socket/qabstractsocket.cpp:626 #15 0x083e7c5b in QAbstractSocketEngine::readNotification (this=0x8867d38) at socket/qabstractsocketengine.cpp:154 #16 0x083e9023 in QReadNotifier::event (this=0x0, e=0xbfdc17b4) at socket/qnativesocketengine.cpp:1053 #17 0x057d40fc in QApplicationPrivate::notify_helper (this=0x87c4bc8, receiver=0x8cbae70, e=0xbfdc17b4) at kernel/qapplication.cpp:4242 #18 0x057dad57 in QApplication::notify (this=0xbfdc1af4, receiver=0x8cbae70, e=0xbfdc17b4) at kernel/qapplication.cpp:3661 #19 0x00f3414a in KApplication::notify (this=0xbfdc1af4, receiver=0x8cbae70, event=0xbfdc17b4) at ../../kdeui/kernel/kapplication.cpp:302 #20 0x0441419b in QCoreApplication::notifyInternal (this=0xbfdc1af4, receiver=0x8cbae70, event=0xbfdc17b4) at kernel/qcoreapplication.cpp:704 #21 0x0444029a in QCoreApplication::sendEvent (source=0x87c7538) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #22 socketNotifierSourceDispatch (source=0x87c7538) at kernel/qeventdispatcher_glib.cpp:110 #23 0x065a2e88 in g_main_dispatch (context=0x87c6c98) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:1960 #24 IA__g_main_context_dispatch (context=0x87c6c98) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2513 #25 0x065a6730 in g_main_context_iterate (context=0x87c6c98, block=<value optimized out>, dispatch=1, self=0x87aab40) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591 #26 0x065a6863 in IA__g_main_context_iteration (context=0x87c6c98, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654 #27 0x0443fec5 in QEventDispatcherGlib::processEvents (this=0x879b4b0, flags=...) at kernel/qeventdispatcher_glib.cpp:407 #28 0x05891a15 in QGuiEventDispatcherGlib::processEvents (this=0x879b4b0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202 #29 0x044127b9 in QEventLoop::processEvents (this=0xbfdc1a54, flags=) at kernel/qeventloop.cpp:149 #30 0x04412c0a in QEventLoop::exec (this=0xbfdc1a54, flags=...) at kernel/qeventloop.cpp:201 #31 0x04416dff in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981 #32 0x057d4197 in QApplication::exec () at kernel/qapplication.cpp:3570 #33 0x08059a8c in main (argc=1, argv=0xbfdc1f24) at ../../../kopete/kopete/main.cpp:104 Reported using DrKonqi
I will look into why you cannot receive messages. It is possible that you cannot see any contacts because your firewall is preventing avahi broadcasting. You will need to open 5353/UDP in your firewall. Please paste the output of "avahi-browse -at" here.
Created attachment 38952 [details] Another Backtrace
Problem solved "itself". Yes, my firewall had all necessary ports open. It was the fact my notebook is hooked to two subnets: one for the whole family, except my Desktop Computer, and one between my notebook and said PC. Whenever 192.168.0.0 is down, I can see everyone, both in Kopete and avahi-browse. However, the crash remains, but now it occurs as soon as the opposite site leaves the chat. Also happens between two instances of kopete, but only on one site (the one that hadn't left). Added a second backtrace of one of those instances, though it looks almost the same as the first one.
The crash in Comment #2 is fixed (will be in KDE SC 4.4.1), the first backtrace is different
SVN commit 1086537 by rjarosz: Don't crash if we get message for connection without contact. Could happen if incoming port is blocked. TODO: Create contact and don't discard the message. BUG: 217423 M +6 -0 bonjourcontactconnection.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1086537
SVN commit 1086538 by rjarosz: Backport commit 1086537. Don't crash if we get message for connection without contact. Could happen if incoming port is blocked. TODO: Create contact and don't discard the message. CCBUG: 217423 M +6 -0 bonjourcontactconnection.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1086538