Bug 504017 - Dolphin crashes when connecting to an SFTP server via a shortcut on the sidebar
Summary: Dolphin crashes when connecting to an SFTP server via a shortcut on the sidebar
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 504981 507229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-05-10 15:11 UTC by kskot
Modified: 2025-08-09 15:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/182268/events/b1f814ece2ca4973a4a4f0785fb66bb7/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kskot 2025-05-10 15:11:34 UTC
SUMMARY
Dolphin crashes when clicking a second time on an SFTP shortcut via the side bar. 

STEPS TO REPRODUCE
1. Have an SFTP shortcut placed on the dolphin sidebar (sftp://user@host:22/some_dir/)
2. Click the shortcut, dolphin should connect and show directory contents as usual
3. Click the same shortcut a second time
4. Dolphin crashes

Note: The crash does not happen if the shortcut is browsed via Dolphin's Network view or directly via URL. 

OBSERVED RESULT

Dolphin crashes

EXPECTED RESULT

Dolphin does not crash

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.11.0-25-generic (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION

This only happened after upgrading to dolphin 24.04. The previous version was fine
Console output when dolphin crashes:

ASSERT: "oldJob" in file ./src/core/kcoredirlister.cpp, line 1412
KCrash: Application 'dolphin' crashing... crashRecursionCounter = 2
zsh: IOT instruction (core dumped)  dolph


Crash stack trace: 

#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x000071607c24527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x000071607c2288ff in __GI_abort () at ./stdlib/abort.c:79
#11 0x000071607cf247d9 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#12 0x000071607cf25ac7 in QMessageLogger::fatal(char const*, ...) const () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#13 0x000071607cf100d1 in qt_assert(char const*, char const*, int) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#14 0x000071607eed2a50 in ??? () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
#15 0x000071607ce77a99 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#16 0x000071607ef36ce8 in KIO::ListJob::redirection(KIO::Job*, QUrl const&) () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
#17 0x000071607ce77a99 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#18 0x000071607ef9f2d9 in ??? () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
#19 0x000071607ef9d1b7 in ??? () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
#20 0x000071607ef9afce in ??? () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6
#21 0x000071607ce77a99 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#22 0x000071607ce00b3d in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#23 0x000071607e00551d in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#24 0x000071607ceb0dd0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#25 0x000071607ceb116b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#26 0x000071607cc6209f in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#27 0x000071607a1b85b5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x000071607a217717 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x000071607a1b7a53 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x000071607cc60b3f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#31 0x000071607cebb4bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#32 0x000071607ceb405f in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#33 0x00005c769af67566 in ??? ()
#34 0x000071607c22a1ca in __libc_start_call_main (main=main@entry=0x5c769af65a50, argc=argc@entry=1, argv=argv@entry=0x7ffc1695c498) at ../sysdeps/nptl/libc_start_call_main.h:58
#35 0x000071607c22a28b in __libc_start_main_impl (main=0x5c769af65a50, argc=1, argv=0x7ffc1695c498, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc1695c488) at ../csu/libc-start.c:360
#36 0x00005c769af68d65 in ??? ()
Comment 1 TraceyC 2025-05-15 23:53:03 UTC
Thank you for the bug report. Unfortunately the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:


#11 0x000071607cf247d9 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#14 0x000071607eed2a50 in ??? () at /lib/x86_64-linux-gnu/libKF6KIOCore.so.6

Could you please install debug symbols and attach a new symbolicated backtrace generated by using `coredumpctl gdb` in a terminal window? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl for details about how to do this. Thanks again!
Comment 2 kskot 2025-05-16 14:23:18 UTC
Sadly installing debug symbols is not possible, when I try I get an error that something went wrong. But from the stdout log I provided the source of the crash is pretty clear.
Comment 3 TraceyC 2025-05-16 17:42:01 UTC
KDE Neon now has Dolphin 25.04.1. If you update to that version, can you still reproduce the crash?
There aren't (yet) any other crashes reported for Dolphin with this particular backtrace, so it may be fixed. Thanks.
Comment 4 kskot 2025-05-17 07:02:52 UTC
The bug appears in dolphin version 25.04 and 25.04.1.
Comment 5 kskot 2025-05-17 07:05:43 UTC
Debug symbol download randomly started working today, so below is the improved backtrace.

#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x0000792ea584527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x0000792ea58288ff in __GI_abort () at ./stdlib/abort.c:79
#11 0x0000792ea65247d9 in qAbort () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qassert.cpp:46
#12 qt_message_fatal<QString&> (message=..., context=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:2149
#13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x792ea6249e88 "ASSERT: \"%s\" in file %s, line %d", ap=ap@entry=0x7ffe7fc31108) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:381
#14 0x0000792ea6525ac7 in QMessageLogger::fatal (this=<optimized out>, msg=0x792ea6249e88 "ASSERT: \"%s\" in file %s, line %d") at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:883
#15 0x0000792ea65100d1 in qt_assert (assertion=assertion@entry=0x792ea86374f2 "oldJob", file=file@entry=0x792ea8637142 "./src/core/kcoredirlister.cpp", line=line@entry=1412) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qassert.cpp:105
#16 0x0000792ea8521a50 in KCoreDirListerCache::slotRedirection (this=0x60d75c25b430, j=0x60d75c63fd80, url=<optimized out>) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/src/core/kcoredirlister.cpp:1412
#17 0x0000792ea6477a99 in QtPrivate::QSlotObjectBase::call (a=0x7ffe7fc31660, r=<optimized out>, this=0x60d75cb779e0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobjectdefs_impl.h:461
#18 doActivate<false> (sender=0x60d75c63fd80, signal_index=21, argv=0x7ffe7fc31660) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:4138
#19 0x0000792ea8585ce8 in QMetaObject::activate<void, KIO::Job*, QUrl> (ret=0x0, local_signal_index=2, mo=<optimized out>, sender=<optimized out>, sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs.h:306
#20 KIO::ListJob::redirection (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/obj-x86_64-linux-gnu/src/core/KF6KIOCore_autogen/include/moc_listjob.cpp:215
#21 0x0000792ea6477a99 in QtPrivate::QSlotObjectBase::call (a=0x7ffe7fc318d0, r=<optimized out>, this=0x60d75d1136b0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobjectdefs_impl.h:461
#22 doActivate<false> (sender=0x60d75cd3f470, signal_index=19, argv=0x7ffe7fc318d0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:4138
#23 0x0000792ea85ee2d9 in QMetaObject::activate<void, QUrl> (ret=0x0, local_signal_index=16, mo=<optimized out>, sender=0x60d75cd3f470, sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs.h:306
#24 KIO::WorkerInterface::redirection (_t1=..., this=0x60d75cd3f470) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/obj-x86_64-linux-gnu/src/core/KF6KIOCore_autogen/include/moc_workerinterface_p.cpp:413
#25 KIO::WorkerInterface::dispatch (this=0x60d75cd3f470, _cmd=20, rawdata=<optimized out>) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/src/core/workerinterface.cpp:216
#26 0x0000792ea85ec1b7 in KIO::WorkerInterface::dispatch (this=0x60d75cd3f470) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/src/core/workerinterface.cpp:58
#27 0x0000792ea85e9fce in KIO::Worker::gotInput (this=0x60d75cd3f470) at /usr/src/kf6-kio-6.14.0-0zneon+24.04+noble+release+build44/src/core/worker.cpp:261
#28 0x0000792ea6477a99 in QtPrivate::QSlotObjectBase::call (a=0x7ffe7fc31aa8, r=<optimized out>, this=0x60d75cf66bc0, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobjectdefs_impl.h:461
#29 doActivate<false> (sender=0x60d75ccb9250, signal_index=3, argv=0x7ffe7fc31aa8) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:4138
#30 0x0000792ea6400b3d in QObject::event (this=0x60d75ccb9250, e=0x792e94002de0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:1431
#31 0x0000792ea760551d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x60d75ccb9250, e=0x792e94002de0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/widgets/kernel/qapplication.cpp:3301
#32 0x0000792ea64b0dd0 in QCoreApplication::notifyInternal2 (receiver=0x60d75ccb9250, event=0x792e94002de0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qcoreapplication.cpp:1106
#33 0x0000792ea64b0e1d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qcoreapplication.cpp:1546
#34 0x0000792ea64b116b in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60d75c208f80) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qcoreapplication.cpp:1879
#35 0x0000792ea626209f in postEventSourceDispatch (s=0x60d75c2ac5d0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#36 0x0000792ea38165b5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x0000792ea3875717 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x0000792ea3815a53 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x0000792ea6260b3f in QEventDispatcherGlib::processEvents (this=0x60d75c1d1bc0, flags=...) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#40 0x0000792ea64bb4bb in QEventLoop::exec (this=0x7ffe7fc31ef0, flags=...) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qflags.h:77
#41 0x0000792ea64b405f in QCoreApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qflags.h:77
#42 0x0000792ea68dd49d in QGuiApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/gui/kernel/qguiapplication.cpp:1993
#43 0x0000792ea7602209 in QApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/widgets/kernel/qapplication.cpp:2568
#44 0x000060d747b34566 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/dolphin-4:25.04.1-0zneon+24.04+noble+release+build19/src/main.cpp:273
Comment 6 TraceyC 2025-05-19 17:39:18 UTC
Thanks for your persistence in getting a more complete backtrace. This is useful information. I don't see other bugs with this backtrace at the moment.

I tested this with a few different systems and was unable to reproduce. I'll leave this open for further investigation and for others to try to reproduce.

Solus Plasma (Dolphin 25.04.1): - ok  ✅
Neon User 6.3: - ok  ✅
Neon Testing: - ok  ✅
git-master: - ok  ✅
Comment 7 TraceyC 2025-06-04 19:35:12 UTC
*** Bug 504981 has been marked as a duplicate of this bug. ***
Comment 8 TraceyC 2025-06-04 19:37:36 UTC
There's now a duplicate report with the same bt, also on Neon.

Copying the pertinent information from the other report:

==================================================
ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.14.0
Operating System: Linux 6.11.0-26-generic x86_64
Windowing System: X11
Distribution: KDE neon 6.3
DrKonqi: 6.3.5 [CoredumpBackend]

-- Information about the crash:
I have SMB shortcuts in my "Remote" section of Dolphin. I am on KDE neon 6.3

When clicking a shortcut, Dolphin crashes with the provided error logs and message.

This is the shortcut:
smb://SERVERIPHERE/ShareName/

This share requires authentication to access. The authentication is saved in my computer.

I fixed the crash by changing the shortcut to:
smb://USER@SERVERIPHERE/ShareName/

This no longer results in a crash and functions as intended :) it appears that adding the intended authenticated user to the path prevents the crash somehow.

Samba shares that do NOT require authentication to access do NOT experience this crash.

The crash can be reproduced every time.
==================================================
Comment 9 TraceyC 2025-06-04 20:39:37 UTC
I'm still not able to reproduce on Neon Testing or Neon User with this saved in "Remote"

smb://device_name/samba_share/

Nor can I reproduce by creating a bookmark, or an entry in Remote Places to
smb://10.0.0.211/vm_samba_share/

and using the bookmark / shortcut
Comment 10 estefan 2025-06-05 15:51:33 UTC
(In reply to TraceyC from comment #9)
> I'm still not able to reproduce on Neon Testing or Neon User with this saved
> in "Remote"
> 
> smb://device_name/samba_share/
> 
> Nor can I reproduce by creating a bookmark, or an entry in Remote Places to
> smb://10.0.0.211/vm_samba_share/
> 
> and using the bookmark / shortcut

Are those shares authenticated? This crash only seems to happen on my SMB shares that require authentication to access.
Comment 11 TraceyC 2025-06-05 16:40:39 UTC
(In reply to estefan from comment #10)
> Are those shares authenticated? 

Yes.
Comment 12 kskot 2025-06-06 16:25:13 UTC
I'm using ed25519 ssh keys to access my sftp connections via ssh-agent. Maybe that helps to reproduce it.
Comment 13 TraceyC 2025-07-23 02:10:46 UTC
*** Bug 507229 has been marked as a duplicate of this bug. ***
Comment 14 TraceyC 2025-07-23 02:19:28 UTC
There's now a second report with the same backtrace. Steps to reproduce from that report:

To reproduce:
1. open a sftp connection (e.g. "sftp://host")
2. change to a different url (e.g. "/home")
3. open the previous sftp connection again

Marking Confirmed since there are a couple of duplicates now
Comment 15 kskot 2025-08-09 15:39:22 UTC
fixed for me with KF 6.17