Bug 360384 - Kopete crashes on exit. Every time, all the time.
Summary: Kopete crashes on exit. Every time, all the time.
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2016-03-10 21:25 UTC by jeremiah
Modified: 2018-10-27 02:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.72 KB, text/plain)
2016-03-15 16:57 UTC, jeremiah
Details
jabber qpointer patch (1.84 KB, patch)
2016-03-15 23:53 UTC, Pali Rohár
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jeremiah 2016-03-10 21:25:00 UTC
Application: kopete (1.8.2)
KDE Platform Version: 4.14.17
Qt Version: 4.8.7
Operating System: Linux 4.4.3-1-default x86_64
Distribution: "openSUSE Tumbleweed (20160307) (x86_64)"

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

Quitting Kopete. From window menu (menubar is typically hidden) or  ctrl-q

Note: Possibly related: If I quite Kopete and relaunch it, it displays the status of the connection as online, with no users. The control can be toggled, but there is no effect. However, closing _this instance_ of kopete, and reopening it yet again, and the application will go online and work normally. Additionally, this "hanging instance" of Kopete will not generate a crash report. I think this may be a key point: Kopete crashes every time it successfully goes online.

Additional Note: This problem has followed me from Debian Jessie's KDE4 to OpenSUSE Tumbleweed's Plasma 5.

In all other respects, application behavior is normal and highly reliable.

- Custom settings of the application:

- the system tray features are switched off. the application.
- two server accounts are configured -- a proper jabber sever and google's... thing.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0c39985900 (LWP 2458))]

Thread 3 (Thread 0x7f0c1fafb700 (LWP 2509)):
#0  0x00007f0c30d11539 in g_mutex_lock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f0c30ccde56 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0c30cce2f8 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0c30cce39c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f0c3739e27e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f0c3736e401 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f0c3736e715 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#7  0x00007f0c206a67f4 in QCA::SyncThread::run() () at /usr/lib64/libqca.so.2
#8  0x00007f0c3726a23c in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f0c32e584a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f0c35c5dded in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f0c1f2fa700 (LWP 2512)):
#0  0x00007f0c35c5549d in poll () at /lib64/libc.so.6
#1  0x00007f0c30cce294 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0c30cce39c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0c3739e27e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#4  0x00007f0c3736e401 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007f0c3736e715 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007f0c37267a59 in QThread::exec() () at /usr/lib64/libQtCore.so.4
#7  0x00007f0c20ad53aa in  () at /usr/lib64/kde4/kopete_jabber.so
#8  0x00007f0c3726a23c in  () at /usr/lib64/libQtCore.so.4
#9  0x00007f0c32e584a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f0c35c5dded in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f0c39985900 (LWP 2458)):
[KCrash Handler]
#6  0x00007f0c38a71e74 in Kopete::Account::myself() const () at /usr/lib64/libkopete.so.4
#7  0x00007f0c38a71e89 in Kopete::Account::isConnected() const () at /usr/lib64/libkopete.so.4
#8  0x00007f0c209d6fa7 in  () at /usr/lib64/kde4/kopete_jabber.so
#9  0x00007f0c209dc37a in  () at /usr/lib64/kde4/kopete_jabber.so
#10 0x00007f0c209de0ad in  () at /usr/lib64/kde4/kopete_jabber.so
#11 0x00007f0c37382f70 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#12 0x00007f0c20a3d54b in  () at /usr/lib64/kde4/kopete_jabber.so
#13 0x00007f0c37388ab1 in QObject::event(QEvent*) () at /usr/lib64/libQtCore.so.4
#14 0x00007f0c36473f1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#15 0x00007f0c3647a9ec in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#16 0x00007f0c37dee68a in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#17 0x00007f0c3736fa3d in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#18 0x00007f0c37372e6e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQtCore.so.4
#19 0x00007f0c3739e0ee in  () at /usr/lib64/libQtCore.so.4
#20 0x00007f0c30cce0c7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007f0c30cce2f8 in  () at /usr/lib64/libglib-2.0.so.0
#22 0x00007f0c30cce39c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f0c3739e25e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#24 0x00007f0c36517986 in  () at /usr/lib64/libQtGui.so.4
#25 0x00007f0c3736e401 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#26 0x00007f0c3736e715 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#27 0x00007f0c37373f09 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#28 0x000055a044b52d3f in  ()
#29 0x00007f0c35b94610 in __libc_start_main () at /lib64/libc.so.6
#30 0x000055a044b53509 in _start ()

Reported using DrKonqi
Comment 1 Pali Rohár 2016-03-12 17:02:17 UTC
Please install debug systems and provide backtrace again.
Comment 2 jeremiah 2016-03-12 17:11:26 UTC
Instructions for doing so on OpenSUSE Tumbleweed?

On Saturday, March 12, 2016 5:02:17 PM EST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=360384
> 
> Pali Rohár <pali.rohar@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Resolution|---                         |BACKTRACE
>                  CC|                            |pali.rohar@gmail.com
>              Status|UNCONFIRMED                 |NEEDSINFO
> 
> --- Comment #1 from Pali Rohár <pali.rohar@gmail.com> ---
> Please install debug systems and provide backtrace again.
Comment 3 Pali Rohár 2016-03-12 17:20:55 UTC
Sorry, I have no idea how your distribution is working. Consult documentation or support. Basically debug symbols are often in distribution package -debug or -dbg. If your distribution does not provide them, you need to compile Kopete from source.
Comment 4 jeremiah 2016-03-15 15:54:11 UTC
Is that for kopete, or for every framework it touches?

System specific instructions would be great -- but some description of what's 
needed that is useful to mere mortals would be a fine start: Pretend I don't 
know anything about your debugging process at all.

On Saturday, March 12, 2016 5:20:55 PM EDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=360384
> 
> --- Comment #3 from Pali Rohár <pali.rohar@gmail.com> ---
> Sorry, I have no idea how your distribution is working. Consult
> documentation or support. Basically debug symbols are often in distribution
> package -debug or -dbg. If your distribution does not provide them, you
> need to compile Kopete from source.
Comment 5 Pali Rohár 2016-03-15 16:01:00 UTC
It should be application independent, but I do not instructions for your distribution... Try to look ak kopete-debug or kopete-dbg packages...
Comment 6 jeremiah 2016-03-15 16:57:07 UTC
Created attachment 97914 [details]
New crash information added by DrKonqi

kopete (1.8.2) on KDE Platform 4.14.17 using Qt 4.8.7

- What I was doing when the application crashed:

Fresh restart of system. Logged in to KDE Plasma 5 Environment. Opened Kopete. Selected Status: Online. Kopete connected to two accounts (gmail, jabber) Quit, and here we are...

- Custom settings of the application:

Referenced in previous report.

-- Backtrace (Reduced):
#6  0x00007fa7f3c2ae74 in Kopete::Account::myself() const (this=this@entry=0x556e2f979930) at /usr/src/debug/kopete-15.12.2/libkopete/kopeteaccount.cpp:539
#7  0x00007fa7f3c2ae89 in Kopete::Account::isConnected() const (this=0x556e2f979930) at /usr/src/debug/kopete-15.12.2/libkopete/kopeteaccount.cpp:499
#8  0x00007fa7d70b5fa7 in JabberCapabilitiesManager::CapabilitiesInformation::nextJid(XMPP::Jid const&, XMPP::Task const*) (this=<optimized out>, jid=..., t=t@entry=0x556e2f9f2f90) at /usr/src/debug/kopete-15.12.2/protocols/jabber/jabbercapabilitiesmanager.cpp:214
#9  0x00007fa7d70bb37a in JabberCapabilitiesManager::discoRequestFinished() (this=0x556e2f7c6730) at /usr/src/debug/kopete-15.12.2/protocols/jabber/jabbercapabilitiesmanager.cpp:486
#10 0x00007fa7d70bd0ad in JabberCapabilitiesManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kopete-15.12.2/build/protocols/jabber/jabbercapabilitiesmanager.moc:58
Comment 7 Pali Rohár 2016-03-15 19:10:29 UTC
Hm... this looks very strange. No idea why it crash.

If you can reproduce this crash at 100% please install valgrind and run in terminal kopete under valgrind as:

$ valgrind kopete --nofork

And post output from terminal.
Comment 8 jeremiah 2016-03-15 22:31:38 UTC
valgrind kopete --nofork
==11399== Memcheck, a memory error detector
==11399== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==11399== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==11399== Command: kopete --nofork
==11399== 
kopete(11399)/kdecore (KLibrary) kde4Factory: The library "/usr/lib64/kde4/
kopete_history.so" does not offer a qt_plugin_instance function.
kopete(11399)/libkopete Kopete::PluginManager::loadPluginInternal: Unable to 
find a plugin named ' "" '! 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  794 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  7 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  794 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  795 
Unknown signature value:  7 
Unknown signature value:  795 
unexpected version response
unexpected version response
QMetaObject::invokeMethod: No such method HistoryPlugin::shouldExitOnClose()
QMetaObject::invokeMethod: No such method JabberProtocol::shouldExitOnClose()
QMetaObject::invokeMethod: No such method Kopete::Plugin::shouldExitOnClose()
QMetaObject::invokeMethod: No such method Kopete::Plugin::shouldExitOnClose()
QProcess: Destroyed while process is still running.
==11399== Invalid read of size 8
==11399==    at 0x596EE70: Kopete::Account::myself() const (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x596EE88: Kopete::Account::isConnected() const (in /usr/
lib64/libkopete.so.4.14.17)
==11399==    by 0x1F0B4FA6: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F0BA379: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F0BC0AC: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x70BDF6F: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x1F11B54A: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x70C3AB0: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399==    by 0x786CF1B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/lib64/libQtGui.so.4.8.7)
==11399==    by 0x78739EB: QApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libQtGui.so.4.8.7)
==11399==    by 0x6618689: KApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libkdeui.so.5.14.17)
==11399==    by 0x70AAA3C: QCoreApplication::notifyInternal(QObject*, QEvent*) 
(in /usr/lib64/libQtCore.so.4.8.7)
==11399==  Address 0x1c7b09c0 is 16 bytes inside a block of size 1,200 free'd
==11399==    at 0x4C2B82B: operator delete(void*) (in /usr/lib64/valgrind/
vgpreload_memcheck-amd64-linux.so)
==11399==    by 0x70C3AE7: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399==    by 0x786CF1B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/lib64/libQtGui.so.4.8.7)
==11399==    by 0x78739EB: QApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libQtGui.so.4.8.7)
==11399==    by 0x6618689: KApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libkdeui.so.5.14.17)
==11399==    by 0x70AAA3C: QCoreApplication::notifyInternal(QObject*, QEvent*) 
(in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x70ADE6D: QCoreApplicationPrivate::sendPostedEvents(QObject*, 
int, QThreadData*) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x70D90ED: ??? (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0xD6B60C6: g_main_context_dispatch (in /usr/lib64/
libglib-2.0.so.0.4600.2)
==11399==    by 0xD6B62F7: ??? (in /usr/lib64/libglib-2.0.so.0.4600.2)
==11399==    by 0xD6B639B: g_main_context_iteration (in /usr/lib64/
libglib-2.0.so.0.4600.2)
==11399==    by 0x70D925D: 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in 
/usr/lib64/libQtCore.so.4.8.7)
==11399==  Block was alloc'd at
==11399==    at 0x4C2A6CF: operator new(unsigned long) (in /usr/lib64/
valgrind/vgpreload_memcheck-amd64-linux.so)
==11399==    by 0x1F06EC11: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x59765C7: 
Kopete::AccountManager::slotPluginLoaded(Kopete::Plugin*) (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x5976C6B: ??? (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x70BDF6F: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x59B44BE: 
Kopete::PluginManager::pluginLoaded(Kopete::Plugin*) (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x59BD4E1: Kopete::PluginManager::loadPluginInternal(QString 
const&) (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x59BE992: Kopete::PluginManager::slotLoadNextPlugin() (in /
usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x70C3AB0: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399==    by 0x786CF1B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/lib64/libQtGui.so.4.8.7)
==11399==    by 0x78739EB: QApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libQtGui.so.4.8.7)
==11399==    by 0x6618689: KApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libkdeui.so.5.14.17)
==11399== 
==11399== Invalid read of size 8
==11399==    at 0x596EE74: Kopete::Account::myself() const (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x596EE88: Kopete::Account::isConnected() const (in /usr/
lib64/libkopete.so.4.14.17)
==11399==    by 0x1F0B4FA6: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F0BA379: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F0BC0AC: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x70BDF6F: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x1F11B54A: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x70C3AB0: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399==    by 0x786CF1B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/lib64/libQtGui.so.4.8.7)
==11399==    by 0x78739EB: QApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libQtGui.so.4.8.7)
==11399==    by 0x6618689: KApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libkdeui.so.5.14.17)
==11399==    by 0x70AAA3C: QCoreApplication::notifyInternal(QObject*, QEvent*) 
(in /usr/lib64/libQtCore.so.4.8.7)
==11399==  Address 0x1c7b0fb8 is 72 bytes inside a block of size 216 free'd
==11399==    at 0x4C2B82B: operator delete(void*) (in /usr/lib64/valgrind/
vgpreload_memcheck-amd64-linux.so)
==11399==    by 0x597277C: Kopete::Account::~Account() (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x1F078E21: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F078E38: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x70C3AE7: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399==    by 0x786CF1B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (in /usr/lib64/libQtGui.so.4.8.7)
==11399==    by 0x78739EB: QApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libQtGui.so.4.8.7)
==11399==    by 0x6618689: KApplication::notify(QObject*, QEvent*) (in /usr/
lib64/libkdeui.so.5.14.17)
==11399==    by 0x70AAA3C: QCoreApplication::notifyInternal(QObject*, QEvent*) 
(in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x70ADE6D: QCoreApplicationPrivate::sendPostedEvents(QObject*, 
int, QThreadData*) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x70D90ED: ??? (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0xD6B60C6: g_main_context_dispatch (in /usr/lib64/
libglib-2.0.so.0.4600.2)
==11399==  Block was alloc'd at
==11399==    at 0x4C2A6CF: operator new(unsigned long) (in /usr/lib64/
valgrind/vgpreload_memcheck-amd64-linux.so)
==11399==    by 0x596E554: Kopete::Account::Account(Kopete::Protocol*, QString 
const&) (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x59B27EC: 
Kopete::PasswordedAccount::PasswordedAccount(Kopete::Protocol*, QString 
const&, bool) (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x1F077010: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x1F06EC22: ??? (in /usr/lib64/kde4/kopete_jabber.so)
==11399==    by 0x59765C7: 
Kopete::AccountManager::slotPluginLoaded(Kopete::Plugin*) (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x5976C6B: ??? (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x70BDF6F: QMetaObject::activate(QObject*, QMetaObject const*, 
int, void**) (in /usr/lib64/libQtCore.so.4.8.7)
==11399==    by 0x59B44BE: 
Kopete::PluginManager::pluginLoaded(Kopete::Plugin*) (in /usr/lib64/
libkopete.so.4.14.17)
==11399==    by 0x59BD4E1: Kopete::PluginManager::loadPluginInternal(QString 
const&) (in /usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x59BE992: Kopete::PluginManager::slotLoadNextPlugin() (in /
usr/lib64/libkopete.so.4.14.17)
==11399==    by 0x70C3AB0: QObject::event(QEvent*) (in /usr/lib64/
libQtCore.so.4.8.7)
==11399== 
QProcess: Destroyed while process is still running.
==11399== 
==11399== HEAP SUMMARY:
==11399==     in use at exit: 933,805 bytes in 17,367 blocks
==11399==   total heap usage: 1,041,148 allocs, 1,023,781 frees, 229,149,754 
bytes allocated
==11399== 
==11399== LEAK SUMMARY:
==11399==    definitely lost: 9,792 bytes in 66 blocks
==11399==    indirectly lost: 238,170 bytes in 3,444 blocks
==11399==      possibly lost: 10,506 bytes in 213 blocks
==11399==    still reachable: 675,337 bytes in 13,644 blocks
==11399==                       of which reachable via heuristic:
==11399==                         newarray           : 5,800 bytes in 17 
blocks
==11399==         suppressed: 0 bytes in 0 blocks
==11399== Rerun with --leak-check=full to see details of leaked memory
==11399== 
==11399== For counts of detected and suppressed errors, rerun with: -v
==11399== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)



On Tuesday, March 15, 2016 7:10:29 PM EDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=360384
> 
> --- Comment #7 from Pali Rohár <pali.rohar@gmail.com> ---
> Hm... this looks very strange. No idea why it crash.
> 
> If you can reproduce this crash at 100% please install valgrind and run in
> terminal kopete under valgrind as:
> 
> $ valgrind kopete --nofork
> 
> And post output from terminal.
Comment 9 Pali Rohár 2016-03-15 23:51:19 UTC
Looks like that valgrind did not find where are those debug symbols installed in your system. Try to use --extra-debuginfo-path= valgrind parameter. I need to know function names and lines instead of "??? (in /usr/lib64/kde4/kopete_jabber.so)"...

Also your last post with valgrind output is wrapped and hard to read/parse. In future rather upload it as attachment to bugzilla as text file (this should prevent wrapping).

Anyway, this crash is really strange. From that incomplete valgrind output it looks like that Qt library decided to free memory where was allocated instance of jabber account.
Comment 10 Pali Rohár 2016-03-15 23:53:50 UTC
Created attachment 97919 [details]
jabber qpointer patch

Can you try attached patch? It just adds QPointer guard for account which try to prevent use-after-free.
Comment 11 jeremiah 2016-03-16 00:07:02 UTC
Not sure how this patch would be applied. I'm using OpenSUSE supplied 
packages...

On Tuesday, March 15, 2016 11:53:50 PM EDT you wrote:
> https://bugs.kde.org/show_bug.cgi?id=360384
> 
> --- Comment #10 from Pali Rohár <pali.rohar@gmail.com> ---
> Created attachment 97919 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=97919&action=edit
> jabber qpointer patch
> 
> Can you try attached patch? It just adds QPointer guard for account which
> try to prevent use-after-free.
Comment 12 Pali Rohár 2016-03-16 12:45:46 UTC
On Wednesday 16 March 2016 00:07:02 via KDE Bugzilla wrote:
> Not sure how this patch would be applied. I'm using OpenSUSE supplied 
> packages...

Download source code of Kopete, apply patch (patch -p1 -i file) and
recompile it.

Anyway, I would really like to see symbols/function names in valgrind
output. Can you look at it? That patch is just my first attempt but
without future more information I cannot detect root of this problem.
Comment 13 Pali Rohár 2016-11-26 20:02:11 UTC
marking as waiting for info
Comment 14 Andrew Crouthamel 2018-09-26 22:21:25 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 15 Andrew Crouthamel 2018-10-27 02:31:59 UTC
Dear Bug Submitter,

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!