Bug 290446 - Crash when quitting while opening a project
Summary: Crash when quitting while opening a project
Status: RESOLVED DUPLICATE of bug 280994
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: 4.2.60
Platform: Compiled Sources Linux
: VHI crash
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 21:40 UTC by Lasse Liehu
Modified: 2012-02-12 15:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lasse Liehu 2012-01-02 21:40:20 UTC
Application: kdevelop (4.2.60)
KDE Platform Version: 4.7.95 (4.8 RC1 (4.7.95) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1.6-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I had opened a session with one project. Then when the project was being opened, I quit KDevelop and it crashed. "Happens every time" means here that I tried a few times with a few different sessions with different projects.

The crash can be reproduced every time.

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

Thread 7 (Thread 0x7f3f09041700 (LWP 1931)):
#0  0x00007f3f24972ecb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3f24c001df in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f3f20ef3a2b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x241bd30) at /w1/devel/kde-branch/src/kdevplatform/language/duchain/duchain.cpp:282
#3  0x00007f3f24bffd6b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#5  0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#6  0x00007f3f22db73ed in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f3ef31ec700 (LWP 1941)):
#0  0x00007f3f24972b54 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3f21b35bd2 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007f3f21b35c09 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#4  0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f3f22db73ed in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f3ef23a9700 (LWP 1944)):
#0  0x00007f3f24970d44 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f3f1c6f3e13 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007f3f1c6f4bed in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3f1c6f5219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f3f24d2c166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f3f24cfbe92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f3f24cfc0e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f3f24bfcd47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007f3f24cdbcdf in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f3f24bffd6b in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#11 0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#12 0x00007f3f22db73ed in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3ef0923700 (LWP 1964)):
[KCrash Handler]
#6  operator!= (value=1, this=0x64003400650048) at /usr/include/QtCore/qbasicatomic.h:75
#7  detach (this=<optimized out>) at /usr/include/QtCore/qhash.h:303
#8  insert (avalue=..., akey=..., this=0x7f3f041a6920) at /usr/include/QtCore/qhash.h:756
#9  VariableMap::insertGlobal (this=<optimized out>, varName=..., value=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/variablemap.cpp:84
#10 0x00007f3ef95ca7ba in CMakeProjectVisitor::walk (this=0x7f3ef0921f90, fc=..., line=0, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2212
#11 0x00007f3ef95cff91 in CMakeProjectVisitor::visit (this=0x7f3ef0921f90, pack=0x7f3f04aa1440) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:678
#12 0x00007f3ef95d1a2a in CMakeProjectVisitor::visit (this=0x7f3ef0921f90, pack=0x7f3f04aa1440) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:594
#13 0x00007f3ef95ca7ee in CMakeProjectVisitor::walk (this=0x7f3ef0921f90, fc=..., line=3, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2213
#14 0x00007f3ef95cc878 in CMakeProjectVisitor::visit (this=0x7f3ef0921f90, ifast=0x7f3f04e99210) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1302
#15 0x00007f3ef95ca7ee in CMakeProjectVisitor::walk (this=0x7f3ef0921f90, fc=..., line=2, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2213
#16 0x00007f3ef95cd89a in CMakeProjectVisitor::visit (this=0x7f3ef0921f90, call=0x7f3f04d91bd0) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1181
#17 0x00007f3ef95ca7ee in CMakeProjectVisitor::walk (this=0x7f3ef0921f90, fc=..., line=26, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2213
#18 0x00007f3ef95dd9d6 in CMakeParserUtils::includeScript (file=<optimized out>, parent=..., data=0x7f3f041a68f8, sourcedir=..., env=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeparserutils.cpp:175
#19 0x00007f3ef1554873 in CMakeManager::includeScript (this=0x43732e0, file=..., project=0x40b1a60, dir=..., parent=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:646
#20 0x00007f3ef1556858 in CMakeManager::parse (this=0x43732e0, item=0x4303aa0) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:701
#21 0x00007f3f214e6f09 in KDevelop::ImportProjectJobPrivate::import (this=0x4c5d0d0, folder=<optimized out>) at /w1/devel/kde-branch/src/kdevplatform/project/importprojectjob.cpp:53
#22 0x00007f3f214e6bf6 in run (this=0x4c5cb20) at /usr/include/QtCore/qtconcurrentrunbase.h:134
#23 QtConcurrent::RunFunctionTask<void>::run (this=0x4c5cb20) at /usr/include/QtCore/qtconcurrentrunbase.h:125
#24 0x00007f3f24bf3532 in ?? () from /usr/lib/libQtCore.so.4
#25 0x00007f3f24bffd6b in ?? () from /usr/lib/libQtCore.so.4
#26 0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#27 0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#28 0x00007f3f22db73ed in clone () from /lib/libc.so.6
#29 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3ef1124700 (LWP 1982)):
#0  0x00007f3f24972b54 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3f1b367cfc in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f3f1b367e29 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#4  0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f3f22db73ed in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3eef595700 (LWP 1983)):
#0  0x00007f3f22daf173 in poll () from /lib/libc.so.6
#1  0x00007f3f1c6f4d58 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f3f1c6f5219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3f24d2c166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f3f24cfbe92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f3f24cfc0e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f3f24bfcd47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f3f24bffd6b in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f3f162f92da in ?? () from /usr/lib/libGL.so.1
#9  0x00007f3f2496edf0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f3f22db73ed in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3f2895d7a0 (LWP 1930)):
#0  0x00007f3f22daf173 in poll () from /lib/libc.so.6
#1  0x00007f3f19d57ba2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f3f19d580ef in ?? () from /usr/lib/libxcb.so.1
#3  0x00007f3f19d58174 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007f3f202c9647 in _XSend () from /usr/lib/libX11.so.6
#5  0x00007f3f202bdb55 in ?? () from /usr/lib/libX11.so.6
#6  0x00007f3f202bdd32 in XPutImage () from /usr/lib/libX11.so.6
#7  0x00007f3f23f563e9 in QX11PixmapData::fromImage(QImage const&, QFlags<Qt::ImageConversionFlag>) () from /usr/lib/libQtGui.so.4
#8  0x00007f3f23f52131 in ?? () from /usr/lib/libQtGui.so.4
#9  0x00007f3f23f521d1 in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007f3f23f05f2e in QWidgetPrivate::setWindowIcon_sys(bool) () from /usr/lib/libQtGui.so.4
#11 0x00007f3f23eb4b55 in QWidget::create(unsigned long, bool, bool) () from /usr/lib/libQtGui.so.4
#12 0x00007f3f23f054d2 in QWidgetPrivate::setParent_sys(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#13 0x00007f3f23ebee23 in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#14 0x00007f3f23ebf6b2 in QWidget::setParent(QWidget*) () from /usr/lib/libQtGui.so.4
#15 0x00007f3f23ec2230 in QWidgetAction::releaseWidget(QWidget*) () from /usr/lib/libQtGui.so.4
#16 0x00007f3f242efd13 in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007f3f242efdc9 in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007f3f23eb642f in QWidget::~QWidget() () from /usr/lib/libQtGui.so.4
#19 0x00007f3f242eca59 in QToolBar::~QToolBar() () from /usr/lib/libQtGui.so.4
#20 0x00007f3f24d0f605 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#21 0x00007f3f23eb6560 in QWidget::~QWidget() () from /usr/lib/libQtGui.so.4
#22 0x00007f3f255f5e65 in KMainWindow::~KMainWindow (this=0xe56e00, __in_chrg=<optimized out>) at /w1/devel/kde-branch/src/kdelibs/kdeui/widgets/kmainwindow.cpp:467
#23 0x00007f3f26b77dc9 in Sublime::MainWindow::~MainWindow (this=0xe56e00, __vtt_parm=0x7f3f280797e8, __in_chrg=<optimized out>) at /w1/devel/kde-branch/src/kdevplatform/sublime/mainwindow.cpp:116
#24 0x00007f3f27dda12b in KDevelop::MainWindow::~MainWindow (this=0xe56e00, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /w1/devel/kde-branch/src/kdevplatform/shell/mainwindow.cpp:119
#25 0x00007f3f27dda1b9 in KDevelop::MainWindow::~MainWindow (this=0xe56e00, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /w1/devel/kde-branch/src/kdevplatform/shell/mainwindow.cpp:130
#26 0x00007f3f24d16148 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00007f3f23ebb99b in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007f3f24291deb in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007f3f25633858 in KXmlGuiWindow::event (this=0xe56e00, ev=0x518b9b0) at /w1/devel/kde-branch/src/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:126
#30 0x00007f3f23e6b854 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007f3f23e706d3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007f3f25538426 in KApplication::notify (this=0x7fffc6efa1a0, receiver=0xe56e00, event=0x518b9b0) at /w1/devel/kde-branch/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#33 0x00007f3f24cfd0ac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#34 0x00007f3f24d0094a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#35 0x00007f3f24d2bcd3 in ?? () from /usr/lib/libQtCore.so.4
#36 0x00007f3f1c6f484d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007f3f1c6f5048 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0x00007f3f1c6f5219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007f3f24d2c0ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0x00007f3f23f0ef1e in ?? () from /usr/lib/libQtGui.so.4
#41 0x00007f3f24cfbe92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0x00007f3f24cfc0e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0x00007f3f24d00c45 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#44 0x000000000040a849 in main (argc=<optimized out>, argv=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/app/main.cpp:479

Reported using DrKonqi
Comment 1 Niko Sams 2012-01-22 17:01:51 UTC
I get the same crash...
Comment 2 Milian Wolff 2012-01-23 08:54:28 UTC
yup, "known" - isn't there another report for this? anyhow this should be fixed by not using QtConcurrent (which is not a good idea to begin with btw), but instead QThread-based solution or similar that allows user-cancellation. Then inside the cleanup method of the cmakemanager plugin make sure all imports are cancelled and only then return?
Comment 3 Aleix Pol 2012-02-12 15:58:59 UTC

*** This bug has been marked as a duplicate of bug 280994 ***