Bug 455819 - System settings crashed while editing application in MIME types
Summary: System settings crashed while editing application in MIME types
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_filetypes (other bugs)
Version First Reported In: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-23 00:05 UTC by Virinas-code
Modified: 2022-07-16 03:08 UTC (History)
2 users (show)

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


Attachments
KCrash file (7.00 KB, text/vnd.kde.kcrash-report)
2022-06-23 00:06 UTC, Virinas-code
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Virinas-code 2022-06-23 00:05:26 UTC
Application: systemsettings5 (5.20.5)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.10.0-13-amd64 x86_64
Windowing system: X11
Distribution: Debian GNU/Linux 11 (bullseye)

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

I was creating a new custom filetype in a new category. I added a new application, based on xdg-open, and when I finished editing the settings and clicked "Apply", it crashed. The apllication has not been saved.

Sorry for my English I'm French.

P.S.: Where are kcm_filetypes.so debug symbols? I can't find them...

-- Backtrace:
Application: Configuration du système (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  bm_find (uc=0xd519b42954d0, l=<optimized out>, index=<optimized out>, puc=0x7ffde277c43e, pl=pl@entry=1, skiptable=skiptable@entry=0x7ffde277abb8 '\001' <repeats 92 times>, cs=Qt::CaseSensitive) at text/qstringmatcher.cpp:75
#5  0x00007f8e15be9b95 in bm_find (cs=<optimized out>, skiptable=0x7ffde277abb8 '\001' <repeats 92 times>, pl=1, puc=<optimized out>, index=<optimized out>, l=<optimized out>, uc=<optimized out>) at text/qstringmatcher.cpp:67
#6  QStringMatcher::indexIn (this=0x7ffde277aba0, str=..., from=<optimized out>) at text/qstringmatcher.cpp:319
#7  0x00007f8e15be9bd5 in QStringMatcher::indexIn (this=this@entry=0x7ffde277aba0, str=..., from=from@entry=0) at ../../include/QtCore/../../src/corelib/text/qstringview.h:162
#8  0x00007f8e15bec617 in QString::replace (this=0x7ffde277c6c0, before=0x7ffde277c43e, blen=1, after=0x7ffde277c450, alen=2, cs=Qt::CaseSensitive) at text/qstring.cpp:3217
#9  0x00007f8e15bf7f5a in QString::replace (this=0x7ffde277c6c0, c=..., after=..., cs=Qt::CaseSensitive) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:201
#10 0x00007f8e160afcca in KConfigGroup::writeXdgListEntry(char const*, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
#11 0x00007f8e160afdd5 in KConfigGroup::writeXdgListEntry(QString const&, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
#12 0x00007f8dec0ecbc0 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#13 0x00007f8dec0ef32f in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#14 0x00007f8dec0ef6f8 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#15 0x00007f8dec0e475c in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#16 0x00007f8e1730f4c7 in KCModuleProxy::save (this=<optimized out>) at ./src/kcmoduleproxy.cpp:226
#17 0x00007f8e17348721 in ModuleView::moduleSave (this=0x558b9e0e9350, module=<optimized out>) at ./core/ModuleView.cpp:307
#18 0x00007f8e173489fe in ModuleView::moduleSave (this=<optimized out>) at ./core/ModuleView.cpp:298
#19 0x00007f8e17343616 in ModuleView::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffde277cb60) at ./obj-x86_64-linux-gnu/core/systemsettingsview_autogen/EWIEGA46WW/moc_ModuleView.cpp:133
#20 0x00007f8e15d815e0 in doActivate<false> (sender=0x558b9e0c2ed0, signal_index=9, argv=argv@entry=0x7ffde277cb60) at kernel/qobject.cpp:3898
#21 0x00007f8e15d7a900 in QMetaObject::activate (sender=sender@entry=0x558b9e0c2ed0, m=m@entry=0x7f8e16e07180 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffde277cb60) at kernel/qobject.cpp:3946
#22 0x00007f8e169f6e42 in QAbstractButton::clicked (this=this@entry=0x558b9e0c2ed0, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:308
#23 0x00007f8e169f77aa in QAbstractButtonPrivate::emitClicked (this=this@entry=0x558b9dff5660) at widgets/qabstractbutton.cpp:415
#24 0x00007f8e169f90ff in QAbstractButtonPrivate::click (this=this@entry=0x558b9dff5660) at widgets/qabstractbutton.cpp:408
#25 0x00007f8e169f92d1 in QAbstractButton::mouseReleaseEvent (this=0x558b9e0c2ed0, e=0x7ffde277d130) at widgets/qabstractbutton.cpp:1044
#26 0x00007f8e16949fae in QWidget::event (this=0x558b9e0c2ed0, event=0x7ffde277d130) at kernel/qwidget.cpp:9019
#27 0x00007f8e1690a15f in QApplicationPrivate::notify_helper (this=this@entry=0x558b9dd2e9e0, receiver=receiver@entry=0x558b9e0c2ed0, e=e@entry=0x7ffde277d130) at kernel/qapplication.cpp:3632
#28 0x00007f8e1691104b in QApplication::notify (this=0x7ffde277ce30, receiver=0x558b9e0c2ed0, e=0x7ffde277d130) at kernel/qapplication.cpp:3076
#29 0x00007f8e15d4afca in QCoreApplication::notifyInternal2 (receiver=0x558b9e0c2ed0, event=0x7ffde277d130) at kernel/qcoreapplication.cpp:1063
#30 0x00007f8e16910076 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x558b9e0c2ed0, event=event@entry=0x7ffde277d130, alienWidget=alienWidget@entry=0x558b9e0c2ed0, nativeWidget=0x558b9dfee6d0, buttonDown=buttonDown@entry=0x7f8e16e309f0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#31 0x00007f8e16962011 in QWidgetWindow::handleMouseEvent (this=0x558b9e1a4820, event=0x7ffde277d3f0) at kernel/qwidgetwindow.cpp:683
#32 0x00007f8e1696533e in QWidgetWindow::event (this=0x558b9e1a4820, event=0x7ffde277d3f0) at kernel/qwidgetwindow.cpp:300
#33 0x00007f8e1690a15f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x558b9e1a4820, e=0x7ffde277d3f0) at kernel/qapplication.cpp:3632
#34 0x00007f8e15d4afca in QCoreApplication::notifyInternal2 (receiver=0x558b9e1a4820, event=0x7ffde277d3f0) at kernel/qcoreapplication.cpp:1063
#35 0x00007f8e16222583 in QGuiApplicationPrivate::processMouseEvent (e=0x558ba4bfd850) at kernel/qguiapplication.cpp:2282
#36 0x00007f8e161f864c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#37 0x00007f8e10bc37da in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#38 0x00007f8e1387ce6b in g_main_dispatch (context=0x7f8e08005000) at ../../../glib/gmain.c:3325
#39 g_main_context_dispatch (context=0x7f8e08005000) at ../../../glib/gmain.c:4043
#40 0x00007f8e1387d118 in g_main_context_iterate (context=context@entry=0x7f8e08005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4119
#41 0x00007f8e1387d1cf in g_main_context_iteration (context=0x7f8e08005000, may_block=may_block@entry=1) at ../../../glib/gmain.c:4184
#42 0x00007f8e15da251f in QEventDispatcherGlib::processEvents (this=0x558b9de07ee0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007f8e15d4998b in QEventLoop::exec (this=this@entry=0x7ffde277d720, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#44 0x00007f8e15d51c00 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x00007f8e16215bdc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#46 0x00007f8e1690a0d5 in QApplication::exec () at kernel/qapplication.cpp:2824
#47 0x0000558b9dc9ad2c in main (argc=<optimized out>, argv=0x7ffde277d850) at ./app/main.cpp:209
[Inferior 1 (process 397764) detached]
Comment 1 Virinas-code 2022-06-23 00:06:38 UTC
Created attachment 150076 [details]
KCrash file
Comment 2 Nate Graham 2022-06-23 13:53:22 UTC
#9  0x00007f8e15bf7f5a in QString::replace (this=0x7ffde277c6c0, c=..., after=..., cs=Qt::CaseSensitive) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:201
#10 0x00007f8e160afcca in KConfigGroup::writeXdgListEntry(char const*, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
#11 0x00007f8e160afdd5 in KConfigGroup::writeXdgListEntry(QString const&, QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
#12 0x00007f8dec0ecbc0 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#13 0x00007f8dec0ef32f in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#14 0x00007f8dec0ef6f8 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
#15 0x00007f8dec0e475c in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so

Any chance you can install debug symbols for kde-cli-tools (which is where this page lives, for some reason) and get a new backtrace?
Comment 3 Bug Janitor Service 2022-07-08 04:36:48 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 4 Virinas-code 2022-07-15 16:56:18 UTC
(In reply to Nate Graham from comment #2)
> #9  0x00007f8e15bf7f5a in QString::replace (this=0x7ffde277c6c0, c=...,
> after=..., cs=Qt::CaseSensitive) at
> ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:201
> #10 0x00007f8e160afcca in KConfigGroup::writeXdgListEntry(char const*,
> QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from
> /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
> #11 0x00007f8e160afdd5 in KConfigGroup::writeXdgListEntry(QString const&,
> QStringList const&, QFlags<KConfigBase::WriteConfigFlag>) () from
> /lib/x86_64-linux-gnu/libKF5ConfigCore.so.5
> #12 0x00007f8dec0ecbc0 in ?? () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
> #13 0x00007f8dec0ef32f in ?? () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
> #14 0x00007f8dec0ef6f8 in ?? () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
> #15 0x00007f8dec0e475c in ?? () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kcm_filetypes.so
> 
> Any chance you can install debug symbols for kde-cli-tools (which is where
> this page lives, for some reason) and get a new backtrace?

Thank you for the kdi-cli-tools packet! Unfortunately, I didn't managed to reproduce the bug.
Comment 5 Nate Graham 2022-07-16 03:08:04 UTC
Hmm, then I'm afraid there's probably nothing we can do. :/ Since you're using an older Plasma version anyway, let's hope it's fixed in a newer one.