Bug 265256 - KDevelop crash with qmake projects
Summary: KDevelop crash with qmake projects
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.2.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 07:49 UTC by Andrey
Modified: 2011-02-12 19:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2011-02-03 07:49:13 UTC
Application: kdevelop (4.2.0)
KDE Platform Version: 4.5.3 (KDE 4.5.3)
Qt Version: 4.7.0
Operating System: Linux 2.6.32-28-generic x86_64
Distribution: Ubuntu 10.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I change my *.pro file, choose from menu run QMake, and press a build button. KDevelop and qmake plugin both build from git (kdevelop 4.2 branch, qmake plugin master branch).

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f4dcb88a760 (LWP 2725))]

Thread 11 (Thread 0x7f4dac1c7700 (LWP 2733)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f4dc73d8e12 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc3ad167b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x3902770) at /home/andrey/src/kdevplatform/language/duchain/duchain.cpp:286
#3  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f4d9bfd2700 (LWP 2835)):
#0  0x00007f4dc0985f29 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#1  0x00007f4dc0986318 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f4dc09868fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f4dc74f71d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f4dc74c9dd2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f4dc74ca1bc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f4dc73d536d in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f4d9b7d1700 (LWP 2836)):
#0  0x00007f4dc714aa2d in __pthread_mutex_unlock_usercnt (mutex=0x451d4b8) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x451d4b8) at pthread_mutex_unlock.c:290
#2  0x00007f4dc0985b01 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0x00007f4dc09864c3 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f4dc09868fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007f4dc74f71d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f4dc74c9dd2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f4dc74ca1bc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007f4dc73d536d in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f4d9c7d3700 (LWP 2929)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f4d97532700 (LWP 2930)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f4d9cfd4700 (LWP 2942)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dbf6352be in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f4dbf6353d9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f4da6a89700 (LWP 5788)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#8  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f4d97d33700 (LWP 5789)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4d93027700 (LWP 5790)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc9cdffa4 in ?? () from /usr/lib/libthreadweaver.so.4
#7  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#8  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#9  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4d92826700 (LWP 5791)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4dc73d8eab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4dc9cdcd84 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f4dc9cdff8b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f4dc9cde4ff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f4dc9cdea58 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f4dc73d82ee in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f4dc71469ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f4dc57a870d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4dcb88a760 (LWP 2725)):
[KCrash Handler]
#6  QList (this=0x0) at /usr/include/qt4/QtCore/qlist.h:118
#7  QStringList (this=0x0) at /usr/include/qt4/QtCore/qstringlist.h:71
#8  KDevelop::IPlugin::extensions (this=0x0) at /home/andrey/src/kdevplatform/interfaces/iplugin.cpp:155
#9  0x00007f4daaee5cfb in KDevelop::IPlugin::extension<KDevelop::IProjectBuilder> (this=<value optimized out>) at /usr/local/include/kdevplatform/interfaces/iplugin.h:183
#10 CMakeManager::builder (this=<value optimized out>) at /home/andrey/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:634
#11 0x00007f4dc40b9638 in KDevelop::BuilderJobPrivate::addJob (this=0x7b64ca0, t=<value optimized out>, item=0x419b950) at /home/andrey/src/kdevplatform/project/builderjob.cpp:70
#12 0x00007f4d9970d9a9 in BuildItemBuilderJob (this=0x8aba0d0, t=KDevelop::BuilderJob::Build, items=...) at /home/andrey/src/kdevplatform/plugins/projectmanagerview/builditembuilderjob.cpp:35
#13 0x00007f4d996fe1d8 in ProjectManagerViewPlugin::runBuilderJob (this=<value optimized out>, t=KDevelop::BuilderJob::Build)
    at /home/andrey/src/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp:348
#14 0x00007f4d99702bbc in ProjectManagerViewPlugin::qt_metacall (this=0x4803e40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff27d40b00)
    at /home/andrey/src/kdevplatform/build/plugins/projectmanagerview/projectmanagerviewplugin.moc:109
#15 0x00007f4dc74e2da7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x00007f4dc6612002 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#17 0x00007f4dc66136fb in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#18 0x00007f4dc69ee2da in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007f4dc69ee58c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f4dc6abd4fa in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f4dc666f48e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f4dc66196ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007f4dc661f9fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007f4dc7cae926 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#25 0x00000000004052e9 in KDevelopApplication::notify (this=0x7fff27d423b0, receiver=0x38dad70, event=0x7fff27d414a0) at /home/andrey/src/kdevelop/app/main.cpp:90
#26 0x00007f4dc74cb0ac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00007f4dc661e4ae in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#28 0x00007f4dc66a14a5 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f4dc669fddc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007f4dc66cc012 in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f4dc09828c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#32 0x00007f4dc0986748 in ?? () from /lib/libglib-2.0.so.0
#33 0x00007f4dc09868fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#34 0x00007f4dc74f7183 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007f4dc66cb97e in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f4dc74c9dd2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007f4dc74ca1bc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007f4dc74ce26b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#39 0x000000000040b683 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/andrey/src/kdevelop/app/main.cpp:468

Reported using DrKonqi
Comment 1 Milian Wolff 2011-02-03 15:06:07 UTC
crashes in cmake manager though - do you also have a cmake project open?
Comment 2 Andrey 2011-02-04 20:28:37 UTC
yes, I have not thought about it. I`ll try to close other project, this could be a reason.
Comment 3 Andrey 2011-02-12 13:49:25 UTC
I check it. It`s happens only under Gnome desktop and the problem is irrelevant with type of opened projects. Under KDE all work fine.
Comment 4 Milian Wolff 2011-02-12 19:51:28 UTC
ah, just seen this: 

/usr/local/include/kdevplatform/interfaces/iplugin.h:183

vs

/home/andrey/src/kdevplatform/build/plugins/projectmanagerview/projectmanagerviewplugin.moc:109

shows pretty clear that you have a system wide installation (maybe of different version) and mix it with a handcompiled version. Don't do that. remove the system wide installation.