Bug 399048 - Hitting assert in ASFormatter.cpp
Summary: Hitting assert in ASFormatter.cpp
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Astyle (show other bugs)
Version: git master
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-09-25 08:58 UTC by peje66
Modified: 2018-09-25 13:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peje66 2018-09-25 08:58:56 UTC
Application: kdevelop (5.3.40)

Qt Version: 5.11.1
Frameworks Version: 5.49.0
Operating System: Linux 4.18.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
I tried to enter "Configure KDevelop" using Ctrl+Shift+, 
Also tried via the menu "Settings->Configure KDevelop"

I hit the following assert:

kdevelop: /home/peje/kdesrc/kdevelop/plugins/astyle/3rdparty/libastyle/ASFormatter.cpp:3841: std::__cxx11::string astyle::ASFormatter::peekNextText(const string&, bool, std::shared_ptr<astyle::ASPeekStream>) const: Assertion `sourceIterator->getPeekStart() == 0 || streamArg != nullptr' failed.


Compiled kdevelop master via kdesrc-build

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f20fec8ecc0 (LWP 12730))]

Thread 18 (Thread 0x7f20a7fff700 (LWP 12867)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20a7fff700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7f20c48da700 (LWP 12866)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f211793cf2a in start_thread (arg=0x7f20c48da700) at pthread_create.c:463
#10 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f20c50db700 (LWP 12865)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20c50db700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7f20c58dc700 (LWP 12864)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20c58dc700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f20c60dd700 (LWP 12863)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20c60dd700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f20c78ba700 (LWP 12862)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20c78ba700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f20d52e8700 (LWP 12861)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20d52e8700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f20d4ae7700 (LWP 12860)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b959b42 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f211793cf2a in start_thread (arg=0x7f20d4ae7700) at pthread_create.c:463
#12 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f20c70b9700 (LWP 12859)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e72a726ab4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72a726a60, cond=0x55e72a726a88) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55e72a726a88, mutex=0x55e72a726a60) at pthread_cond_wait.c:655
#3  0x00007f2118f104fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f211b955d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f211b959ae8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f211b954e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f211b957bb9 in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f211793cf2a in start_thread (arg=0x7f20c70b9700) at pthread_create.c:463
#10 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f20d5c9c700 (LWP 12748)):
#0  0x00007f2118a46204 in __GI___libc_read (fd=144, buf=0x7f20d5c9b630, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f2116315180 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cf91f in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f21162cfdf0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f211bb80be3 in KDevelop::CompletionWorkerThread::run() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.54
#9  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f211793cf2a in start_thread (arg=0x7f20d5c9c700) at pthread_create.c:463
#11 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f20e6515700 (LWP 12747)):
#0  0x00007f2118a46204 in __GI___libc_read (fd=122, buf=0x7f20e65146a0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f2116315180 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cf91f in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f21162cfdf0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f211ad86c75 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f211793cf2a in start_thread (arg=0x7f20e6515700) at pthread_create.c:463
#11 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f20e5d14700 (LWP 12741)):
#0  0x00007f2118a4a739 in __GI___poll (fds=0x7f20dc15ae40, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f21162cfe46 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f211793cf2a in start_thread (arg=0x7f20e5d14700) at pthread_create.c:463
#8  0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f20e6d81700 (LWP 12736)):
#0  0x00007f2118a46204 in __GI___libc_read (fd=23, buf=0x7f20e6d806c0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f2116315180 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cf91f in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f21162cfdf0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f211793cf2a in start_thread (arg=0x7f20e6d81700) at pthread_create.c:463
#10 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f20e7902700 (LWP 12735)):
#0  0x00007f2117942e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f20ef7e9150) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e72b4cd240, cond=0x7f20ef7e9128) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f20ef7e9128, mutex=0x55e72b4cd240) at pthread_cond_wait.c:655
#3  0x00007f2118d8038c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f20eed164e2 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#5  0x00007f20eed165f9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#6  0x00007f2118d85aff in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007f211793cf2a in start_thread (arg=0x7f20e7902700) at pthread_create.c:463
#8  0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f20effff700 (LWP 12734)):
#0  0x00007f2118a4a739 in __GI___poll (fds=0x7f20e8004b80, nfds=1, timeout=144023) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f21162cfe46 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f211ba4ae42 in KDevelop::DUChainPrivate::CleanupThread::run() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.54
#7  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f211793cf2a in start_thread (arg=0x7f20effff700) at pthread_create.c:463
#9  0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f20fca7a700 (LWP 12732)):
#0  0x00007f2118a46204 in __GI___libc_read (fd=17, buf=0x7f20fca79690, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f2116315180 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f21162cf91f in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f21162cfdf0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f21162cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f211910a23b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f2118f06176 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f211a4c0545 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f211793cf2a in start_thread (arg=0x7f20fca7a700) at pthread_create.c:463
#11 0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f20fdf40700 (LWP 12731)):
#0  0x00007f2118a4a739 in __GI___poll (fds=0x7f20fdf3f7f8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f210f865cf7 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f210f86790a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f20fe801159 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f2118f0fd47 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f211793cf2a in start_thread (arg=0x7f20fdf40700) at pthread_create.c:463
#6  0x00007f2118a54edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f20fec8ecc0 (LWP 12730)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f21189942f1 in __GI_abort () at abort.c:79
#8  0x00007f211898ba8a in __assert_fail_base (fmt=0x7f2118adfec8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f20d6f545c8 "sourceIterator->getPeekStart() == 0 || streamArg != nullptr", file=file@entry=0x7f20d6f54238 "/home/peje/kdesrc/kdevelop/plugins/astyle/3rdparty/libastyle/ASFormatter.cpp", line=line@entry=3841, function=function@entry=0x7f20d6f55360 <astyle::ASFormatter::peekNextText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::shared_ptr<astyle::ASPeekStream>) const::__PRETTY_FUNCTION__> "std::__cxx11::string astyle::ASFormatter::peekNextText(const string&, bool, std::shared_ptr<astyle::ASPeekStream>) const") at assert.c:92
#9  0x00007f211898bb02 in __GI___assert_fail (assertion=0x7f20d6f545c8 "sourceIterator->getPeekStart() == 0 || streamArg != nullptr", file=0x7f20d6f54238 "/home/peje/kdesrc/kdevelop/plugins/astyle/3rdparty/libastyle/ASFormatter.cpp", line=3841, function=0x7f20d6f55360 <astyle::ASFormatter::peekNextText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::shared_ptr<astyle::ASPeekStream>) const::__PRETTY_FUNCTION__> "std::__cxx11::string astyle::ASFormatter::peekNextText(const string&, bool, std::shared_ptr<astyle::ASPeekStream>) const") at assert.c:101
#10 0x00007f20d6f31952 in astyle::ASFormatter::peekNextText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::shared_ptr<astyle::ASPeekStream>) const () from /home/peje/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/32/kdevastyle.so
#11 0x00007f20d6f2f4c7 in astyle::ASFormatter::isPointerOrReference() const () from /home/peje/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/32/kdevastyle.so
#12 0x00007f20d6f2c136 in astyle::ASFormatter::nextLine[abi:cxx11]() () from /home/peje/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/32/kdevastyle.so
#13 0x00007f20d6f084fe in AStyleFormatter::formatSource(QString const&, QString const&, QString const&) () from /home/peje/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/32/kdevastyle.so
#14 0x00007f20d6efabda in AStylePlugin::formatSourceWithStyle(KDevelop::SourceFormatterStyle, QString const&, QUrl const&, QMimeType const&, QString const&, QString const&) const () from /home/peje/kde-5/lib/x86_64-linux-gnu/plugins/kdevplatform/32/kdevastyle.so
#15 0x00007f211cc805e6 in KDevelop::SourceFormatterSelectionEdit::updatePreview() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#16 0x00007f211cc7da90 in KDevelop::SourceFormatterSelectionEdit::resetUi() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#17 0x00007f211cc7c977 in KDevelop::SourceFormatterSelectionEdit::addSourceFormatter(KDevelop::ISourceFormatter*) () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#18 0x00007f211cc7c17b in KDevelop::SourceFormatterSelectionEdit::SourceFormatterSelectionEdit(QWidget*) () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#19 0x00007f211cca9c37 in Ui_SourceFormatterSettingsUI::setupUi(QWidget*) () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#20 0x00007f211cca8ee0 in SourceFormatterSettings::SourceFormatterSettings(QWidget*) () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#21 0x00007f211cbd449f in KDevelop::UiController::showSettingsDialog() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#22 0x00007f211cbb8be3 in KDevelop::MainWindowPrivate::settingsDialog() () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#23 0x00007f211ccc40a1 in KDevelop::MainWindowPrivate::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/peje/kde-5/lib/x86_64-linux-gnu/libKDevPlatformShell.so.54
#24 0x00007f21190e17bb in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f2119a0aef2 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f2119a0d500 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f2119a0ddb4 in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f2119a114a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f2119a18ae0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f21190b8579 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f2119482233 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#32 0x00007f211948230b in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007f2119437866 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007f2119453cbd in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007f2119459415 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#36 0x00007f2119433b6b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#37 0x00007f20fe892e5b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#38 0x00007f21190b724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f21190bf3c2 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x000055e72817e5df in main ()

Possible duplicates by query: bug 386263, bug 382799, bug 376149.

Reported using DrKonqi
Comment 1 Kevin Funk 2018-09-25 09:08:15 UTC
Ongoing discussion about this issue (including a potential fix) here:
  https://phabricator.kde.org/D15605
Comment 2 RJVB 2018-09-25 12:36:21 UTC
Git commit 9b581d93bbc5794a197287ee0923607a57e90113 by René J.V. Bertin.
Committed on 25/09/2018 at 12:36.
Pushed by rjvbb into branch '5.3'.

make AStyleStringIterator::getPeekStart() return valid values

The astyle v3 API introduced a new virtual ASSourceIterator::getPeekStart()
method that has to be implemented in classes inheriting ASourceIterator.
Currently that method is only used in an assert that verifies whether it
returns a valid (i.e. positive) value. This was overlooked in the upgrade
of the bundled astyle library code.
Differential Revision: https://phabricator.kde.org/D15605

M  +1    -1    plugins/astyle/astyle_stringiterator.cpp

https://commits.kde.org/kdevelop/9b581d93bbc5794a197287ee0923607a57e90113
Comment 3 Kevin Funk 2018-09-25 12:55:57 UTC
@peje66: Please check whether the patch fixed your issue.
Comment 4 peje66 2018-09-25 13:01:34 UTC
This fixes my issue!