Bug 451615 - Kate unexecpted crash when opening settings
Summary: Kate unexecpted crash when opening settings
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
: 453889 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-17 10:33 UTC by michael.schmid.ms
Modified: 2022-05-17 07:36 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Katerc file (2.63 KB, text/plain)
2022-03-18 09:59 UTC, michael.schmid.ms
Details
kdeglobals file (4.15 KB, text/plain)
2022-03-18 10:00 UTC, michael.schmid.ms
Details
New crash information added by DrKonqi (6.67 KB, text/plain)
2022-04-24 03:52 UTC, Eric Kotato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michael.schmid.ms 2022-03-17 10:33:54 UTC
Application: kate (22.03.80)

Qt Version: 5.15.3
Frameworks Version: 5.93.0
Operating System: Linux 5.13.0-35-generic x86_64
Windowing System: Wayland
Distribution: KDE neon Testing Edition
DrKonqi: 5.24.3 [CoredumpBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I wanted to open the settings for kate.
FYI: I use a global menu widget in my panel.
After accessing "Settings"  > Configure Kate the main Kate view disappears and a notifications appears that says "Kate crashed unexpectedly."

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault

[New LWP 9650]
[New LWP 9652]
[New LWP 9651]
[New LWP 9653]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/kate'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
[Current thread is 1 (Thread 0x7f3561d079c0 (LWP 9650))]
__preamble__
[Current thread is 1 (Thread 0x7f3561d079c0 (LWP 9650))]

Thread 4 (Thread 0x7f355faa6700 (LWP 9653)):
#0  0x00007f3565cdb9cf in __GI___poll (fds=0x7f3548004a60, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f35641da36e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f35641da4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f35662ac642 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f356625087b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f356606a442 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f356730af4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f356606b623 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f3564beb609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f3565ce8163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f3560bda700 (LWP 9651)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b1c51dab94) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b1c51dab40, cond=0x55b1c51dab68) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b1c51dab68, mutex=0x55b1c51dab40) at pthread_cond_wait.c:638
#3  0x00007f356607168b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3563fe6a0d in ?? () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#5  0x00007f356606b623 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f3564beb609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f3565ce8163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f35603d9700 (LWP 9652)):
#0  0x00007f3565cdb9cf in __GI___poll (fds=0x7f35603d8be0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3563fe6a66 in ?? () from /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#2  0x00007f356606b623 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f3564beb609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#4  0x00007f3565ce8163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f3561d079c0 (LWP 9650)):
[KCrash Handler]
#3  0x00007f35677789fe in QMapData<KEntryKey, KEntry>::findNode (this=0x73656f30, akey=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:285
#4  0x00007f35677768f0 in QMap<KEntryKey, KEntry>::constFind (this=0x55b1c5edb5a0, akey=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:850
#5  KEntryMap::constFindEntry (this=this@entry=0x55b1c5edb5a0, group=..., key=..., flags=...) at ./src/core/kconfigdata.cpp:60
#6  0x00007f3567776a1f in KEntryMap::getEntry (this=this@entry=0x55b1c5edb5a0, group=..., key=..., defaultValue=..., flags=..., flags@entry=..., expand=0x7fffb11a6e47) at ./src/core/kconfigdata.cpp:217
#7  0x00007f3567768ccd in KConfigPrivate::lookupData (this=this@entry=0x55b1c5edb580, group=..., key=key@entry=0x7f35618fdb26 "View Style", flags=..., flags@entry=..., expand=expand@entry=0x7fffb11a6e47) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257
#8  0x00007f356777ba04 in KConfigGroup::readEntry (this=this@entry=0x55b1c5788720, key=key@entry=0x7f35618fdb26 "View Style", aDefault=...) at /usr/include/c++/9/bits/atomic_base.h:326
#9  0x00007f356777bc40 in KConfigGroup::readEntry (this=0x55b1c5788720, key=0x7f35618fdb26 "View Style", aDefault=0x7f35618fdb1b "DetailTree") at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:706
#10 0x00007f3561887f61 in KDirOperator::readConfig(KConfigGroup const&) () from /lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#11 0x00007f355ed06c24 in KateFileBrowser::readSessionConfig (this=this@entry=0x55b1c64d0b10, cg=...) at ./addons/filebrowser/katefilebrowser.cpp:160
#12 0x00007f355ed0408d in KateFileBrowserPluginView::createFileBrowser (this=0x55b1c5782e90, visible=true) at /usr/include/c++/9/bits/unique_ptr.h:360
#13 0x00007f355ed048d4 in KateFileBrowserPluginView::createFileBrowser (visible=true, this=<optimized out>) at ./addons/filebrowser/katefilebrowserplugin.cpp:94
#14 KateFileBrowserPlugin::configPage (this=0x55b1c5339dc0, number=<optimized out>, parent=0x55b1c5fda5d0) at ./addons/filebrowser/katefilebrowserplugin.cpp:56
#15 0x000055b1c4997e52 in KateConfigDialog::addPluginPage (this=this@entry=0x55b1c5fda5d0, plugin=0x55b1c5339dc0) at ./kate/kateconfigdialog.cpp:306
#16 0x000055b1c4998061 in KateConfigDialog::addPluginPages (this=this@entry=0x55b1c5fda5d0) at ./kate/kateconfigdialog.cpp:286
#17 0x000055b1c499b449 in KateConfigDialog::KateConfigDialog (this=0x55b1c5fda5d0, parent=<optimized out>) at ./kate/kateconfigdialog.cpp:63
#18 0x000055b1c492efd5 in KateMainWindow::showPluginConfigPage (id=0, configpageinterface=0x0, this=0x55b1c51df630) at ./kate/katemainwindow.cpp:896
#19 KateMainWindow::showPluginConfigPage (this=0x55b1c51df630, configpageinterface=0x0, id=0) at ./kate/katemainwindow.cpp:890
#20 0x000055b1c497e10a in KateMainWindow::qt_static_metacall (_o=0x55b1c51df630, _c=<optimized out>, _id=<optimized out>, _a=0x7fffb11a7340) at ./obj-x86_64-linux-gnu/kate/kate-lib_autogen/EWIEGA46WW/moc_katemainwindow.cpp:408
#21 0x00007f3566288e30 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f3566d8f8e6 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f3566d91fb8 in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f356627f959 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f3566d92897 in QAction::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f3566d95dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f3566d9ebd8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f3566251d7a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f3566254681 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f35662acfe7 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f35641da17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f35641da400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f35641da4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f35662ac642 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f356625087b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f3566258a24 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x000055b1c492382b in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:714

Possible duplicates by query: bug 442873, bug 421596, bug 301772, bug 294565.

Reported using DrKonqi
Comment 1 Alexander Lohnau 2022-03-17 16:35:02 UTC
It works fine for me on Neon-unstable Wayland with the global menu in my panel.

Please attach your ~/.config/katerc and maybe ~/.config/kdeglobals, then I will see if the crash is reproducible on my system too.
Comment 2 michael.schmid.ms 2022-03-18 09:59:01 UTC
Created attachment 147578 [details]
Katerc file
Comment 3 michael.schmid.ms 2022-03-18 10:00:23 UTC
Created attachment 147579 [details]
kdeglobals file

As requested by Alexander Lohnau.
Comment 4 michael.schmid.ms 2022-03-18 10:02:52 UTC
(In reply to Alexander Lohnau from comment #1)
> It works fine for me on Neon-unstable Wayland with the global menu in my
> panel.
> 
> Please attach your ~/.config/katerc and maybe ~/.config/kdeglobals, then I
> will see if the crash is reproducible on my system too.

Thanks for looking in to the issue. I might add that I am running neon as a virtual machine, it might just be on my side.
Also I have added the requested files.
Comment 5 michael.schmid.ms 2022-03-18 10:39:06 UTC
I encountered the problem right after I updated the packages.
After one reboot, I tried it again and it works.
Comment 6 Eric Kotato 2022-04-24 03:52:48 UTC
Created attachment 148334 [details]
New crash information added by DrKonqi

kate (22.04.0) using Qt 5.15.3

Same happened on Arch. Reproducible in window menu too.

-- Backtrace (Reduced):
#6  QFlags<KEntryMap::SearchFlag>::operator|= (other=<optimized out>, this=<optimized out>) at /usr/src/debug/kconfig-5.93.0/src/core/kconfig.cpp:1045
#7  KConfigPrivate::lookupData (this=0x3000a0009, group=..., key=0x7f1673954f39 "View Style", flags=..., expand=0x7ffc4467fdf7) at /usr/src/debug/kconfig-5.93.0/src/core/kconfig.cpp:1046
#8  0x00007f167a859d65 in KConfigGroup::readEntry (this=0x7ffc4467fdf8, this@entry=0x56158fa2b990, key=key@entry=0x7f1673954f39 "View Style", aDefault=...) at /usr/src/debug/kconfig-5.93.0/src/core/kconfiggroup.cpp:674
#9  0x00007f167a859f93 in KConfigGroup::readEntry (this=this@entry=0x56158fa2b990, key=key@entry=0x7f1673954f39 "View Style", aDefault=aDefault@entry=0x7f1673954f2e "DetailTree") at /usr/src/debug/kconfig-5.93.0/src/core/kconfiggroup.cpp:659
#10 0x00007f16738edb23 in KDirOperator::readConfig (this=0x5615904bfc90, configGroup=...) at /usr/src/debug/kio-5.93.0/src/filewidgets/kdiroperator.cpp:2442
Comment 7 Waqar Ahmed 2022-05-17 07:29:32 UTC
*** Bug 453889 has been marked as a duplicate of this bug. ***
Comment 8 Sam 2022-05-17 07:33:59 UTC
Is this supposed to be marked as resolved?
Comment 9 Waqar Ahmed 2022-05-17 07:36:52 UTC
yes