Bug 199281 - [PATCH] (facebook) Kopete crashes on exit if using Facebook plugin
Summary: [PATCH] (facebook) Kopete crashes on exit if using Facebook plugin
Status: RESOLVED INTENTIONAL
Alias: None
Product: kopete
Classification: Applications
Component: Facebook Plugin (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Duncan Mac-Vicar Prett
URL:
Keywords:
: 207515 215450 215511 215819 216328 216570 217115 217258 219918 224366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-07 13:41 UTC by Michael Marley
Modified: 2010-02-26 23:16 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch 1 (397 bytes, patch)
2009-09-15 07:08 UTC, Vsevolod Minkov
Details
Patch 2 (394 bytes, patch)
2009-09-15 07:08 UTC, Vsevolod Minkov
Details
New crash information added by DrKonqi (2.10 KB, text/plain)
2010-01-20 03:22 UTC, disabled account
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Marley 2009-07-07 13:41:06 UTC
Application that crashed: kopete
Version of the application: 0.70.90
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.2
Operating System: Linux 2.6.31-rc2-wl x86_64
Distribution: Ubuntu karmic (development branch)

What I was doing when the application crashed:
Kopete on KDE 4.3RC1 always crashes when the program is quit if the Kopete Facebook plugin is attached.  This behavior also occurred in KDE 4.3beta2.

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[KCrash Handler]
#5  0x0000000001fc5490 in ?? ()
#6  0x00007f14e40ac924 in ~Account (this=0x2326d30, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopeteaccount.cpp:123
#7  0x00007f14d2a54395 in ?? () from /usr/lib/kde4/kopete_facebook.so
#8  0x00007f14e22b3e9c in QObjectPrivate::deleteChildren (this=0x236cad0) at kernel/qobject.cpp:1847
#9  0x00007f14e22bc499 in ~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:836
#10 0x00007f14e410158a in ~Protocol (this=0x2378d60, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopeteprotocol.cpp:77
#11 0x00007f14d2a506d5 in ?? () from /usr/lib/kde4/kopete_facebook.so
#12 0x00007f14e40fd19b in ~PluginManagerPrivate (this=0x20d7720, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopetepluginmanager.cpp:76
#13 0x00007f14e40f69c7 in destroy () at ../../../kopete/libkopete/kopetepluginmanager.cpp:102
#14 0x00007f14e0f6475d in *__GI_exit (status=0) at exit.c:75
#15 0x00007f14e0f4c5ed in __libc_start_main (main=0x412f60 <main>, argc=3, ubp_av=0x7ffff5c1b308, init=0x42d850 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7ffff5c1b2f8) at libc-start.c:252
#16 0x0000000000412e99 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Vsevolod Minkov 2009-09-13 09:16:03 UTC
Confirm. If I detach my facebook plugin kopete stops crashing. Uhh... Thanks :)
Comment 2 m.wege 2009-09-14 17:48:41 UTC
Any chance this crash is going to be fixed soon? I love the facebook plugin, but it is really anyoing with this crash, because changes (associations from a facebook-contact with another contact and addressbook associations) get lost with the crash.
Comment 3 Vsevolod Minkov 2009-09-15 07:08:35 UTC
Created attachment 36959 [details]
Patch 1
Comment 4 Vsevolod Minkov 2009-09-15 07:08:57 UTC
Created attachment 36960 [details]
Patch 2
Comment 5 Vsevolod Minkov 2009-09-15 07:09:21 UTC
Hi again! Yesterday I was searching for a problem in the sources and maybe found it. These patches are works for me... Maybe somebody find these patches useful too. I write to Duncan and I think this bug will go away. Thanks to everybody! :)
Comment 6 Bruno Bigras 2009-11-15 20:08:12 UTC
*** Bug 207515 has been marked as a duplicate of this bug. ***
Comment 7 Bruno Bigras 2009-11-15 23:14:21 UTC
This bug seem to be fixed with one of the lasts commits on github.

There's also a new package for Kubuntu in karmic-proposed (kopete-facebook 0.1.4-0ubuntu1.1) which contains the fixes.

Is anyone still having this crash with the latest code from http://github.com/dmacvicar/kopete-facebook or with the new package?
Comment 8 m.wege 2009-11-16 11:01:34 UTC
With the new package there is no crash anymore on exit.
Comment 9 m.wege 2009-11-16 11:10:18 UTC
Sorry, I have to correct myself. The crash on exit still occurs. But may it is a different one. I just had the crash, when I had problems with the plugin to connect to facebook or to reconnect, I do not know if it was connected in the first place. It that case the plugin did not present an error message. It just did not connect, it did not react on my attempts to pull it offline or to change the status.
Comment 10 m.wege 2009-11-16 11:11:48 UTC
Here is the backtrace:

Application: Kopete (kopete), signal: Segmentation fault
[KCrash Handler]
#6  0x001e91a6 in ~Account (this=0xbe64c58, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopeteaccount.cpp:123
#7  0x00238385 in ~PasswordedAccount (this=0xbe64c58, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopetepasswordedaccount.cpp:42
#8  0x01c0f1fa in ?? () from /usr/lib/kde4/kopete_facebook.so
#9  0x0114046f in QObjectPrivate::deleteChildren (this=0xbe64c58) at kernel/qobject.cpp:1847
#10 0x011487cf in ~QObject (this=0xa350690, __in_chrg=<value optimized out>) at kernel/qobject.cpp:836
#11 0x0023a560 in ~Plugin (this=0xa350690, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopeteplugin.cpp:44
#12 0x00245bc3 in ~Protocol (this=0xa350690, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopeteprotocol.cpp:77
#13 0x01c0a068 in ?? () from /usr/lib/kde4/kopete_facebook.so
#14 0x002414c4 in ~PluginManagerPrivate (this=0x866a6d8, __in_chrg=<value optimized out>) at ../../../kopete/libkopete/kopetepluginmanager.cpp:76
#15 0x0023a97a in destroy () at ../../../kopete/libkopete/kopetepluginmanager.cpp:102
#16 0x001b244b in ~KCleanUpGlobalStatic (this=0x287cd4, __in_chrg=<value optimized out>) at /usr/include/kglobal.h:62
#17 0x01c8405f in __run_exit_handlers (status=0, listp=0x1d95304, run_list_atexit=true) at exit.c:78
#18 0x01c840cf in *__GI_exit (status=0) at exit.c:100
#19 0x01c6bb5e in __libc_start_main (main=0x8057040 <main>, argc=3, ubp_av=0xbfbc9954, init=0x80733f0 <__libc_csu_init>, fini=0x80733e0 <__libc_csu_fini>, rtld_fini=0xcc2d20 <_dl_fini>, 
    stack_end=0xbfbc994c) at libc-start.c:252
#20 0x08056fa1 in _start () at ../sysdeps/i386/elf/start.S:119
Comment 11 m.wege 2009-11-16 11:16:36 UTC
Ups, sorry I just noticed that the backtrace was marked as useless. I keep the bug reporting assistant open today. So if someone tells me what debug package is need, I am still able to get a better one. Problem: If it is the backtrace of the plugin itself, it seems like that Kubuntu does not provide a debug package for that.
Comment 12 Bruno Bigras 2009-11-16 18:11:02 UTC
kdenetwork-dbg(In reply to comment #11)
> Ups, sorry I just noticed that the backtrace was marked as useless. I keep the
> bug reporting assistant open today. So if someone tells me what debug package
> is need, I am still able to get a better one. Problem: If it is the backtrace
> of the plugin itself, it seems like that Kubuntu does not provide a debug
> package for that.

You could try with kdenetwork-dbg
Comment 13 m.wege 2009-11-17 14:33:26 UTC
That is installed already. Just seems like there is no debug for kopete-facebook-plugin comming with Kubuntu.
Comment 14 Bruno Bigras 2009-11-17 16:49:58 UTC
(In reply to comment #9)
> Sorry, I have to correct myself. The crash on exit still occurs. But may it is
> a different one. I just had the crash, when I had problems with the plugin to
> connect to facebook or to reconnect, I do not know if it was connected in the
> first place. It that case the plugin did not present an error message. It just
> did not connect, it did not react on my attempts to pull it offline or to
> change the status.

I think this crash can be reproduced when the connection stop working and we stop Kopete just after that.
Comment 15 m.wege 2009-11-19 11:07:58 UTC
Ye, you are right. I know had it more than once. So now some whose distro delievers debug packages for the package needs to collect the backtrace.
Comment 16 Dario Andres 2009-11-21 03:32:28 UTC
*** Bug 215511 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-11-21 18:01:50 UTC
*** Bug 215450 has been marked as a duplicate of this bug. ***
Comment 18 Dario Andres 2009-11-23 13:44:08 UTC
*** Bug 215819 has been marked as a duplicate of this bug. ***
Comment 19 Dario Andres 2009-11-27 14:12:05 UTC
*** Bug 216328 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2009-12-02 21:31:57 UTC
*** Bug 217115 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-12-04 00:34:08 UTC
*** Bug 217258 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2009-12-06 22:19:10 UTC
*** Bug 216570 has been marked as a duplicate of this bug. ***
Comment 23 Roman Jarosz 2009-12-24 13:07:14 UTC
*** Bug 219918 has been marked as a duplicate of this bug. ***
Comment 24 disabled account 2010-01-20 03:22:57 UTC
Created attachment 40066 [details]
New crash information added by DrKonqi

Since I use the Facebook-Plugin, everytime I close Kopete, it hangs for several seconds, sometimes it crashes.
Comment 25 Jon Nelson 2010-01-26 19:16:19 UTC
See bug 224366 for lots of good debug info. Marking 224366 as a duplicate of this bug.
Comment 26 Jon Nelson 2010-01-26 19:16:33 UTC
*** Bug 224366 has been marked as a duplicate of this bug. ***
Comment 27 M. P. Čtyři 2010-02-26 18:27:57 UTC
Is there any reason not to close this bug, now that Facebook chat is XMPP-based?
Comment 28 Bruno Bigras 2010-02-26 23:16:29 UTC
(In reply to comment #27)
> Is there any reason not to close this bug, now that Facebook chat is
> XMPP-based?

I think you are right. I'm closing this bug and I'll check if we can remove the plugin from the tracker.