Bug 457365

Summary: KDevelop 5.7.211202 always SEGV'd when it invoked files owned by UID0
Product: [Applications] kdevelop Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: crash CC: 4wy78uwh, igorkuo
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.7.211202   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.250800
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Roke Julian Lockhart Beedell 2022-08-01 09:44:57 UTC
Application: kdevelop (5.7.211202 (21.12.2))

Qt Version: 5.15.5
Frameworks Version: 5.96.0
Operating System: Linux 5.18.13-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: "Fedora release 36 (Thirty Six)"
DrKonqi: 5.25.3 [KCrashBackend]

-- Information about the crash:
kdevelop crashes when it invokes files that are owned by the superuser.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f886daf9229 in Kasten::ByteArrayView::init() () from /lib64/libKasten4Okteta2Gui.so.0
#5  0x00007f886dafd137 in Kasten::ByteArrayView::ByteArrayView(Kasten::ByteArrayDocument*, Kasten::ByteArrayViewProfileSynchronizer*) () from /lib64/libKasten4Okteta2Gui.so.0
#6  0x00007f886df7f1b5 in KDevelop::OktetaDocument::newView(Sublime::Document*) () from /usr/lib64/qt5/plugins/kdevplatform/35/kdevokteta.so
#7  0x00007f88edc9a91d in Sublime::Document::createView() () from /lib64/libKDevPlatformSublime.so.57
#8  0x00007f88f100d75a in KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) () from /lib64/libKDevPlatformShell.so.57
#9  0x00007f88f1009115 in KDevelop::DocumentControllerPrivate::openDocumentInternal(QUrl const&, QString const&, KTextEditor::Range const&, QString const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) () from /lib64/libKDevPlatformShell.so.57
#10 0x00007f88f10107ae in QtPrivate::QFunctorSlotObject<KDevelop::DocumentController::setupActions()::{lambda()#3}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /lib64/libKDevPlatformShell.so.57
#11 0x00007f88ef71e8c6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#12 0x00007f88f039c2e6 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#13 0x00007f88f039efc3 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#14 0x00007f88f0528fb2 in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#15 0x00007f88f0530e8c in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#16 0x00007f88f03e5828 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#17 0x00007f88f03a2d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007f88f03ab392 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007f88ef6eb228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#20 0x00007f88f03a9492 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#21 0x00007f88f03fefe5 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007f88f0401f50 in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f88f03a2d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#24 0x00007f88ef6eb228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#25 0x00007f88efc2adf5 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#26 0x00007f88efc09fbc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#27 0x00007f88d7581e4e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#28 0x00007f88ebcc1faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f88ebd172c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#30 0x00007f88ebcbf940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f88ef73bf5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#32 0x00007f88ef6e9c7a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#33 0x00007f88ef6f1d42 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#34 0x0000557620c873d5 in main ()
[Inferior 1 (process 253727) detached]

Reported using DrKonqi
Comment 1 Roke Julian Lockhart Beedell 2022-08-01 09:47:26 UTC
Created attachment 151045 [details]
New crash information added by DrKonqi

kdevelop (5.7.211202 (21.12.2)) using Qt 5.15.5

This time, I attempted to invoke kdevelop via dolphin rather than via its file-picker. The backtrace was slightly different, so I thought it worth uploading.

-- Backtrace (Reduced):
#4  0x00007fc98762d229 in Kasten::ByteArrayView::init() () from /lib64/libKasten4Okteta2Gui.so.0
#5  0x00007fc987631137 in Kasten::ByteArrayView::ByteArrayView(Kasten::ByteArrayDocument*, Kasten::ByteArrayViewProfileSynchronizer*) () from /lib64/libKasten4Okteta2Gui.so.0
#6  0x00007fc99c2bf1b5 in KDevelop::OktetaDocument::newView(Sublime::Document*) () from /usr/lib64/qt5/plugins/kdevplatform/35/kdevokteta.so
#7  0x00007fca0b7de91d in Sublime::Document::createView() () from /lib64/libKDevPlatformSublime.so.57
#8  0x00007fca0eb5175a in KDevelop::DocumentControllerPrivate::openDocumentInternal(KDevelop::IDocument*, KTextEditor::Range const&, QFlags<KDevelop::IDocumentController::DocumentActivation>, KDevelop::IDocument*) () from /lib64/libKDevPlatformShell.so.57
Comment 2 Roke Julian Lockhart Beedell 2025-08-27 11:10:07 UTC
Doesn't appear to reproduce on `kdevelop-25.08.0-1.fc42.x86_64.rpm`, with admin:///var/spool/abrt/last-via-server or /var/spool/mail/rpc, via BaSH or the file picker.
Comment 3 Igor Kushnir 2025-08-27 14:45:07 UTC
(In reply to Roke Julian Lockhart Beedell from comment #2)
> Doesn't appear to reproduce on `kdevelop-25.08.0-1.fc42.x86_64.rpm`, with
> admin:///var/spool/abrt/last-via-server or /var/spool/mail/rpc, via BaSH or
> the file picker.
Okteta hasn't been ported to KF6 yet. So KDevelop 6 is built without the okteta plugin. When a KF6 version of Okteta is finally released and KDevelop is rebuilt with the okteta plugin, the crash may reappear. If so, it would have to be fixed in KDevelop and/or Okteta source code.
Comment 4 Bug Janitor Service 2025-09-11 03:48:59 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!