Bug 419871

Summary: Configuring indentation rules for JSON results in crash
Product: [Applications] kate Reporter: Ancoron <ancoron.luciferis>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: sorelz.ff
Priority: NOR Keywords: drkonqi
Version First Reported In: 19.04.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ancoron 2020-04-09 10:09:34 UTC
Application: kate (19.04.3)

Qt Version: 5.12.4
Frameworks Version: 5.62.0
Operating System: Linux 5.6.0-ladydeath x86_64
Distribution: Ubuntu 19.10

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

1. Open Kate
2. Open Configure Kate >> Open/Save >> Modes & Filetypes
3. Select "Markup/JSON"
4. Set "Variables" to "kate: space-indent true; indent-width 2; tab-width 2"
5. Click "OK"
6. Open a JSON file

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb45a0f2300 (LWP 29167))]

Thread 10 (Thread 0x7fb4377fe700 (LWP 29176)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024836130) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248360e0, cond=0x556024836108) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024836108, mutex=0x5560248360e0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fb437fff700 (LWP 29175)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024836130) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248360e0, cond=0x556024836108) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024836108, mutex=0x5560248360e0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fb444851700 (LWP 29174)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024835a30) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248359e0, cond=0x556024835a08) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024835a08, mutex=0x5560248359e0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fb445052700 (LWP 29173)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024835a30) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248359e0, cond=0x556024835a08) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024835a08, mutex=0x5560248359e0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fb445853700 (LWP 29172)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024835a30) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248359e0, cond=0x556024835a08) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024835a08, mutex=0x5560248359e0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fb446054700 (LWP 29171)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024097b28) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556024097ad8, cond=0x556024097b00) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556024097b00, mutex=0x556024097ad8) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fb446855700 (LWP 29170)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556024834920) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5560248348d0, cond=0x5560248348f8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5560248348f8, mutex=0x5560248348d0) at pthread_cond_wait.c:638
#3  0x00007fb44b2b591b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#4  0x00007fb44b2b553b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#5  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb453be8700 (LWP 29169)):
#0  0x00007fb45c2875fd in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb45c288c1c in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb45c289f6b in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb45c28a9db in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb45c28abe3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb45e2f2653 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb45e2995cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fb45e0d2a45 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fb45e573efa in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fb45e0d3c92 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#11 0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb4591ec700 (LWP 29168)):
#0  0x00007fb45dd49c2f in __GI___poll (fds=fds@entry=0x7fb4591ebc68, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb45cb1f917 in poll (__timeout=-1, __nfds=1, __fds=0x7fb4591ebc68) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x5560238affa0, cond=cond@entry=0x5560238affe0, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:479
#3  0x00007fb45cb2153a in xcb_wait_for_event (c=0x5560238affa0) at ../../src/xcb_in.c:697
#4  0x00007fb4599c3288 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#5  0x00007fb45e0d3c92 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb45caf3669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007fb45dd56323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb45a0f2300 (LWP 29167)):
[KCrash Handler]
#6  0x00007fb45e1566dd in operator==(QString const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fb45fe32864 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#8  0x00007fb45fe32ded in ?? () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#9  0x00007fb45ee7304e in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fb45efbd0cb in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fb45ee30a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fb45ee39e00 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fb45e29aa2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fb45ee6f9f7 in QWidgetPrivate::show_helper() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fb45ee72b3b in QWidgetPrivate::setVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fb45efb6210 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fb45efb769c in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fb45efc88c3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fb45e2c63f8 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fb45ef25531 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fb45ef25c85 in QAbstractButton::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fb45ee73aac in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fb45ee30a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fb45ee3a053 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fb45e29aa2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fb45ee39157 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fb45ee8f14d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007fb45ee91fdc in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007fb45ee30a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007fb45ee39e00 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007fb45e29aa2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fb45e806d73 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007fb45e8085fb in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007fb45e7e226b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007fb4599c428e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#36 0x00007fb45c28a8bd in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fb45c28ab40 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fb45c28abe3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fb45e2f2635 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fb45e2995cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007fb45e2a1336 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x0000556023241ed7 in ?? ()
#43 0x00007fb45dc5b1e3 in __libc_start_main (main=0x55602323fb50, argc=1, argv=0x7ffc5719e1a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc5719e198) at ../csu/libc-start.c:308
#44 0x00005560232434ce in _start ()
[Inferior 1 (process 29167) detached]

Possible duplicates by query: bug 318468.

Reported using DrKonqi
Comment 1 elizabeth m. 2020-04-16 09:56:15 UTC
Hi Ancoron, thank you for your report,

I just tried to reproduce the bug with the steps you outlined, but I didn't experience a crash.

I am running:

Operating System: openSUSE Tumbleweed
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.6.0-1-default
OS Type: 64-bit

Kate: Version 20.03.90
Kate Part: Version 5.68.0

I tried it with an empty JSON file and then again with a JSON file with this content:
"{\"name\":\"John\",\"age\":31,\"city\":\"New York\"}"

Is there anything else you noticed that causes the crash, (e.g. does it only happen with a complex JSON file?) and if so can you give me any pointers so I can try again? Are you using any configuration settings that would affect it?

Thank you for your time
Comment 2 Bug Janitor Service 2020-05-01 04:33:10 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 3 Bug Janitor Service 2020-05-16 04:33:15 UTC
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!