Bug 188189 - Kopete crashes on an incoming Bonjour message
Summary: Kopete crashes on an incoming Bonjour message
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Unmaintained
Component: Bonjour Plugin (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords: investigated, triaged
Depends on: 188190
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-26 20:14 UTC by Dan
Modified: 2018-10-21 04:53 UTC (History)
4 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 Dan 2009-03-26 20:14:31 UTC
Version:            (using KDE 4.2.1)
Compiler:          gcc-4.3.3 
OS:                Linux
Installed from:    Compiled From Sources

When I receive a message over Bonjour kopete crashes instantly. Also, kopete does not show any Bonjour contacts in the contact list, maybe this could be related.
mDNSResponder is running.

I do not have debugging symbols enabled, but still this might be useful:
[New Thread 0xb5c22920 (LWP 29710)]
(no debugging symbols found)
kopete(29713) Kopete::IdentityManager::load: Created identity  "n06F4dgdV2"
kopete(29713) Kopete::IdleTimer::IdleTimer: Using platform idle timer
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.
Calling appendChild() on a null node does nothing.

Program exited normally.
(gdb) QLayout: Attempting to add QLayout "" to BonjourEditAccountWidget "BonjourAccountPreferences", which already has a layout
kopete(29713) DNSSD::RemoteService::resolveAsync: DNSSD::RemoteService(0x84315d0) :Starting resolve of :  "ubuntu@dk"   "_presence._tcp"   "local."
kopete(29713) DNSSD::resolve_callback: Resolve callback
kopete(29713) DNSSD::RemoteService::resolveAsync: DNSSD::RemoteService(0x8345078) :Starting resolve of :  "frodo@frodo"   "_presence._tcp"   "local."
kopete(29713) DNSSD::resolve_callback: Resolve callback
KCrash: Application 'kopete' crashing...
sock_file=/home/daniel/.kde4.2/socket-frodo/kdeinit4__0
Comment 1 Tejas Dinkar 2009-03-26 21:29:19 UTC
It would help if you could give me a backtrace. You mentioned in another bug that your contact list is empty. For security reasons, if you recieve a message from someone not in your kontact list, kopete will ignore it. But i wouldn't expect kopete to crash though. I am marking this as depending on the other bug.
Comment 2 Mathias Panzenböck 2010-02-05 01:57:28 UTC
I can confirm this (crash on every message my sister sends me with adium). I'm currently downloading the necessary debuginfos (>250 MB) and will post the backtrace then. Also I can't see my sister in the contactlist, but she says she can see me in hers. Without debuginfos I can already say so much:

Thread 1 (Thread 0x7fcc49fb6840 (LWP 2193)):
[KCrash Handler]
#5  0x00007fcc4b655a40 in Kopete::Contact::account() const () from /usr/lib64/libkopete.so.4
#6  0x00007fcc22264322 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#7  0x00007fcc22265fea in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#8  0x00007fcc22266451 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#9  0x00007fcc22267250 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#10 0x00007fcc2226720e in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#11 0x00007fcc222592fc in Kopete::MetaContact::removeContact(Kopete::Contact*, bool) () from /usr/lib64/kde4/kopete_bonjour.so
...

I use Fedora 12 x86_64 with kde-testing:
Qt: 4.5.3
KDE: 4.3.5 (KDE 4.3.5)
Kopete: 0.80.2
Linux panzi 2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Comment 3 Mathias Panzenböck 2010-02-05 02:08:05 UTC
Hmpf, because I use kde-testing there is no debuginfo for kdenetwork (only for all the libs it depends on) so I guess the backtrace will not be of much help. I will generate a full backtrace once there is the debuginfo pacakge. Oh and this crash happens every time a message to me is sent (not just every now and then, EVERY time).

Application: Kopete (kopete), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fcc49fb6840 (LWP 2193))]

Thread 5 (Thread 0x7fcc394f5710 (LWP 2446)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000380805addb in wait (this=<value optimized out>, mutex=0x22a8c58, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x22a8c58, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x0000003809e81af4 in QHostInfoAgent::run (this=0x22a8c40) at kernel/qhostinfo.cpp:260
#4  0x0000003808059d25 in QThreadPrivate::start (arg=0x22a8c40) at thread/qthread_unix.cpp:188
#5  0x00000037fe406a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00000037fd8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fcc33fff710 (LWP 2447)):
#0  0x00000038081673af in timerSourcePrepare (source=<value optimized out>, timeout=0x7fcc33ffea7c) at kernel/qeventdispatcher_glib.cpp:140
#1  0x000000380043c43a in IA__g_main_context_prepare (context=0x7fcc2c000990, priority=<value optimized out>) at gmain.c:2280
#2  0x000000380043c811 in g_main_context_iterate (context=0x7fcc2c000990, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2571
#3  0x000000380043cd3a in IA__g_main_context_iteration (context=0x7fcc2c000990, may_block=1) at gmain.c:2654
#4  0x000000380816723e in QEventDispatcherGlib::processEvents (this=0x7fcc2c0008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#5  0x000000380813d772 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x000000380813db44 in QEventLoop::exec (this=0x7fcc2c001350, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fcc3ba66c33 in QCA::SyncThread::run (this=0x2485a20) at support/syncthread.cpp:195
#8  0x0000003808059d25 in QThreadPrivate::start (arg=0x2485a20) at thread/qthread_unix.cpp:188
#9  0x00000037fe406a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00000037fd8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fcc335fe710 (LWP 2448)):
#0  0x00000037fd8d51e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000380043c9fc in g_main_context_poll (context=0x7fcc24000990, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x7fcc24000990, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2586
#3  0x000000380043cd3a in IA__g_main_context_iteration (context=0x7fcc24000990, may_block=1) at gmain.c:2654
#4  0x000000380816723e in QEventDispatcherGlib::processEvents (this=0x7fcc240008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#5  0x000000380813d772 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x000000380813db44 in QEventLoop::exec (this=0x7fcc24001350, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fcc3beb6152 in ?? () from /usr/lib64/kde4/kopete_jabber.so
#8  0x0000003808059d25 in QThreadPrivate::start (arg=0x2476b00) at thread/qthread_unix.cpp:188
#9  0x00000037fe406a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00000037fd8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fcc31004710 (LWP 2455)):
#0  0x00000037fd8d73e3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fcc3b7edd93 in posix_timer_do () at posixtimer.c:70
#2  0x00007fcc3b7eeaae in rtp_scheduler_schedule (psched=<value optimized out>) at scheduler.c:130
#3  0x00000037fe406a3a in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00000037fd8de67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fcc49fb6840 (LWP 2193)):
[KCrash Handler]
#5  0x00007fcc4b655a40 in Kopete::Contact::account() const () from /usr/lib64/libkopete.so.4
#6  0x00007fcc22264322 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#7  0x00007fcc22265fea in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#8  0x00007fcc22266451 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#9  0x00007fcc22267250 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#10 0x00007fcc2226720e in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#11 0x00007fcc222592fc in Kopete::MetaContact::removeContact(Kopete::Contact*, bool) () from /usr/lib64/kde4/kopete_bonjour.so
#12 0x000000380815408c in QMetaObject::activate (sender=0x3cbe0c0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3112
#13 0x0000003809e9f0df in QAbstractSocketPrivate::canReadNotification (this=0x3e41e80) at socket/qabstractsocket.cpp:604
#14 0x0000003809e8e271 in QReadNotifier::event (this=<value optimized out>, e=<value optimized out>) at socket/qnativesocketengine.cpp:1036
#15 0x000000380b18f65c in QApplicationPrivate::notify_helper (this=0x1ddae40, receiver=0x3b75a10, e=0x7fff6bc68560) at kernel/qapplication.cpp:4065
#16 0x000000380b1968ce in QApplication::notify (this=<value optimized out>, receiver=0x3b75a10, e=0x7fff6bc68560) at kernel/qapplication.cpp:4030
#17 0x000000380c9f68e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#18 0x000000380813ee6c in QCoreApplication::notifyInternal (this=0x7fff6bc68870, receiver=0x3b75a10, event=0x7fff6bc68560) at kernel/qcoreapplication.cpp:610
#19 0x000000380816746a in sendEvent (source=0x1de2db0) at kernel/qcoreapplication.h:213
#20 socketNotifierSourceDispatch (source=0x1de2db0) at kernel/qeventdispatcher_glib.cpp:110
#21 0x000000380043922e in g_main_dispatch (context=0x1dda920) at gmain.c:1960
#22 IA__g_main_context_dispatch (context=0x1dda920) at gmain.c:2513
#23 0x000000380043cc18 in g_main_context_iterate (context=0x1dda920, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#24 0x000000380043cd3a in IA__g_main_context_iteration (context=0x1dda920, may_block=1) at gmain.c:2654
#25 0x00000038081671e6 in QEventDispatcherGlib::processEvents (this=0x1d99330, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#26 0x000000380b221ffe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#27 0x000000380813d772 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#28 0x000000380813db44 in QEventLoop::exec (this=0x7fff6bc687c0, flags=...) at kernel/qeventloop.cpp:201
#29 0x000000380813fcd9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#30 0x00000000004144b6 in _start ()
Comment 4 Victor Mataré 2010-03-04 16:29:17 UTC
This has just worked for me for the first time, since I upgraded to 4.4.1. So maybe it's finally fixed...?
Comment 5 Mathias Panzenböck 2010-03-04 16:53:09 UTC
For me it worked sometimes using 4.4.0, but then crashed again. Kinda random. I do not have 4.4.1 yet (waiting for the fedora update).
Comment 6 Nicolas L. 2010-06-18 10:00:43 UTC
#6  0x00007fcc22264322 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#7  0x00007fcc22265fea in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#8  0x00007fcc22266451 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#9  0x00007fcc22267250 in ?? () from /usr/lib64/kde4/kopete_bonjour.so
#10 0x00007fcc2226720e in ?? () from /usr/lib64/kde4/kopete_bonjour.so

Is this bug still valid for you ? if yes :

Please install the debug package for kdenetwork and paste a new backtrace
Comment 7 Victor Mataré 2010-06-20 20:07:47 UTC
I couldn't make it crash by sending/receiving ~10 messages now (4.4.1).
Comment 8 Mathias Panzenböck 2010-06-20 20:25:57 UTC
I also tried it again and it didn't crash. :)

I use:
Fedora 12 x86_64
Qt: 4.6.2
KDE Development Platform: 4.4.4 (KDE 4.4.4)
Kopete: 1.0.0
Comment 9 Andrew Crouthamel 2018-09-20 22:14:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-10-21 04:53:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!