Bug 420375

Summary: Edit programs dialog crashes in TreeView::sortItem() if either 'Sort selection' is selected with no menu item selected
Product: [Applications] kmenuedit Reporter: Bojan <bekic.bojan>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: christoph, elman, lnxusr, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.26.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bojan 2020-04-21 13:11:50 UTC
Application: kmenuedit (5.18.4)

Qt Version: 5.14.1
Frameworks Version: 5.69.0
Operating System: Linux 5.3.0-46-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

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

Choose "order by name", the edit menu dialog instantly crashes

The crash can be reproduced every time.

-- Backtrace:
Application: Уређивач К‑менија (kmenuedit), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f97853fc800 (LWP 18122))]

Thread 2 (Thread 0x7f976a63f700 (LWP 18124)):
#0  0x00007f9784cfc0b4 in __GI___libc_read (fd=7, buf=0x7f976a63eb60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f977ba832b0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f977ba3e0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f977ba3e570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f977ba3e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9780a090db in QEventDispatcherGlib::processEvents (this=0x7f9764000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f97809a863a in QEventLoop::exec (this=this@entry=0x7f976a63ed70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f97807b9317 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#8  0x00007f9781136555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f97807ba7ec in QThreadPrivate::start (arg=0x7f97813aeda0) at thread/qthread_unix.cpp:342
#10 0x00007f977dbdc6db in start_thread (arg=0x7f976a63f700) at pthread_create.c:463
#11 0x00007f9784d0d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f97853fc800 (LWP 18122)):
[KCrash Handler]
#6  TreeView::sortItem (sortType=@0x7ffdf28071d4: TreeView::SortByName, item=0x0, this=0x55afb5a0cd70) at ./treeview.cpp:1401
#7  TreeView::sort (this=0x55afb5a0cd70, sortCmd=<optimized out>) at ./treeview.cpp:1374
#8  0x00007f97809e4fe7 in QtPrivate::QSlotObjectBase::call (a=0x7ffdf28072f0, r=0x55afb5a0cd70, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#9  doActivate<false> (sender=0x55afb59e0f00, signal_index=4, argv=0x7ffdf28072f0) at kernel/qobject.cpp:3870
#10 0x00007f97809df8a2 in QMetaObject::activate (sender=sender@entry=0x55afb59e0f00, m=m@entry=0x7f97824a5340 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffdf28072f0) at kernel/qobject.cpp:3930
#11 0x00007f9781dbe3a2 in QAction::triggered (this=this@entry=0x55afb59e0f00, _t1=<optimized out>) at .moc/moc_qaction.cpp:381
#12 0x00007f9781dc0a0c in QAction::activate (this=0x55afb59e0f00, event=<optimized out>) at kernel/qaction.cpp:1161
#13 0x00007f9781f3b2ec in QMenuPrivate::activateCausedStack (this=this@entry=0x55afb59ddae0, causedStack=..., action=action@entry=0x55afb59e0f00, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1353
#14 0x00007f9781f428db in QMenuPrivate::activateAction (this=this@entry=0x55afb59ddae0, action=action@entry=0x55afb59e0f00, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1430
#15 0x00007f9781f4360d in QMenu::mouseReleaseEvent (this=<optimized out>, e=0x7ffdf28079c0) at widgets/qmenu.cpp:2910
#16 0x00007f9781e057f8 in QWidget::event (this=this@entry=0x55afb59d78d0, event=event@entry=0x7ffdf28079c0) at kernel/qwidget.cpp:9031
#17 0x00007f9781f4592b in QMenu::event (this=0x55afb59d78d0, e=0x7ffdf28079c0) at widgets/qmenu.cpp:3032
#18 0x00007f9781dc48bc in QApplicationPrivate::notify_helper (this=this@entry=0x55afb5700410, receiver=receiver@entry=0x55afb59d78d0, e=e@entry=0x7ffdf28079c0) at kernel/qapplication.cpp:3684
#19 0x00007f9781dcc908 in QApplication::notify (this=<optimized out>, receiver=0x55afb59d78d0, e=0x7ffdf28079c0) at kernel/qapplication.cpp:3128
#20 0x00007f97809a9db8 in QCoreApplication::notifyInternal2 (receiver=0x55afb59d78d0, event=0x7ffdf28079c0) at kernel/qcoreapplication.cpp:1092
#21 0x00007f97809a9f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55afb59d78d0, event=event@entry=0x7ffdf28079c0) at kernel/qcoreapplication.cpp:1499
#22 0x00007f9781dcaf8f in QApplicationPrivate::sendMouseEvent (receiver=0x55afb59d78d0, event=event@entry=0x7ffdf28079c0, alienWidget=0x0, nativeWidget=0x55afb59d78d0, buttonDown=buttonDown@entry=0x7f97824d4980 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#23 0x00007f9781e20594 in QWidgetWindow::handleMouseEvent (this=this@entry=0x55afb5d2ffc0, event=event@entry=0x7ffdf2807e40) at kernel/qwidgetwindow.cpp:572
#24 0x00007f9781e22d1a in QWidgetWindow::event (this=0x55afb5d2ffc0, event=0x7ffdf2807e40) at kernel/qwidgetwindow.cpp:295
#25 0x00007f9781dc48bc in QApplicationPrivate::notify_helper (this=this@entry=0x55afb5700410, receiver=receiver@entry=0x55afb5d2ffc0, e=e@entry=0x7ffdf2807e40) at kernel/qapplication.cpp:3684
#26 0x00007f9781dcbac0 in QApplication::notify (this=0x7ffdf28092d0, receiver=0x55afb5d2ffc0, e=0x7ffdf2807e40) at kernel/qapplication.cpp:3430
#27 0x00007f97809a9db8 in QCoreApplication::notifyInternal2 (receiver=0x55afb5d2ffc0, event=0x7ffdf2807e40) at kernel/qcoreapplication.cpp:1092
#28 0x00007f97809a9f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55afb5d2ffc0, event=event@entry=0x7ffdf2807e40) at kernel/qcoreapplication.cpp:1499
#29 0x00007f97814d6f95 in QGuiApplicationPrivate::processMouseEvent (e=0x7f976c007fd0) at kernel/qguiapplication.cpp:2209
#30 0x00007f97814d80c5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x7f976c007fd0) at kernel/qguiapplication.cpp:1941
#31 0x00007f97814b101b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1163
#32 0x00007f97766d5c8a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#33 0x00007f977ba3e417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f977ba3e650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f977ba3e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f9780a090bc in QEventDispatcherGlib::processEvents (this=0x55afb576cd40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007f97809a863a in QEventLoop::exec (this=this@entry=0x7ffdf28081e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#38 0x00007f9781f405c0 in QMenu::exec (this=<optimized out>, p=..., action=action@entry=0x0) at widgets/qmenu.cpp:2643
#39 0x00007f9781fa281e in QToolButtonPrivate::popupTimerDone (this=0x55afb5ba8770) at widgets/qtoolbutton.cpp:799
#40 0x00007f97809e4dc9 in doActivate<false> (sender=0x55afb5badb70, signal_index=7, argv=0x7ffdf2808360) at kernel/qobject.cpp:3882
#41 0x00007f97809df8a2 in QMetaObject::activate (sender=sender@entry=0x55afb5badb70, m=m@entry=0x7f97824aa6e0 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3930
#42 0x00007f9781eb04f0 in QAbstractButton::pressed (this=this@entry=0x55afb5badb70) at .moc/moc_qabstractbutton.cpp:300
#43 0x00007f9781eb082d in QAbstractButtonPrivate::emitPressed (this=0x55afb5ba8770) at widgets/qabstractbutton.cpp:429
#44 0x00007f9781eb0f2c in QAbstractButton::mousePressEvent (this=this@entry=0x55afb5badb70, e=e@entry=0x7ffdf28089c0) at widgets/qabstractbutton.cpp:984
#45 0x00007f9781fa35fa in QToolButton::mousePressEvent (this=0x55afb5badb70, e=0x7ffdf28089c0) at widgets/qtoolbutton.cpp:613
#46 0x00007f9781e0615f in QWidget::event (this=0x55afb5badb70, event=0x7ffdf28089c0) at kernel/qwidget.cpp:8653
#47 0x00007f9781eb2f0b in QAbstractButton::event (this=this@entry=0x55afb5badb70, e=e@entry=0x7ffdf28089c0) at widgets/qabstractbutton.cpp:969
#48 0x00007f9781fa3844 in QToolButton::event (this=0x55afb5badb70, event=0x7ffdf28089c0) at widgets/qtoolbutton.cpp:1002
#49 0x00007f9781dc48bc in QApplicationPrivate::notify_helper (this=this@entry=0x55afb5700410, receiver=receiver@entry=0x55afb5badb70, e=e@entry=0x7ffdf28089c0) at kernel/qapplication.cpp:3684
#50 0x00007f9781dcc908 in QApplication::notify (this=<optimized out>, receiver=0x55afb5badb70, e=0x7ffdf28089c0) at kernel/qapplication.cpp:3128
#51 0x00007f97809a9db8 in QCoreApplication::notifyInternal2 (receiver=0x55afb5badb70, event=0x7ffdf28089c0) at kernel/qcoreapplication.cpp:1092
#52 0x00007f97809a9f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55afb5badb70, event=event@entry=0x7ffdf28089c0) at kernel/qcoreapplication.cpp:1499
#53 0x00007f9781dcaf8f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55afb5badb70, event=event@entry=0x7ffdf28089c0, alienWidget=0x55afb5badb70, nativeWidget=0x55afb57ae190, buttonDown=buttonDown@entry=0x7f97824d4980 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#54 0x00007f9781e1feb1 in QWidgetWindow::handleMouseEvent (this=this@entry=0x55afb5b9f240, event=event@entry=0x7ffdf2808e40) at kernel/qwidgetwindow.cpp:673
#55 0x00007f9781e22d1a in QWidgetWindow::event (this=0x55afb5b9f240, event=0x7ffdf2808e40) at kernel/qwidgetwindow.cpp:295
#56 0x00007f9781dc48bc in QApplicationPrivate::notify_helper (this=this@entry=0x55afb5700410, receiver=receiver@entry=0x55afb5b9f240, e=e@entry=0x7ffdf2808e40) at kernel/qapplication.cpp:3684
#57 0x00007f9781dcbac0 in QApplication::notify (this=0x7ffdf28092d0, receiver=0x55afb5b9f240, e=0x7ffdf2808e40) at kernel/qapplication.cpp:3430
#58 0x00007f97809a9db8 in QCoreApplication::notifyInternal2 (receiver=0x55afb5b9f240, event=0x7ffdf2808e40) at kernel/qcoreapplication.cpp:1092
#59 0x00007f97809a9f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55afb5b9f240, event=event@entry=0x7ffdf2808e40) at kernel/qcoreapplication.cpp:1499
#60 0x00007f97814d6f95 in QGuiApplicationPrivate::processMouseEvent (e=0x55afb5d75450) at kernel/qguiapplication.cpp:2209
#61 0x00007f97814d80c5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x55afb5d75450) at kernel/qguiapplication.cpp:1941
#62 0x00007f97814b101b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1163
#63 0x00007f97766d5c8a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#64 0x00007f977ba3e417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#65 0x00007f977ba3e650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007f977ba3e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f9780a090bc in QEventDispatcherGlib::processEvents (this=0x55afb576cd40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#68 0x00007f97809a863a in QEventLoop::exec (this=this@entry=0x7ffdf28091e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#69 0x00007f97809b1db0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1400
#70 0x00007f97814cbc6c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1866
#71 0x00007f9781dc4815 in QApplication::exec () at kernel/qapplication.cpp:2824
#72 0x00007f9784ff4b10 in kdemain (argc=<optimized out>, argv=<optimized out>) at ./main.cpp:93
#73 0x00007f9784c0db97 in __libc_start_main (main=0x55afb3c82720 <main>, argc=1, argv=0x7ffdf2809418, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdf2809408) at ../csu/libc-start.c:310
#74 0x000055afb3c8275a in _start ()

Possible duplicates by query: bug 419229, bug 418595, bug 417097, bug 416486, bug 416379.

Reported using DrKonqi
Comment 1 Christoph Feck 2020-05-14 13:46:39 UTC
Right. If there is no selection, it should have disabled to Sort action.
Comment 2 Justin Zobel 2022-10-08 00:38:47 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 3 Bojan 2022-10-08 10:07:05 UTC
Sorry to say, the bug is still there, but I think it was gone for some time before and this time I actually see that it's back again and reproducible always.
Comment 4 Bug Janitor Service 2022-10-23 05:00:30 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 5 Bojan 2022-10-24 09:34:29 UTC
Still present
Comment 6 Nate Graham 2023-05-15 19:54:36 UTC
*** Bug 454543 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2023-05-15 19:55:39 UTC
*** Bug 447021 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Cullmann 2024-12-08 18:58:23 UTC
Tried that with the current release, can't reproduce that crash.