Bug 311447

Summary: SEGV while creating a new .cpp file through document window popup context menu [QMetaObject::changeGuard]
Product: [Applications] kdevelop Reporter: Nikolay <Nick.Shustov>
Component: file createAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: crash CC: kfunk, Nick.Shustov
Priority: NOR    
Version: 4.4.1   
Target Milestone: 4.3.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nikolay 2012-12-10 02:47:13 UTC
Steps to reproduce:
(1) Create a new project with application named "test" via:
- Project > New From Template > Standard (Terminal, CMake C++)
- no version control system
- default values in "Configure a build directory" dialog
(2) New project is created, a new document window for main.cpp is opened.
Right-click in the whitespace of the main.cpp document window.
(3) Context menu pops up. Click "project test".
(4) Another context menu pops up. Click "Create File".
(5) "Create File" dialog pops up. Enter "window.cpp" as the file name and click "OK" button.
Observe KDE Crash Handler reporting segmentation fault with the following info:



Reproducible: Always

Steps to Reproduce:
1. Create a new project with application named "test" via:
- Project > New From Template > Standard (Terminal, CMake C++)
- no version control system
- default values in "Configure a build directory" dialog
2. New project is created, a new document window for main.cpp is opened.
Right-click in the whitespace of the main.cpp document window.
3. Context menu pops up. Click "project test".
4. Another context menu pops up. Click "Create File".
5. "Create File" dialog pops up. Enter "window.cpp" as the file name and click "OK" button.
Actual Results:  
KDevelop closes, KDE Crash Handler reports segmentation fault.

Expected Results:  
A new "window.cpp" file is created and handled by KDevelop (added to the project, opened in a new document window etc.)

Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f03c7947780 (LWP 12807))]

Thread 14 (Thread 0x7f03c2572700 (LWP 12808)):
#0  0x0000003ab8e0ca8e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e828b5 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f03c82b6c7a in ?? () from /usr/lib64/libkdevplatformlanguage.so.6
#3  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7f03b72e1700 (LWP 12809)):
#0  0x0000003ab82e4930 in poll () from /lib64/libc.so.6
#1  0x0000003abba4aaa5 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003abba4abc8 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x0000003ac1fb5237 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003ac1f846a8 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x0000003ac1f84985 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x0000003ac1e7f38a in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7f03b6ae0700 (LWP 12810)):
#0  0x0000003ab82e4930 in poll () from /lib64/libc.so.6
#1  0x0000003abba4aaa5 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003abba4abc8 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x0000003ac1fb5237 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003ac1f846a8 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x0000003ac1f84985 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x0000003ac1e7f38a in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f03b5aa2700 (LWP 12816)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ae194f2db in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2  0x0000003ae194f319 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f03b4d3f700 (LWP 12822)):
#0  0x0000003ab8e0b9e2 in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x0000003abba89421 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003abba4a288 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x0000003abba4a9c9 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x0000003abba4abc8 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x0000003ac1fb5237 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x0000003ac1f846a8 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ac1f84985 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ac1e7f38a in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#9  0x0000003ac1f632de in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#11 0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f03a6736700 (LWP 12876)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000368ab99f9b in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#3  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f03a5e35700 (LWP 12877)):
#0  0x0000003ab82e4930 in poll () from /lib64/libc.so.6
#1  0x0000003abba4aaa5 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003abba4abc8 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x0000003ac1fb5237 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003ac1f846a8 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x0000003ac1f84985 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x0000003ac1e7f38a in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f03a5224700 (LWP 13101)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#8  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f03a4a23700 (LWP 13271)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f035b7fe700 (LWP 13272)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#6  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#8  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f035bfff700 (LWP 13277)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#8  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#9  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#10 0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#11 0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#12 0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f035a9dc700 (LWP 13353)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420e5e4 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f035a1db700 (LWP 13354)):
#0  0x0000003ab8e0c70c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003ac1e8292c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00000035a420ba6c in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00000035a420e5cb in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00000035a420d2cf in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00000035a420d361 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#6  0x0000003ac1e81aa5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ab8e07e14 in start_thread () from /lib64/libpthread.so.0
#8  0x0000003ab82ed7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f03c7947780 (LWP 12807)):
[KCrash Handler]
#6  0x0000003ac1f9a1c9 in QMetaObject::changeGuard(QObject**, QObject*) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003ac7e1eaa9 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#8  0x0000003b381255f8 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libkdeui.so.5
#9  0x0000003ac7a2e13c in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x0000003ac7e1fc8b in QMenu::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x0000003ac79db644 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x0000003ac79e0ccd in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#13 0x0000003b38060536 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#14 0x0000003ac1f85a1c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#15 0x0000003ac79dc54a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#16 0x0000003ac7a5c405 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#17 0x0000003ac7a5a7c0 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#18 0x0000003ac7a83392 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#19 0x0000003abba4a7b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#20 0x0000003abba4ab08 in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x0000003abba4abc8 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#22 0x0000003ac1fb51e1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#23 0x0000003ac7a83022 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#24 0x0000003ac1f846a8 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#25 0x0000003ac1f84985 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#26 0x0000003ac1f89605 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#27 0x0000000000411f9e in _start ()
Comment 1 Kevin Funk 2012-12-10 10:50:08 UTC
Confirmed.

Probably a similar issues as the one here: https://bugs.kde.org/show_bug.cgi?id=218310
(see last comment for fix).

I'll have a look.
Comment 2 Kevin Funk 2012-12-10 10:59:14 UTC
Detailled backtrace:
#0  0x00007ffff5a64914 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x400000009) at ../../include/QtCore/../../../../src/qt/src/corelib/tools/qscopedpointer.h:135
#1  0x00007ffff5a7e1ec in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../../../src/qt/src/corelib/global/qglobal.h:2455
#2  0x00007ffff5a7e282 in QObject::d_func (this=0x400000001) at ../../include/QtCore/../../../../src/qt/src/corelib/kernel/qobject.h:115
#3  0x00007ffff5a7e2ba in QObjectPrivate::get (o=0x400000001) at ../../include/QtCore/private/../../../../../src/qt/src/corelib/kernel/qobject_p.h:178
#4  0x00007ffff5bdead3 in QMetaObject::changeGuard (ptr=0x405dad0, o=0x0) at /home/krf/devel/src/qt/src/corelib/kernel/qobject.cpp:460
#5  0x00007ffff4b96c1e in QPointer<QAction>::operator= (this=0x405dad0, p=0x0) at ../../include/QtCore/../../../../src/qt/src/corelib/kernel/qpointer.h:68
#6  0x00007ffff5162372 in QMenuPrivate::activateAction (this=0x405d810, action=0x60a09f0, action_e=QAction::Trigger, self=true) at /home/krf/devel/src/qt/src/gui/widgets/qmenu.cpp:1143
#7  0x00007ffff5166c78 in QMenu::mouseReleaseEvent (this=0x4134940, e=0x7fffffffce80) at /home/krf/devel/src/qt/src/gui/widgets/qmenu.cpp:2372
#8  0x00007ffff6271090 in KMenu::mouseReleaseEvent (this=0x4134940, e=0x7fffffffce80) at ../../kdeui/widgets/kmenu.cpp:464
#9  0x00007ffff4c094a1 in QWidget::event (this=0x4134940, event=0x7fffffffce80) at /home/krf/devel/src/qt/src/gui/kernel/qwidget.cpp:8375
#10 0x00007ffff516732d in QMenu::event (this=0x4134940, e=0x7fffffffce80) at /home/krf/devel/src/qt/src/gui/widgets/qmenu.cpp:2481
#11 0x00007ffff4ba32f0 in QApplicationPrivate::notify_helper (this=0x6ce720, receiver=0x4134940, e=0x7fffffffce80) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:4562
#12 0x00007ffff4ba1038 in QApplication::notify (this=0x7fffffffdcc0, receiver=0x4134940, e=0x7fffffffce80) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:4105
#13 0x00007ffff61b81d6 in KApplication::notify (this=0x7fffffffdcc0, receiver=0x4134940, event=0x7fffffffce80) at ../../kdeui/kernel/kapplication.cpp:311
#14 0x00007ffff5bc6a6c in QCoreApplication::notifyInternal (this=0x7fffffffdcc0, receiver=0x4134940, event=0x7fffffffce80) at /home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:946
#15 0x00007ffff4ba5eff in QCoreApplication::sendSpontaneousEvent (receiver=0x4134940, event=0x7fffffffce80) at ../../include/QtCore/../../../../src/qt/src/corelib/kernel/qcoreapplication.h:234
#16 0x00007ffff4b9f5a6 in QApplicationPrivate::sendMouseEvent (receiver=0x4134940, event=0x7fffffffce80, alienWidget=0x0, nativeWidget=0x4134940, buttonDown=0x7ffff59e43b8 <qt_button_down>, lastMouseRece
iver=..., spontaneous=true) at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:3171
(gdb) 0x4134940, event=0x7fffffffd560) at /home/krf/devel/src/qt/src/gui/kernel/qapplication_x11.cpp:4450
#18 0x00007ffff4c42b19 in QApplication::x11ProcessEvent (this=0x7fffffffdcc0, event=0x7fffffffd560) at /home/krf/devel/src/qt/src/gui/kernel/qapplication_x11.cpp:3517
#19 0x00007ffff4c7f796 in x11EventSourceDispatch (s=0x6cf8f0, callback=0x0, user_data=0x0) at /home/krf/devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#20 0x00007fffee309ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fffee309de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fffee309ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007ffff5c0382e in QEventDispatcherGlib::processEvents (this=0x6ce6e0, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:426
#24 0x00007ffff4c7fb5e in QGuiEventDispatcherGlib::processEvents (this=0x6ce6e0, flags=...) at /home/krf/devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007ffff5bc3e6c in QEventLoop::processEvents (this=0x7fffffffd8b0, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventloop.cpp:149
#26 0x00007ffff5bc4000 in QEventLoop::exec (this=0x7fffffffd8b0, flags=...) at /home/krf/devel/src/qt/src/corelib/kernel/qeventloop.cpp:204
#27 0x00007ffff5bc7102 in QCoreApplication::exec () at /home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:1218
#28 0x00007ffff4ba024a in QApplication::exec () at /home/krf/devel/src/qt/src/gui/kernel/qapplication.cpp:3823
#29 0x000000000040d60b in main (argc=<optimized out>, argv=<optimized out>) at /home/krf/devel/src/kdevelop/app/main.cpp:506
Comment 3 Nikolay 2012-12-10 23:42:41 UTC
(In reply to comment #1)
> Confirmed.
> 
> Probably a similar issues as the one here:
> https://bugs.kde.org/show_bug.cgi?id=218310
> (see last comment for fix).
> 
> I'll have a look.

Thank you.
As far as I understood, the last comment of https://bugs.kde.org/show_bug.cgi?id=218310 suggests it is fixed in KDE platform 4.9.3.
The "About" splash in my KDE installation does say "KDE Platform 4.9.3" - is it fair to assume that it is a different issue then?
Comment 4 Milian Wolff 2013-07-03 22:53:10 UTC
It was fixed for akregator - a different application. And yes, KDevelop is still hitting this issue very reliably with the steps you gave. Here's a valgrind report, but I'll need to redo it with more stack frames, it still is not pointing at which menu is getting deleted here...




kdevelop(7285)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/milian/projects" 
VALID MENU: false 
==7285== Invalid write of size 1
==7285==    at 0x8DB7069: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBB5D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD9494: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x89E16DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBF3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899212B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899882C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7A228A9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x8246EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8997FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A09F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A086CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==  Address 0x21ada251 is 529 bytes inside a block of size 728 free'd
==7285==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7285==    by 0x825FA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x89DDF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD7E78: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B0E589: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2083B: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B209B7: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2044D: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18378: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18222: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x54409FF: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==    by 0x544066F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285== 
==7285== Invalid read of size 8
==7285==    at 0x8DBB5E3: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD9494: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x89E16DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBF3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899212B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899882C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7A228A9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x8246EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8997FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A09F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A086CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A2F231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==  Address 0x21ada300 is 704 bytes inside a block of size 728 free'd
==7285==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7285==    by 0x825FA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x89DDF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD7E78: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B0E589: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2083B: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B209B7: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2044D: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18378: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18222: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x54409FF: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==    by 0x544066F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285== 
==7285== Invalid read of size 8
==7285==    at 0x825E2A7: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8DBB5FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD9494: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x89E16DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBF3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899212B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899882C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7A228A9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x8246EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8997FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A09F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A086CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==  Address 0x21ada300 is 704 bytes inside a block of size 728 free'd
==7285==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7285==    by 0x825FA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x89DDF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD7E78: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B0E589: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2083B: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B209B7: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2044D: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18378: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18222: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x54409FF: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==    by 0x544066F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285== 
==7285== Invalid read of size 8
==7285==    at 0x825E2F1: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8DBB5FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD9494: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x89E16DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBF3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899212B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899882C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7A228A9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x8246EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8997FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A09F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A086CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==  Address 0x21ada300 is 704 bytes inside a block of size 728 free'd
==7285==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7285==    by 0x825FA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x89DDF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD7E78: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B0E589: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2083B: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B209B7: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2044D: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18378: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18222: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x54409FF: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==    by 0x544066F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285== 
==7285== Invalid write of size 8
==7285==    at 0x825E315: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8DBB5FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD9494: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x89E16DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8DBF3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899212B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x899882C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7A228A9: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x8246EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x8997FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A09F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x8A086CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==7285==  Address 0x21ada300 is 704 bytes inside a block of size 728 free'd
==7285==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7285==    by 0x825FA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==7285==    by 0x89DDF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==7285==    by 0x7AD7E78: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B0E589: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2083B: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B209B7: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B2044D: ??? (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18378: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x7B18222: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.4)
==7285==    by 0x54409FF: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==    by 0x544066F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==7285==
Comment 5 Milian Wolff 2013-07-12 10:22:46 UTC

==23465== Thread 1:
==23465== Invalid write of size 1
==23465==    at 0x8DB5069: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD8B44: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8248F8A: QCoreApplication::exec() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x4228E1: main (in /home/milian/projects/compiled/kde4/bin/kdevelop)
==23465==  Address 0x22ec86a1 is 529 bytes inside a block of size 728 free'd
==23465==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23465==    by 0x825DA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x89DBF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD7528: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B0DC39: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FEEB: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B20067: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FAFD: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B17A28: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B178D2: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x5441A0F: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544167F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544680C: KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x41BD5CE: Sublime::MainWindow::activeViewChanged(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD57F: Sublime::MainWindow::setActiveView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD34C: Sublime::MainWindow::activateView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x54A7A97: KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x54A6014: KDevelop::DocumentControllerPrivate::openDocumentInternal(KUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x549CC35: KDevelop::DocumentController::openDocument(KUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x31F88CD3: createFile(KDevelop::ProjectFolderItem const*) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F88ECF: ProjectManagerViewPlugin::createFileFromContextMenu() (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F8A23B: ProjectManagerViewPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x898B9A2: QAction::activate(QAction::ActionEvent) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB5088: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DBC1A6: QMenu::exec(QPoint const&, QAction*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xB6DB1FC: KDevelop::Populator::populate() (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0xB6DAD51: KDevelop::Populator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465== 
==23465== Invalid read of size 8
==23465==    at 0x8DB95E3: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD8B44: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8248F8A: QCoreApplication::exec() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x4228E1: main (in /home/milian/projects/compiled/kde4/bin/kdevelop)
==23465==  Address 0x22ec8750 is 704 bytes inside a block of size 728 free'd
==23465==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23465==    by 0x825DA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x89DBF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD7528: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B0DC39: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FEEB: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B20067: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FAFD: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B17A28: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B178D2: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x5441A0F: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544167F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544680C: KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x41BD5CE: Sublime::MainWindow::activeViewChanged(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD57F: Sublime::MainWindow::setActiveView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD34C: Sublime::MainWindow::activateView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x54A7A97: KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x54A6014: KDevelop::DocumentControllerPrivate::openDocumentInternal(KUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x549CC35: KDevelop::DocumentController::openDocument(KUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x31F88CD3: createFile(KDevelop::ProjectFolderItem const*) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F88ECF: ProjectManagerViewPlugin::createFileFromContextMenu() (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F8A23B: ProjectManagerViewPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x898B9A2: QAction::activate(QAction::ActionEvent) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB5088: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DBC1A6: QMenu::exec(QPoint const&, QAction*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xB6DB1FC: KDevelop::Populator::populate() (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0xB6DAD51: KDevelop::Populator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465== 
==23465== Invalid read of size 8
==23465==    at 0x825C2A7: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DB95FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD8B44: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8248F8A: QCoreApplication::exec() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x4228E1: main (in /home/milian/projects/compiled/kde4/bin/kdevelop)
==23465==  Address 0x22ec8750 is 704 bytes inside a block of size 728 free'd
==23465==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23465==    by 0x825DA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x89DBF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD7528: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B0DC39: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FEEB: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B20067: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FAFD: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B17A28: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B178D2: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x5441A0F: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544167F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544680C: KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x41BD5CE: Sublime::MainWindow::activeViewChanged(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD57F: Sublime::MainWindow::setActiveView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD34C: Sublime::MainWindow::activateView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x54A7A97: KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x54A6014: KDevelop::DocumentControllerPrivate::openDocumentInternal(KUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x549CC35: KDevelop::DocumentController::openDocument(KUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x31F88CD3: createFile(KDevelop::ProjectFolderItem const*) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F88ECF: ProjectManagerViewPlugin::createFileFromContextMenu() (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F8A23B: ProjectManagerViewPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x898B9A2: QAction::activate(QAction::ActionEvent) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB5088: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DBC1A6: QMenu::exec(QPoint const&, QAction*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xB6DB1FC: KDevelop::Populator::populate() (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0xB6DAD51: KDevelop::Populator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465== 
==23465== Invalid read of size 8
==23465==    at 0x825C2F1: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DB95FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD8B44: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8248F8A: QCoreApplication::exec() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x4228E1: main (in /home/milian/projects/compiled/kde4/bin/kdevelop)
==23465==  Address 0x22ec8750 is 704 bytes inside a block of size 728 free'd
==23465==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23465==    by 0x825DA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x89DBF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD7528: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B0DC39: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FEEB: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B20067: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FAFD: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B17A28: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B178D2: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x5441A0F: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544167F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544680C: KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x41BD5CE: Sublime::MainWindow::activeViewChanged(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD57F: Sublime::MainWindow::setActiveView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD34C: Sublime::MainWindow::activateView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x54A7A97: KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x54A6014: KDevelop::DocumentControllerPrivate::openDocumentInternal(KUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x549CC35: KDevelop::DocumentController::openDocument(KUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x31F88CD3: createFile(KDevelop::ProjectFolderItem const*) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F88ECF: ProjectManagerViewPlugin::createFileFromContextMenu() (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F8A23B: ProjectManagerViewPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x898B9A2: QAction::activate(QAction::ActionEvent) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB5088: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DBC1A6: QMenu::exec(QPoint const&, QAction*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xB6DB1FC: KDevelop::Populator::populate() (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0xB6DAD51: KDevelop::Populator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465== 
==23465== Invalid write of size 8
==23465==    at 0x825C315: QMetaObject::changeGuard(QObject**, QObject*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DB95FC: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD8B44: KMenu::mouseReleaseEvent(QMouseEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8248F8A: QCoreApplication::exec() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x4228E1: main (in /home/milian/projects/compiled/kde4/bin/kdevelop)
==23465==  Address 0x22ec8750 is 704 bytes inside a block of size 728 free'd
==23465==    at 0x4C2A86C: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==23465==    by 0x825DA74: QObject::~QObject() (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x89DBF7B: QWidget::~QWidget() (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7AD7528: KMenu::~KMenu() (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B0DC39: KXMLGUIBuilder::removeContainer(QWidget*, QWidget*, QDomElement&, QAction*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FEEB: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B20067: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B1FAFD: ??? (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B17A28: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x7B178D2: KXMLGUIFactory::removeClient(KXMLGUIClient*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x5441A0F: KDevelop::MainWindowPrivate::mergeView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544167F: KDevelop::MainWindowPrivate::changeActiveView(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x544680C: KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x41BD5CE: Sublime::MainWindow::activeViewChanged(Sublime::View*) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD57F: Sublime::MainWindow::setActiveView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x41BD34C: Sublime::MainWindow::activateView(Sublime::View*, bool) (in /home/milian/projects/compiled/kde4/lib/libsublime.so.7.0.0)
==23465==    by 0x54A7A97: KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x54A6014: KDevelop::DocumentControllerPrivate::openDocumentInternal(KUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x549CC35: KDevelop::DocumentController::openDocument(KUrl const&, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, QString const&, KDevelop::IDocument*) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformshell.so.7.0.0)
==23465==    by 0x31F88CD3: createFile(KDevelop::ProjectFolderItem const*) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F88ECF: ProjectManagerViewPlugin::createFileFromContextMenu() (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x31F8A23B: ProjectManagerViewPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/kde4/kdevprojectmanagerview.so)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x898B9A2: QAction::activate(QAction::ActionEvent) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB5088: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DB95D8: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x89DF6DD: QWidget::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8DBD3BA: QMenu::event(QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899012B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x899682C: QApplication::notify(QObject*, QEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x7A21F59: KApplication::notify(QObject*, QEvent*) (in /usr/lib/libkdeui.so.5.10.5)
==23465==    by 0x8244EFC: QCoreApplication::notifyInternal(QObject*, QEvent*) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8995FE2: QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A07F8B: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A066CB: QApplication::x11ProcessEvent(_XEvent*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8A2D231: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xF6E9DA5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA0F7: ??? (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0xF6EA19B: g_main_context_iteration (in /usr/lib/libglib-2.0.so.0.3600.3)
==23465==    by 0x8271B84: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8A2D2E5: ??? (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0x8243B5E: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8243E54: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8DBC1A6: QMenu::exec(QPoint const&, QAction*) (in /usr/lib/libQtGui.so.4.8.5)
==23465==    by 0xB6DB1FC: KDevelop::Populator::populate() (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0xB6DAD51: KDevelop::Populator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (in /home/milian/projects/compiled/kde4/lib/libkdevplatformproject.so.7.0.0)
==23465==    by 0x8258BA7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.8.5)
==23465==    by 0x8989FD1: QAction::triggered(bool) (in /usr/lib/libQtGui.so.4.8.5)
==23465==
Comment 6 Milian Wolff 2013-07-12 10:53:07 UTC
Git commit a3885b2ee3ac4942815ad464e03854e08acdec9a by Milian Wolff.
Committed on 12/07/2013 at 10:47.
Pushed by mwolff into branch 'master'.

Cleanup and fixup ProjectUtils to not leak and not trigger crashes.

The most important part of this patch is the change to use a dynamic
allocated QMenu which is then _not_ run synchronously via exec() but
rather allocate it on the heap and use QObject/QWidget parentship
to handle the deallocation eventually.

This also fixes the memory leak of the populator objects.

And it fixes a crash since QMenu::exec applies a nested event loop
which apparently does not work nicely together with KXMLGUI. One
could also fix that by delaying (i.e. Qt::QueuedConnection) the
handling of _all_ QMenu actions - but that won't work of course.

So yeah, I think this is the best option to handle this crash.

Maybe one should even investigate whether we can/should deprecate
the usage of QMenu::exec in our codebase...

M  +30   -19   project/projectutils.cpp

http://commits.kde.org/kdevplatform/a3885b2ee3ac4942815ad464e03854e08acdec9a