Bug 282887 - KDevelop crashes upon opening a session.
Summary: KDevelop crashes upon opening a session.
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: 4.2.60
Platform: Debian unstable Linux
: NOR crash
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2011-09-27 06:08 UTC by Łukasz Kucharski
Modified: 2018-09-23 21:07 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 Łukasz Kucharski 2011-09-27 06:08:02 UTC
Application: kdevelop (4.2.60)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.3
Operating System: Linux 3.0.0-1-686-pae i686
Distribution: Debian GNU/Linux unstable (sid)

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


Switched from one active session to another. Everything seemed to open just right (tabs with source codes and such). But it crashed suddenly. Every restart of the application gives the same result - segmentation fault.

I think it is something project related, never the less it should not lead to segfaults.

KDE libraries come from debian packages and KDevelop was compiled from latest git sources.

The crash can be reproduced every time.

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

Thread 9 (Thread 0xae93cb70 (LWP 15595)):
#0  0xb7835424 in __kernel_vsyscall ()
#1  0xb56d1703 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#2  0xb5804ab4 in pthread_cond_timedwait () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb654d99e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb51573ca in KDevelop::DUChainPrivate::CleanupThread::run (this=0x86cce58) at /home/luk32/src/kdevplatform/language/duchain/duchain.cpp:282
#5  0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#7  0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 8 (Thread 0xab895b70 (LWP 15598)):
#0  0xb5804c5a in pthread_mutex_unlock () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#1  0xb4b35874 in ?? () from /lib/libglib-2.0.so.0
#2  0xb4b35ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb66764d7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb664724d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb6647491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb654a69b in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xb5259676 in KDevelop::CompletionWorkerThread::run (this=0x88d8940) at /home/luk32/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:84
#8  0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#10 0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 7 (Thread 0xab094b70 (LWP 15599)):
#0  0xb56d0524 in __pthread_mutex_unlock_usercnt () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#1  0xb5804c66 in pthread_mutex_unlock () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0xb4b34eac in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0xb4b357fa in ?? () from /lib/libglib-2.0.so.0
#4  0xb4b35ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb66764d7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb664724d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb6647491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb654a69b in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb5259676 in KDevelop::CompletionWorkerThread::run (this=0xae000b20) at /home/luk32/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:84
#10 0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#12 0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 6 (Thread 0xaa039b70 (LWP 15604)):
#0  0xb7835424 in __kernel_vsyscall ()
#1  0xb56d120a in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#2  0xb5804a5d in pthread_cond_wait () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb5581ec9 in ?? () from /usr/lib/libQtScript.so.4
#4  0xb5581f0f in ?? () from /usr/lib/libQtScript.so.4
#5  0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#6  0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 5 (Thread 0xa8fd1b70 (LWP 15654)):
#0  0xb5804c35 in pthread_mutex_unlock () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#1  0xb4b35874 in ?? () from /lib/libglib-2.0.so.0
#2  0xb4b35ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb66764d7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb664724d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb6647491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb654a69b in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xb6627d8d in ?? () from /usr/lib/libQtCore.so.4
#8  0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#10 0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xa7faeb70 (LWP 15676)):
#0  0xb7835424 in __kernel_vsyscall ()
#1  0xb56d120a in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#2  0xb5804a5d in pthread_cond_wait () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb435d51b in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb435d63f in ?? () from /usr/lib/libQtWebKit.so.4
#5  0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#6  0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xa87afb70 (LWP 15679)):
[KCrash Handler]
#7  ref (this=0x612f3c65) at /usr/include/qt4/QtCore/qatomic_i386.h:120
#8  QString (other=..., this=0x8e83e2c) at /usr/include/qt4/QtCore/qstring.h:729
#9  node_construct (t=..., n=0x8e83e2c, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:360
#10 QList<QString>::append (this=0xa87ae720, t=...) at /usr/include/qt4/QtCore/qlist.h:499
#11 0xac82f14b in operator+= (t=<optimized out>, this=0xa87ae720) at /usr/include/qt4/QtCore/qlist.h:319
#12 CMakeProjectVisitor::visit (this=0xa87aed74, list=0x8818350) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1551
#13 0xac811e27 in ListAst::accept (this=0x8818350, visitor=0xa87aed74) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:513
#14 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa87aed74, fc=..., line=15, isClean=true) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#15 0xac836d2d in CMakeProjectVisitor::visit (this=0xa87aed74, inc=0xa2b4ea8) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:536
#16 0xac811ca7 in IncludeAst::accept (this=0xa2b4ea8, visitor=0xa87aed74) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:430
#17 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa87aed74, fc=..., line=5, isClean=true) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#18 0xac843915 in CMakeParserUtils::includeScript (file=..., parent=..., data=0xaeb395c, sourcedir=...) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeparserutils.cpp:173
#19 0xa92e784e in CMakeManager::includeScript (this=0x8a4cf60, file=..., project=0xaaf6e50, dir=..., parent=...) at /home/luk32/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:644
#20 0xa92e9851 in CMakeManager::parse (this=0x8a4cf60, item=0xaf1bbb0) at /home/luk32/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:699
#21 0xb534e511 in KDevelop::ImportProjectJobPrivate::import (this=0xa2b2ea8, folder=0xaf1bbb0) at /home/luk32/src/kdevplatform/project/importprojectjob.cpp:53
#22 0xb534df48 in QtConcurrent::VoidStoredMemberFunctionPointerCall1<void, KDevelop::ImportProjectJobPrivate, KDevelop::ProjectFolderItem*, KDevelop::ProjectFolderItem*>::runFunctor (this=0x98badc0) at /usr/include/qt4/QtCore/qtconcurrentstoredfunctioncall.h:426
#23 0xb534e0fe in run (this=0x98badc0) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120
#24 QtConcurrent::RunFunctionTask<void>::run (this=0x98badc0) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:114
#25 0xb65407f1 in ?? () from /usr/lib/libQtCore.so.4
#26 0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#27 0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#28 0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xa708db70 (LWP 15685)):
#0  0xb7835424 in __kernel_vsyscall ()
#1  0xb57f0c71 in select () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0xb6672cea in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/libQtCore.so.4
#3  0xb6623447 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6624cf3 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb65e0366 in QProcess::waitForFinished(int) () from /usr/lib/libQtCore.so.4
#6  0xac82d1d0 in CMakeProjectVisitor::visit (this=0xa708cb54, exec=0xa5e019b8) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1340
#7  0xac811a37 in ExecuteProcessAst::accept (this=0xa5e019b8, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:222
#8  0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=9, isClean=false) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#9  0xac8319a9 in CMakeProjectVisitor::visit (this=0xa708cb54, fea=0xa5e006a0) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1662
#10 0xac811b67 in ForeachAst::accept (this=0xa5e006a0, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:349
#11 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=6, isClean=false) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#12 0xac83385a in CMakeProjectVisitor::visit (this=0xa708cb54, call=0xa5e08b70) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1127
#13 0xac8117f7 in MacroCallAst::accept (this=0xa5e08b70, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:102
#14 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=19, isClean=false) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#15 0xac832606 in CMakeProjectVisitor::visit (this=0xa708cb54, ifast=0xa5e084d8) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1246
#16 0xac811c87 in IfAst::accept (this=0xa5e084d8, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:424
#17 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=18, isClean=false) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#18 0xac83385a in CMakeProjectVisitor::visit (this=0xa708cb54, call=0xae083108) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1127
#19 0xac8117f7 in MacroCallAst::accept (this=0xae083108, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:102
#20 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=57, isClean=false) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#21 0xac832606 in CMakeProjectVisitor::visit (this=0xa708cb54, ifast=0xa5e073d8) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1246
#22 0xac811c87 in IfAst::accept (this=0xa5e073d8, visitor=0xa708cb54) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeast.h:424
#23 0xac82ff7b in CMakeProjectVisitor::walk (this=0xa708cb54, fc=..., line=51, isClean=true) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2132
#24 0xac843915 in CMakeParserUtils::includeScript (file=..., parent=..., data=0xae0195f4, sourcedir=...) at /home/luk32/src/kdevelop/projectmanagers/cmake/parser/cmakeparserutils.cpp:173
#25 0xa92e784e in CMakeManager::includeScript (this=0x8a4cf60, file=..., project=0x9711c90, dir=..., parent=...) at /home/luk32/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:644
#26 0xa92e8363 in CMakeManager::initializeProject (this=0x8a4cf60, project=0x9711c90) at /home/luk32/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:537
#27 0xa92ebbac in CMakeManager::parse (this=0x8a4cf60, item=0xaedb3b0) at /home/luk32/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:680
#28 0xb534e511 in KDevelop::ImportProjectJobPrivate::import (this=0xaf21650, folder=0xaedb3b0) at /home/luk32/src/kdevplatform/project/importprojectjob.cpp:53
#29 0xb534df48 in QtConcurrent::VoidStoredMemberFunctionPointerCall1<void, KDevelop::ImportProjectJobPrivate, KDevelop::ProjectFolderItem*, KDevelop::ProjectFolderItem*>::runFunctor (this=0xae5a080) at /usr/include/qt4/QtCore/qtconcurrentstoredfunctioncall.h:426
#30 0xb534e0fe in run (this=0xae5a080) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120
#31 QtConcurrent::RunFunctionTask<void>::run (this=0xae5a080) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:114
#32 0xb65407f1 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb654d503 in ?? () from /usr/lib/libQtCore.so.4
#34 0xb56ccc39 in start_thread () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#35 0xb57f796e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb29b4720 (LWP 15594)):
#0  0xb56cb610 in __i686.get_pc_thunk.bx () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#1  0xb56cf187 in pthread_mutex_lock () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#2  0xb5804c26 in pthread_mutex_lock () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb332f4ea in ?? () from /usr/lib/i386-linux-gnu/libxcb.so.1
#4  0xb3330d98 in xcb_wait_for_reply () from /usr/lib/i386-linux-gnu/libxcb.so.1
#5  0xb4f2ebf2 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#6  0xb4f2bc25 in XTranslateCoordinates () from /usr/lib/i386-linux-gnu/libX11.so.6
#7  0xb5c16868 in QWidget::mapFromGlobal(QPoint const&) const () from /usr/lib/libQtGui.so.4
#8  0xb5b7b68c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#9  0xb6a03571 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#10 0xb664822e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#11 0xb5b76760 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#12 0xb5c0024f in ?? () from /usr/lib/libQtGui.so.4
#13 0xb5bff1e7 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#14 0xb5c2ab0c in ?? () from /usr/lib/libQtGui.so.4
#15 0xb4b35252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0xb4b35a30 in ?? () from /lib/libglib-2.0.so.0
#17 0xb4b35ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#18 0xb6676477 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#19 0xb5c2a72a in ?? () from /usr/lib/libQtGui.so.4
#20 0xb664724d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0xb6647491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0xb664bbea in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#23 0xb5b73624 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#24 0x080516e8 in main (argc=<optimized out>, argv=) at /home/luk32/src/kdevelop/app/main.cpp:474

This bug may be a duplicate of or related to bug 271969.

Possible duplicates by query: bug 271969.

Reported using DrKonqi
Comment 1 Aleix Pol 2012-01-18 00:44:02 UTC
Can you remember what project was it? Can you reproduce?
Comment 2 Andreas Pakulat 2012-02-08 15:28:49 UTC
Backtraces ending in stuff like QList::append etc. usually point to either a binary compatibility, a memory corruption or a null-pointer on the object that has the list as member. The latter is probably not the reason here since the code accesses other members first. So a valgrind log and reproduction recipe are necessary here.
Comment 3 Andrew Crouthamel 2018-09-22 02:03:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Łukasz Kucharski 2018-09-23 17:13:13 UTC
I think it's fair to close. I don't think I even have the project around. This report was sent from the crash tool as far as I can recall.

Sorry for not providing the needed info.
Comment 5 Andrew Crouthamel 2018-09-23 21:07:48 UTC
No problem, thank you for the update!