Bug 306585 - Kopete crashes after editing account properties
Summary: Kopete crashes after editing account properties
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 1.2.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 06:30 UTC by dchua.yamato
Modified: 2013-06-01 21:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dchua.yamato 2012-09-11 06:30:15 UTC
Application: kopete (1.2.3)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-30-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I opened the properties window of my account and browsed through the tabs before clicking the "OK" button. Kopete crashed immediately.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe53aae5780 (LWP 5345))]

Thread 5 (Thread 0x7fe5229f3700 (LWP 5346)):
#0  0x00007fe531e2d5c4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fe531df183b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe531df1f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe531df2164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe538520426 in QEventDispatcherGlib::processEvents (this=0x7fe51c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fe5384efc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fe5384efed7 in QEventLoop::exec (this=0x7fe5229f2dd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fe5383eefa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fe5384cf9ff in QInotifyFileSystemWatcherEngine::run (this=0xd82fd0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fe5383f1fcb in QThreadPrivate::start (arg=0xd82fd0) at thread/qthread_unix.cpp:298
#10 0x00007fe5328cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fe536e604bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fe51b3a6700 (LWP 5349)):
#0  0x00007fe536e54b03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fe531df2036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe531df249a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe52044b406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fe531e139e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe5328cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fe536e604bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fe51957e700 (LWP 5351)):
#0  0x00007fe531df1fe9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fe531df2164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe538520426 in QEventDispatcherGlib::processEvents (this=0x7fe5100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#3  0x00007fe5384efc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007fe5384efed7 in QEventLoop::exec (this=0x7fe5100013c0, flags=...) at kernel/qeventloop.cpp:204
#5  0x00007fe51a27f9ba in QCA::SyncThread::run() () from /usr/lib/libqca.so.2
#6  0x00007fe5383f1fcb in QThreadPrivate::start (arg=0x10c45b0) at thread/qthread_unix.cpp:298
#7  0x00007fe5328cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007fe536e604bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe518d7d700 (LWP 5352)):
#0  0x00007fe536e6e0cb in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fe531e2d5a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe531df1851 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe531df1f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe531df2164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe538520426 in QEventDispatcherGlib::processEvents (this=0x7fe5040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fe5384efc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fe5384efed7 in QEventLoop::exec (this=0x7fe5040013c0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fe51a6be0c5 in ?? () from /usr/lib/kde4/kopete_jabber.so
#9  0x00007fe5383f1fcb in QThreadPrivate::start (arg=0x10ca960) at thread/qthread_unix.cpp:298
#10 0x00007fe5328cce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007fe536e604bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe53aae5780 (LWP 5345)):
[KCrash Handler]
#6  0x00007fe538eac89e in ?? () from /usr/lib/libkdeui.so.5
#7  0x00007fe53850a446 in QObject::event (this=0xe13330, e=<optimized out>) at kernel/qobject.cpp:1195
#8  0x00007fe5375f6894 in notify_helper (e=0x14e94b0, receiver=0xe13330, this=0x88f820) at kernel/qapplication.cpp:4559
#9  QApplicationPrivate::notify_helper (this=0x88f820, receiver=0xe13330, e=0x14e94b0) at kernel/qapplication.cpp:4531
#10 0x00007fe5375fb713 in QApplication::notify (this=0x7fffe65ec690, receiver=0xe13330, e=0x14e94b0) at kernel/qapplication.cpp:4420
#11 0x00007fe538f579e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#12 0x00007fe5384f0e9c in QCoreApplication::notifyInternal (this=0x7fffe65ec690, receiver=0xe13330, event=0x14e94b0) at kernel/qcoreapplication.cpp:876
#13 0x00007fe5384f4c6a in sendEvent (event=0x14e94b0, receiver=0xe13330) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#14 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x845440) at kernel/qcoreapplication.cpp:1500
#15 0x00007fe53851ff93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#16 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#17 0x00007fe531df1d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007fe531df20a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007fe531df2164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fe5385203bf in QEventDispatcherGlib::processEvents (this=0x883870, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#21 0x00007fe53769ed5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007fe5384efc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007fe5384efed7 in QEventLoop::exec (this=0x7fffe65ec610, flags=...) at kernel/qeventloop.cpp:204
#24 0x00007fe5384f4f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#25 0x000000000041418f in ?? ()
#26 0x00007fe536d8f76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#27 0x00000000004141f5 in _start ()

Possible duplicates by query: bug 306576, bug 306555, bug 306549, bug 306526, bug 306397.

Reported using DrKonqi
Comment 1 Pali Rohár 2013-06-01 21:34:18 UTC
SVN commit 1356753 by pali:

Wrap Edit account dialog into QPointer

* Edit account dialog using KDialog::exec() function which can lead to memory corruption and double free
* After this change Jabber edit account dialog stopped crashing when applying changes

Related: bug 306917
Related: bug 243653
Related: bug 244764
FIXED-IN: 4.11


 M  +4 -3      kopeteaccount.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1356753