Application: kdevelop (4.90.90) Qt Version: 5.4.1 Operating System: Linux 3.19.2-1-ARCH x86_64 Distribution (Platform): Archlinux Packages -- Information about the crash: I have a session with two projects opened. After rebuilding kdevplatform and kdevelop from master today I can't open this session any more. If I create new session kdevelop is started successfully. - Custom settings of the application: kdevplatform: c914b99db1356e3a1a6197e04ba4a6e3a0ba38c0 kdevelop: 4ae7033eaebda07f0c41e84f79c100f5df53d68c The crash can be reproduced every time. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault Using host libthread_db library "/usr/lib/libthread_db.so.1". [Current thread is 1 (Thread 0x7f279bdbd780 (LWP 15295))] Thread 6 (Thread 0x7f27994fa700 (LWP 15296)): #0 0x00007f27b29924ed in poll () from /usr/lib/libc.so.6 #1 0x00007f27a69929f2 in ?? () from /usr/lib/libxcb.so.1 #2 0x00007f27a699456f in xcb_wait_for_event () from /usr/lib/libxcb.so.1 #3 0x00007f279ba74399 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so #4 0x00007f27b300855e in ?? () from /usr/lib/libQt5Core.so.5 #5 0x00007f27ac6a9374 in start_thread () from /usr/lib/libpthread.so.0 #6 0x00007f27b299b27d in clone () from /usr/lib/libc.so.6 Thread 5 (Thread 0x7f27910ec700 (LWP 15306)): #0 0x00007f27b2993b27 in ioctl () from /usr/lib/libc.so.6 #1 0x00007f27a4fdb909 in uki_firegl_MicroSleep () from /usr/lib/libatiuki.so.1 #2 0x00007f279372ac90 in ?? () from /usr/lib/xorg/modules/dri//fglrx_dri.so #3 0x00007f2792f37542 in ?? () from /usr/lib/xorg/modules/dri//fglrx_dri.so #4 0x00007f2792f37595 in ?? () from /usr/lib/xorg/modules/dri//fglrx_dri.so #5 0x00007f27ac6a9374 in start_thread () from /usr/lib/libpthread.so.0 #6 0x00007f27b299b27d in clone () from /usr/lib/libc.so.6 Thread 4 (Thread 0x7f278bfff700 (LWP 15307)): #0 0x00007f27b298e50d in read () from /usr/lib/libc.so.6 #1 0x00007f27abb69b50 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007f27abb2642c in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #3 0x00007f27abb26943 in ?? () from /usr/lib/libglib-2.0.so.0 #4 0x00007f27abb26abc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #5 0x00007f27b324c08c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #6 0x00007f27b31f17b2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #7 0x00007f27b30035d4 in QThread::exec() () from /usr/lib/libQt5Core.so.5 #8 0x00007f27b4c68835 in ?? () from /usr/lib/libQt5Qml.so.5 #9 0x00007f27b300855e in ?? () from /usr/lib/libQt5Core.so.5 #10 0x00007f27ac6a9374 in start_thread () from /usr/lib/libpthread.so.0 #11 0x00007f27b299b27d in clone () from /usr/lib/libc.so.6 Thread 3 (Thread 0x7f278a5ee700 (LWP 15311)): #0 0x00007f27ac6ae9af in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 #1 0x00007f27b30096bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5 #2 0x00007f27b53af7f2 in ?? () from /usr/lib/libQt5Quick.so.5 #3 0x00007f27b53afc30 in ?? () from /usr/lib/libQt5Quick.so.5 #4 0x00007f27b300855e in ?? () from /usr/lib/libQt5Core.so.5 #5 0x00007f27ac6a9374 in start_thread () from /usr/lib/libpthread.so.0 #6 0x00007f27b299b27d in clone () from /usr/lib/libc.so.6 Thread 2 (Thread 0x7f2783c01700 (LWP 15314)): #0 0x00007f27ac6aed58 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0 #1 0x00007f27b30095f8 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5 #2 0x00007f27b0b814e1 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x30f35d0) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/language/duchain/duchain.cpp:277 #3 0x00007f27b300855e in ?? () from /usr/lib/libQt5Core.so.5 #4 0x00007f27ac6a9374 in start_thread () from /usr/lib/libpthread.so.0 #5 0x00007f27b299b27d in clone () from /usr/lib/libc.so.6 Thread 1 (Thread 0x7f279bdbd780 (LWP 15295)): [KCrash Handler] #5 0x00007f27b42d5500 in KConfigBase::group(QString const&) () from /usr/lib/libKF5ConfigCore.so.5 #6 0x00007f2782761a5c in (anonymous namespace)::baseGroup (project=project@entry=0x3115010) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakeutils.cpp:88 #7 0x00007f2782761e7a in (anonymous namespace)::currentBuildDirIndex (project=project@entry=0x3115010) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakeutils.cpp:103 #8 0x00007f27827621a0 in (anonymous namespace)::readProjectParameter (project=project@entry=0x3115010, key=..., aDefault=...) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakeutils.cpp:114 #9 0x00007f278276226b in CMake::currentBuildDir (project=project@entry=0x3115010) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakeutils.cpp:246 #10 0x00007f2782765427 in CMake::checkForNeedingConfigure (project=project@entry=0x3115010) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakeutils.cpp:184 #11 0x00007f2781c5aac4 in CMakeManager::import (this=0x3115960, project=0x3115010) at /home/vestnik/Development/KDE/kdevelop/kdevelop/projectmanagers/cmake/cmakemanager.cpp:141 #12 0x00007f27b56de447 in importTopItem (fileManager=<optimized out>, this=0x3116020) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/project.cpp:392 #13 KDevelop::Project::open (this=this@entry=0x3115010, projectFile=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/project.cpp:506 #14 0x00007f27b56d987b in KDevelop::ProjectControllerPrivate::importProject (this=0x3022a20, url_=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/projectcontroller.cpp:303 #15 0x00007f27b56d225d in KDevelop::ProjectController::openProject (this=0x3023b00, projectFile=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/projectcontroller.cpp:797 #16 0x00007f27b56cd88c in KDevelop::ProjectController::openProjects (this=0x3023b00, projects=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/projectcontroller.cpp:618 #17 0x00007f27b56d1481 in KDevelop::ProjectController::qt_static_metacall (_o=0x3023b00, _c=<optimized out>, _id=<optimized out>, _a=0x30f6450) at shell/moc_projectcontroller.cpp:279 #18 0x00007f27b322506a in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5 #19 0x00007f27b3adaacc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #20 0x00007f27b3adff10 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #21 0x00007f27b31f3d1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #22 0x00007f27b31f5d5b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5 #23 0x00007f27b324bc83 in ?? () from /usr/lib/libQt5Core.so.5 #24 0x00007f27abb2671d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #25 0x00007f27abb26a08 in ?? () from /usr/lib/libglib-2.0.so.0 #26 0x00007f27abb26abc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #27 0x00007f27b324c0d0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #28 0x0000000000410c9f in KDevSplashScreen::progress (this=0x23eb400, progress=63) at /home/vestnik/Development/KDE/kdevelop/kdevelop/app/splash.cpp:74 #29 0x00007f27b3224309 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5 #30 0x00007f27b577277e in KDevelop::Core::startupProgress (this=<optimized out>, _t1=_t1@entry=63) at shell/moc_core.cpp:133 #31 0x00007f27b56c0510 in KDevelop::CorePrivate::initialize (this=0x26072e0, mode=mode@entry=KDevelop::Core::Default, session=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/core.cpp:242 #32 0x00007f27b56c1fdb in KDevelop::Core::initialize (splash=splash@entry=0x23eb400, mode=mode@entry=KDevelop::Core::Default, session=...) at /home/vestnik/Development/KDE/kdevplatform/kdevplatform/shell/core.cpp:347 #33 0x000000000040cc2c in main (argc=1, argv=<optimized out>) at /home/vestnik/Development/KDE/kdevelop/kdevelop/app/main.cpp:512 Reported using DrKonqi
Could you help to debug this? I.e. from what revision of kdevplatform/kdevelop did you upgrade? Did you also upgrade KF5? And please install debug symbols for KF5, they're missing. Also see: https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports#Backtraces
Created attachment 91864 [details] openprjcfg.crash.bt I've played with debug printing of pointers values and the issues disappeared (looks like there was stack corruption somewhere). Now I cant reproduce original issue however the same session always crashes on attempt to open project configuration with the stacktrace attached. The session contains two projects: https://github.com/VestniK/lrstar https://github.com/VestniK/meta
One more strange thing I see in the logs just before crash: QCoreApplication::postEvent: Unexpected null receiver
Thanks for the feedback.
Related patch: commit db3e79e01eeea78c8b05828b33914a3c35dd44c5 Author: Kevin Funk <kfunk@kde.org> Date: Wed Jul 9 16:28:29 2014 +0200 CMakeUtils: Protect against null pointers Be more defensive against unexpected input for these functions. 'project' might be 0 in some circumstances => crash. (This happens when quickly shutting down KDevelop after startup) Backtrace: Thread 2 (Thread 0x7fcf81dea700 (LWP 10002)): [KCrash Handler] 5 (anonymous namespace)::baseGroup (project=project@entry=0x0) at /home/krf/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:83 6 0x00007fcf83506c96 in (anonymous namespace)::currentBuildDirIndex (project=project@entry=0x0) at /home/krf/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:98 7 0x00007fcf83506dc0 in (anonymous namespace)::readProjectParameter (project=project@entry=0x0, key=..., aDefault=...) at /home/krf/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:109 8 0x00007fcf83506e42 in CMake::currentBuildDir (project=0x0) at /home/krf/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:254 9 0x00007fcf81f0ce99 in CMakeImportJob::initializeProject (this=this@entry=0x2024cf0, rootFolder=0x42ec130) at /home/krf/devel/src/kdevelop/projectmanagers/cmake/cmakeimportjob.cpp:134 10 0x00007fcf81f0dc43 in CMakeImportJob::initialize (this=0x2024cf0) at
Is this still reproducible?
Just reproduced this on current 4.7 branch: Thread 8 (Thread 0x7ff75e3c4700 (LWP 13085)): [KCrash Handler] #6 0x00007ff81bbbabd4 in KConfigGroup::config() const () from /usr/lib/libkdecore.so.5 #7 0x00007ff81bbbd087 in KConfigGroup::hasKey(char const*) const () from /usr/lib/libkdecore.so.5 #8 0x00007ff81bbbd2c3 in KConfigGroup::hasKey(QString const&) const () from /usr/lib/libkdecore.so.5 #9 0x00007ff76a61ad47 in (anonymous namespace)::currentBuildDirIndex (project=<optimized out>) at /home/kfunk/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:103 #10 0x00007ff76a619331 in (anonymous namespace)::readProjectParameter (project=0x0, key=..., aDefault=...) at /home/kfunk/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:112 #11 0x00007ff76a6180b2 in CMake::currentBuildDir (project=0x7ff738004a68) at /home/kfunk/devel/src/kdevelop/projectmanagers/cmake/cmakeutils.cpp:261 #12 0x00007ff754aadb04 in CMakeImportJob::initializeProject (this=0x11fdb20, rootFolder=<optimized out>) at /home/kfunk/devel/src/kdevelop/projectmanagers/cmake/cmakeimportjob.cpp:134 #13 0x00007ff754aad786 in CMakeImportJob::initialize (this=<optimized out>) at /home/kfunk/devel/src/kdevelop/projectmanagers/cmake/cmakeimportjob.cpp:119 #14 0x00007ff754aafffd in QtConcurrent::RunFunctionTask<void>::run (this=0x147a8a0) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:134 #15 0x00007ff81a2ade0a in QThreadPoolThread::run (this=0x114b250) at concurrent/qthreadpool.cpp:108 #16 0x00007ff81a2bae3c in QThreadPrivate::start (arg=0x114b250) at thread/qthread_unix.cpp:352 #17 0x00007ff817df46fa in start_thread (arg=0x7ff75e3c4700) at pthread_create.c:333 #18 0x00007ff8196dcb5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thank you for the crash report. As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
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 mark the bug 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!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now 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 Thank you for helping us make KDE software even better for everyone!