Bug 391582 - Crashes when indexing large cpp projects
Summary: Crashes when indexing large cpp projects
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Custom Makefiles (show other bugs)
Version: 5.1.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 20:10 UTC by Helio Loureiro
Modified: 2021-01-11 16:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crash reported. (6.54 KB, text/plain)
2018-03-08 20:10 UTC, Helio Loureiro
Details
attachment-17731-0.html (1.98 KB, text/html)
2021-01-01 18:02 UTC, Helio Loureiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helio Loureiro 2018-03-08 20:10:13 UTC
Created attachment 111266 [details]
Crash reported.

It crashes after I start to import a large cpp project (Makefile based), with more than 120000 c and h files.

If I disable indexing, it stays.  But once I release the feature, it loads for a while and then crashes.
Comment 1 Sven Brauch 2018-03-08 20:27:57 UTC
Pasting trace inline for searchability:

Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f648bcf9900 (LWP 2733))]

Thread 5 (Thread 0x7f646ecf0700 (LWP 2863)):
#0  0x00007f64a8aac74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f64a1bb838c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f64a1bb849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f64a93da37b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f64a9382ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f64a91ab9e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f64a91b0808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f64a2a4d6ba in start_thread (arg=0x7f646ecf0700) at pthread_create.c:333
#8  0x00007f64a8ab841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f646e4ef700 (LWP 2765)):
#0  0x00007f64a8aa827d in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f64a1bfb6f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f64a1bb7e74 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f64a1bb8330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f64a1bb849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f64a93da37b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f64a9382ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f64a91ab9e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f649ef3e6b5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f64a91b0808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f64a2a4d6ba in start_thread (arg=0x7f646e4ef700) at pthread_create.c:333
#11 0x00007f64a8ab841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f6479271700 (LWP 2736)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007f64a91b15f6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f64a6bdde48 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#3  0x00007f64a91b0808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f64a2a4d6ba in start_thread (arg=0x7f6479271700) at pthread_create.c:333
#5  0x00007f64a8ab841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f6483b69700 (LWP 2735)):
#0  0x00007f64a8aac74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f64a1bb838c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f64a1bb849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f64a93da37b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f64a9382ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f64a91ab9e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f64ab4ee515 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f64a91b0808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f64a2a4d6ba in start_thread (arg=0x7f6483b69700) at pthread_create.c:333
#9  0x00007f64a8ab841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f648bcf9900 (LWP 2733)):
[KCrash Handler]
#6  0x00007f64718788d8 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevquickopen.so
#7  0x00007f6471878d13 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevquickopen.so
#8  0x00007f64a93b1c24 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f64aa946d72 in KDevelop::IProjectController::projectOpened(KDevelop::IProject*) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformInterfaces.so.10
#10 0x00007f64ab06fb26 in KDevelop::ProjectController::projectImportingFinished(KDevelop::IProject*) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#11 0x00007f64a93b1c24 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f64aa21e292 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#13 0x00007f64aa21fbd1 in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#14 0x00007f64a623f5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformProject.so.10
#15 0x00007f64a93b2719 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f64a9cbaafc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f64a9cc0036 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f64a93852a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f64a938716a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f64a93d9f53 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f64a1bb8197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f64a1bb83f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f64a1bb849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f64a93da35f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f64a9382ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f64a938b6bc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x000000000040bc06 in ?? ()
#28 0x00007f64a89d1830 in __libc_start_main (main=0x405f50, argc=1, argv=0x7ffdeb29f068, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdeb29f058) at ../csu/libc-start.c:291
#29 0x000000000040c139 in _start ()
Comment 2 Sven Brauch 2018-03-08 20:28:09 UTC
Could you try with 5.2.1 from kdevelop.org/download?
Comment 3 Helio Loureiro 2018-03-08 23:00:37 UTC
(In reply to Sven Brauch from comment #2)
> Could you try with 5.2.1 from kdevelop.org/download?

Unfortunately not.  I'm already ahead from the version delivered by Ubuntu LTS via PPA.  And they stopped at this version.

Is there a possible commit to fix this issue?  I can try to backport.
Comment 4 Helio Loureiro 2018-03-12 08:48:42 UTC
(In reply to Sven Brauch from comment #2)
> Could you try with 5.2.1 from kdevelop.org/download?

Hi,

I gave a try on appImage one.  Never tried before and found it quite clever way to deliver applications.

Unfortunately it doesn't work as well.  At this time it gets stalled at 4% of files parsed.

I tried to disable as much as possible the plugins, keep the minimal (cpp, makefile and git), but got the same result.

Is there a DEBUG parameter that I can pass as environment parameter to enable further information?
Comment 5 Sven Brauch 2018-03-12 17:39:28 UTC
Just looking at the terminal output should tell you which file it tries to parse, maybe that contains some hint of what's going on? It's strange though, I often load at least parts of the Linux kernel in KDevelop which is also a lot of code, and that works ok ... it takes a long time to parse everything, but it doesn't crash.
Comment 6 Helio Loureiro 2018-03-14 15:46:29 UTC
(In reply to Sven Brauch from comment #5)
> Just looking at the terminal output should tell you which file it tries to
> parse, maybe that contains some hint of what's going on? It's strange
> though, I often load at least parts of the Linux kernel in KDevelop which is
> also a lot of code, and that works ok ... it takes a long time to parse
> everything, but it doesn't crash.

It is a large c++ project (unfortunately not open sourced) which uses things like libboost.

I just see messages like this:

---- Parsing FAILED ----
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevplatform.language: invalid item for index 60 0 0
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/test/apps/brz/brz_test/test_suites/BrzSuite/checking"
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----
kdevelop.languages.clang: supposed framework directory is not a directory: "/home/helio/project/code/checking"
kdevelop.languages.python.parser: Discarding parts of the code to be parsed because of previous errors
---- Parsing FAILED ----


And nothing else.  It stops at an header file which contains reference to cpp14 code at 4%.
Comment 7 Justin Zobel 2020-12-17 05:35:26 UTC
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.
Comment 8 Bug Janitor Service 2021-01-01 04:38:13 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
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!
Comment 9 Helio Loureiro 2021-01-01 18:02:21 UTC
Created attachment 134440 [details]
attachment-17731-0.html

This bug has been reported more than 2 years ago.  And no activity to fix
it.

Now you hurry me to check if such bug remains???

What was done in order to get it corrected?

./helio

On Fri, Jan 1, 2021, 05:38 Bug Janitor Service <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=391582
>
> --- Comment #8 from Bug Janitor Service <bug-janitor@kde.org> ---
> 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!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 10 Sven Brauch 2021-01-01 18:08:19 UTC
The bug was put into NEEDSINFO state because there isn't enough information available to investigate.

The messages above are generated by automated tooling which close such issues if they remain in this state for a long time, because they cannot be productively worked on.
Comment 11 Helio Loureiro 2021-01-08 16:48:19 UTC
Same thing.

$ kdevelop
kdevplatform.serialization: version-hint not found, seems to be an old version
kdevplatform.serialization: "The data-repository at /home/helio/.cache/kdevduchain/kdevelop-{b59c6048-1eb9-4f8f-b867-463969332c19} has to be cleared."
cannot find .rc file "kdevcppcheck.rc" for component "kdevcppcheck"
kdevelop.documentation.qthelp: qmake query returned error: ""
kf5.kio.core: KSambaShare: Could not find smb.conf!
Couldn't start kuiserver from org.kde.kuiserver.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.kde.kuiserver was not provided by any .service files")
"CMake Project Manager" ("CMakeLists.txt")
"Custom BuildSystem" ()
"Custom Makefile Project Manager" ("GNUmakefile", "Makefile", "makefile", "GNUmakefile.*", "Makefile.*", "makefile.*")
"Generic Project Manager" ()
"QMake Project Manager" ("*.pro")
"CMake Project Manager" ("CMakeLists.txt")
"Custom BuildSystem" ()
"Custom Makefile Project Manager" ("GNUmakefile", "Makefile", "makefile", "GNUmakefile.*", "Makefile.*", "makefile.*")
"Generic Project Manager" ()
"QMake Project Manager" ("*.pro")
kdevplatform.shell: Could not load plugin "KDevCMakeManager" , it reported the error: "Unable to find cmake executable. Is it installed on the system?" Disabling the plugin now.
kdevplatform.shell: Not loading plugin named "KDevNinjaBuilder" because it has been disabled!
Segmentation fault (core dumped)
Comment 12 Helio Loureiro 2021-01-08 16:57:58 UTC
Now it even crashes when importing project.  Just opensaf downloaded from https://sourceforge.net/projects/opensaf/files/latest/download

Further Crash information:

Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc99cedb900 (LWP 16646))]

Thread 17 (Thread 0x7fc936ffd700 (LWP 16669)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007fc99b5165f6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc99b511e2a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc994d376ba in start_thread (arg=0x7fc936ffd700) at pthread_create.c:333
#5  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 16 (Thread 0x7fc9377fe700 (LWP 16668)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc9377fe700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 15 (Thread 0x7fc937fff700 (LWP 16667)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc937fff700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 14 (Thread 0x7fc94ca93700 (LWP 16666)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc94ca93700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 13 (Thread 0x7fc94d294700 (LWP 16665)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc94d294700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7fc94da95700 (LWP 16664)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc94da95700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7fc94e296700 (LWP 16663)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc94e296700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7fc94ea97700 (LWP 16662)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc94ea97700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7fc95ef47700 (LWP 16661)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc99b5166bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc9905a30af in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#3  0x00007fc9905a70a8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007fc9905a229d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fc9905a4c20 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc994d376ba in start_thread (arg=0x7fc95ef47700) at pthread_create.c:333
#8  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fc95e746700 (LWP 16657)):
#0  0x00007fc99ae0b80d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc993e8238c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc993e8249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc99b73f37b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc99b6e7ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc99b5109e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc9911c86b5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fc994d376ba in start_thread (arg=0x7fc95e746700) at pthread_create.c:333
#9  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fc9679b8700 (LWP 16653)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007fc99b5165f6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fc998f2ce48 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#3  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc994d376ba in start_thread (arg=0x7fc9679b8700) at pthread_create.c:333
#5  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fc9685b7700 (LWP 16652)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc9730bc1d3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007fc9730bc037 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007fc994d376ba in start_thread (arg=0x7fc9685b7700) at pthread_create.c:333
#4  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fc970815700 (LWP 16651)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc9730bc1d3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007fc9730bc037 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007fc994d376ba in start_thread (arg=0x7fc970815700) at pthread_create.c:333
#4  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fc971016700 (LWP 16650)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc9730bc1d3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007fc9730bc037 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007fc994d376ba in start_thread (arg=0x7fc971016700) at pthread_create.c:333
#4  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fc971817700 (LWP 16649)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc9730bc1d3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007fc9730bc037 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007fc994d376ba in start_thread (arg=0x7fc971817700) at pthread_create.c:333
#4  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fc97988f700 (LWP 16648)):
#0  0x00007fc99ae0b80d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fc993e8238c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc993e8249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc99b73f37b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc99b6e7ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc99b5109e4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc99d88d515 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fc99b515808 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fc994d376ba in start_thread (arg=0x7fc97988f700) at pthread_create.c:333
#9  0x00007fc99ae174dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fc99cedb900 (LWP 16646)):
[KCrash Handler]
#6  0x00007fc968da5cae in llvm::cl::AddLiteralOption(llvm::cl::Option&, llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1
#7  0x00007fc969111835 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1
#8  0x00007fc925af7b0a in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1
#9  0x00007fc99d7186fa in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffd41f2f58, env=env@entry=0x7fffd41f2f68) at dl-init.c:72
#10 0x00007fc99d71880b in call_init (env=0x7fffd41f2f68, argv=0x7fffd41f2f58, argc=1, l=<optimized out>) at dl-init.c:30
#11 _dl_init (main_map=main_map@entry=0x2540f40, argc=1, argv=0x7fffd41f2f58, env=0x7fffd41f2f68) at dl-init.c:120
#12 0x00007fc99d71d922 in dl_open_worker (a=a@entry=0x7fffd41f17d0) at dl-open.c:575
#13 0x00007fc99d7185a4 in _dl_catch_error (objname=objname@entry=0x7fffd41f17c0, errstring=errstring@entry=0x7fffd41f17c8, mallocedp=mallocedp@entry=0x7fffd41f17bf, operate=operate@entry=0x7fc99d71d510 <dl_open_worker>, args=args@entry=0x7fffd41f17d0) at dl-error.c:187
#14 0x00007fc99d71cde9 in _dl_open (file=0x225bb58 "/usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/27/kdevclangsupport.so", mode=-2147483647, caller_dlopen=0x7fc99b6e61b0, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x7fffd41f2f68) at dl-open.c:660
#15 0x00007fc9928a8f09 in dlopen_doit (a=a@entry=0x7fffd41f1a00) at dlopen.c:66
#16 0x00007fc99d7185a4 in _dl_catch_error (objname=0x98cac0, errstring=0x98cac8, mallocedp=0x98cab8, operate=0x7fc9928a8eb0 <dlopen_doit>, args=0x7fffd41f1a00) at dl-error.c:187
#17 0x00007fc9928a9571 in _dlerror_run (operate=operate@entry=0x7fc9928a8eb0 <dlopen_doit>, args=args@entry=0x7fffd41f1a00) at dlerror.c:163
#18 0x00007fc9928a8fa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#19 0x00007fc99b6e61b0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fc99b6df735 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fc99c59f1fa in KPluginLoader::load() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#22 0x00007fc99c59f32a in KPluginLoader::instance() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#23 0x00007fc99c59f37c in KPluginLoader::factory() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#24 0x00007fc99d3dae0e in KDevelop::PluginController::loadPluginInternal(QString const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#25 0x00007fc99d3dcbdb in KDevelop::PluginController::allPluginsForExtension(QString const&, QMap<QString, QVariant> const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#26 0x00007fc99d41d689 in KDevelop::LanguageController::languagesForMimetype(QString const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#27 0x00007fc99d41e0f2 in KDevelop::LanguageController::languagesForUrl(QUrl const&) () from /usr/lib/x86_64-linux-gnu/libKDevPlatformShell.so.10
#28 0x00007fc998efdea3 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#29 0x00007fc998f00e33 in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#30 0x00007fc998efabb4 in KDevelop::BackgroundParser::parseDocuments() () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10
#31 0x00007fc99b716c24 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fc99b7230b8 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fc99b7176d3 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fc99c02cafc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007fc99c032036 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007fc99b6ea2a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007fc99b73e24e in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007fc99b73e781 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007fc993e82197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fc993e823f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007fc993e8249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007fc99b73f35f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007fc99b6e7ffa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007fc99b6f06bc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x000000000040bc06 in ?? ()
#46 0x00007fc99ad30840 in __libc_start_main (main=0x405f50, argc=1, argv=0x7fffd41f2f58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd41f2f48) at ../csu/libc-start.c:291
#47 0x000000000040c139 in _start ()
Comment 13 Christoph Feck 2021-01-09 17:12:58 UTC
Thank you for the backtrace. Unfortunately, it lacks debug symbol information and only indicates the crash is happening inside the LLVM libraries.

If you are able to create a backtrace with debug symbols, I suggest to report a new ticket, because the crash is unrelated.
Comment 14 Helio Loureiro 2021-01-10 17:22:43 UTC
Unfortunately the packages available seem to be broken:

root@ubuntu-16:~# apt install kdevelop-dbg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kdevelop-dbg : Depends: kdevelop (= 4:4.7.3-0ubuntu1) but 4:5.1.1-0ubuntu1~ubuntu16.04~ppa2 is to be installed
E: Unable to correct problems, you have held broken packages.

So I can't get the debug symbols unless I recompile it from scratch.
Comment 15 Milian Wolff 2021-01-11 16:43:34 UTC
you are somehow mixing different LLVM versions in one binary, which is bound to lead to really interesting crashes. From your last crash report, see these two frames:

#7  0x00007fc969111835 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1
#8  0x00007fc925af7b0a in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.8.so.1

it looks like 3.8 and 6.0 are both loaded, and lead to an ABI problem. Please fix your setup such that this doesn't happen. Do you maybe se LD_LIBRARY_PATH manually or something like that?