Bug 374003 - clicking any button for "another instance of CTest still running" made KDevelop crash
Summary: clicking any button for "another instance of CTest still running" made KDevel...
Status: RESOLVED DUPLICATE of bug 377639
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.1.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-12-21 20:34 UTC by Rolf Eike Beer
Modified: 2017-07-06 21:52 UTC (History)
0 users

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 Rolf Eike Beer 2016-12-21 20:34:20 UTC
Application: kdevelop (5.0.3)

Qt Version: 5.7.1
Frameworks Version: 5.29.0
Operating System: Linux 4.9.0-1.g8c92422-default x86_64
Distribution: "openSUSE Leap 42.2"

-- Information about the crash:
I ran all 3 of my unittests, one of them segfaulted. Trying to run them again later showed the warning "another instance of CTest is still running". Clicking "kill it" killed KDevelop instead of just the test.

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

Thread 13 (Thread 0x7fe3ea7fc700 (LWP 15522)):
#0  0x00007fe470b7c458 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe4776467b8 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe477642c00 in  () at /usr/lib64/libQt5Core.so.5
#3  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7fe3fc9eb700 (LWP 13127)):
#0  0x00007fe476f5049d in poll () at /lib64/libc.so.6
#1  0x00007fe46ea05314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fe46ea0542c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fe47784c84b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fe47764130a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7fe3fd1ec700 (LWP 13051)):
#0  0x00007fe470b7c0af in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe47764686b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe46bf073ff in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007fe46bf0adca in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007fe46bf08a26 in ThreadWeaver::Thread::run() () at /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7fe3fd9ed700 (LWP 13050)):
#0  0x00007fe470b7c0af in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe47764686b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe46bf073ff in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007fe46bf0adca in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007fe46bf0ae12 in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007fe46bf08a26 in ThreadWeaver::Thread::run() () at /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7fe3fe1ee700 (LWP 13049)):
#0  0x00007fe470b7c0af in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe47764686b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe46bf073ff in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007fe46bf0adca in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007fe46bf08a26 in ThreadWeaver::Thread::run() () at /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7fe3fe9ef700 (LWP 13048)):
#0  0x00007fe470b7c0af in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe47764686b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe46bf073ff in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007fe46bf0adca in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007fe46bf08a26 in ThreadWeaver::Thread::run() () at /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fe401670700 (LWP 13047)):
#0  0x00007fe470b7c0af in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe47764686b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe46bf073ff in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007fe46bf0adca in  () at /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007fe46bf0542b in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007fe46bf08a26 in ThreadWeaver::Thread::run() () at /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fe433bba700 (LWP 13030)):
#0  0x00007fe46ea05407 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fe47784c84b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fe47764130a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe46cb00348 in  () at /usr/lib64/libQt5Qml.so.5
#5  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#6  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fe4329ab700 (LWP 13000)):
#0  0x00007fe476f5049d in poll () at /lib64/libc.so.6
#1  0x00007fe46ea05314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fe46ea0542c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fe47784c84b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fe47764130a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fe4751ad133 in  () at /usr/lib64/libKDevPlatformLanguage.so.10
#7  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fe4321aa700 (LWP 12999)):
#0  0x00007fe476f5049d in poll () at /lib64/libc.so.6
#1  0x00007fe46ea05314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fe46ea0542c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fe47784c84b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fe47764130a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fe4751ad133 in  () at /usr/lib64/libKDevPlatformLanguage.so.10
#7  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fe4311a8700 (LWP 12998)):
#0  0x00007fe470b7c458 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fe4776467b8 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fe4750e1fe3 in  () at /usr/lib64/libKDevPlatformLanguage.so.10
#3  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fe455ef3700 (LWP 11753)):
#0  0x00007fe46ea04c76 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fe46ea052a8 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fe46ea0542c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fe47784c84b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fe47764130a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fe4792f33e5 in  () at /usr/lib64/libQt5DBus.so.5
#7  0x00007fe477645bcf in  () at /usr/lib64/libQt5Core.so.5
#8  0x00007fe470b77734 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fe476f58d3d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fe47a12b900 (LWP 11741)):
[KCrash Handler]
#6  0x00007fe478bda9fe in KJob::kill(KJob::KillVerbosity) () at /usr/lib64/libKF5CoreAddons.so.5
#7  0x00007fe43e480201 in  () at /usr/lib64/qt5/plugins/kdevplatform/25/kdevexecute.so
#8  0x00007fe4797c6743 in  () at /usr/lib64/libKDevPlatformUtil.so.10
#9  0x00007fe479cbd249 in KDevelop::RunController::registerJob(KJob*) () at /usr/lib64/libKDevPlatformShell.so.10
#10 0x00007fe479cba835 in KDevelop::RunController::execute(QString const&, KDevelop::ILaunchConfiguration*) () at /usr/lib64/libKDevPlatformShell.so.10
#11 0x00007fe3ff29f2ea in createTestJob(QString, QStringList) (launchModeId=..., arguments=...) at /usr/src/debug/kdevelop-5.0.3/projectmanagers/cmake/testing/ctestrunjob.cpp:99
#12 0x00007fe3ff29f7c3 in CTestRunJob::start() (this=0x1cc4a80) at /usr/src/debug/kdevelop-5.0.3/projectmanagers/cmake/testing/ctestrunjob.cpp:120
#13 0x00007fe4797c6743 in  () at /usr/lib64/libKDevPlatformUtil.so.10
#14 0x00007fe4797c7536 in KDevelop::ExecuteCompositeJob::slotResult(KJob*) () at /usr/lib64/libKDevPlatformUtil.so.10
#15 0x00007fe4797d1d28 in  () at /usr/lib64/libKDevPlatformUtil.so.10
#16 0x00007fe4778257cd in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#17 0x00007fe478bd9cb2 in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#18 0x00007fe478bda9df in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#19 0x00007fe3ff29e7b1 in CTestRunJob::processFinished(KJob*) (this=0x1cc62b0, job=<optimized out>) at /usr/src/debug/kdevelop-5.0.3/projectmanagers/cmake/testing/ctestrunjob.cpp:172
#20 0x00007fe4778257cd in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#21 0x00007fe478bd9b4f in KJob::finished(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#22 0x00007fe478bda9a0 in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#23 0x00007fe4797c7052 in KDevelop::ExecuteCompositeJob::slotResult(KJob*) () at /usr/lib64/libKDevPlatformUtil.so.10
#24 0x00007fe4797d1d28 in  () at /usr/lib64/libKDevPlatformUtil.so.10
#25 0x00007fe4778257cd in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#26 0x00007fe478bd9cb2 in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#27 0x00007fe478bda9df in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#28 0x00007fe469074a8e in KDevelop::OutputExecuteJob::childProcessError(QProcess::ProcessError) () at /usr/lib64/libKDevPlatformOutputView.so.10
#29 0x00007fe477825e2c in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#30 0x00007fe47773fed1 in QProcess::error(QProcess::ProcessError) () at /usr/lib64/libQt5Core.so.5
#31 0x00007fe477747b76 in  () at /usr/lib64/libQt5Core.so.5
#32 0x00007fe477747d0e in  () at /usr/lib64/libQt5Core.so.5
#33 0x00007fe4778257cd in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#34 0x00007fe47789da6e in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () at /usr/lib64/libQt5Core.so.5
#35 0x00007fe477832b09 in QSocketNotifier::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#36 0x00007fe4784af3cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#37 0x00007fe4784b63a0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#38 0x00007fe4777fd715 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#39 0x00007fe47784d43e in  () at /usr/lib64/libQt5Core.so.5
#40 0x00007fe46ea05134 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#41 0x00007fe46ea05388 in  () at /usr/lib64/libglib-2.0.so.0
#42 0x00007fe46ea0542c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#43 0x00007fe47784c82c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#44 0x00007fe4777fb9cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#45 0x00007fe477803866 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#46 0x000000000040c52b in main(int, char**) (argc=3, argv=<optimized out>) at /usr/src/debug/kdevelop-5.0.3/app/main.cpp:763

Reported using DrKonqi
Comment 1 Rolf Eike Beer 2016-12-21 20:36:28 UTC
I tried it again. Also clicking "No" crashed KDevelop. And of course it is "Yes", not "kill".
Comment 2 Rolf Eike Beer 2016-12-21 21:14:35 UTC
For this to happen you must run all tests of the project at once, and one of them needs to crash. Running the test that crashes alone does not trigger the bug.
Comment 3 Rolf Eike Beer 2017-03-24 17:11:18 UTC
Still in 5.1.
Comment 4 Kevin Funk 2017-07-06 21:52:14 UTC

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