Bug 505541

Summary: Dolphin crashes with segmentation fault when accessing encrypted pen drive
Product: [Applications] dolphin Reporter: nestolea <nestolea>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: kdedev, kfm-devel
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace from crash after mounting encrypted pen drive partition

Description nestolea 2025-06-12 18:58:16 UTC
Created attachment 182234 [details]
Backtrace from crash after mounting encrypted pen drive partition

SUMMARY
Dolphin crashes when accessing an encrypted pen drive for the first time

STEPS TO REPRODUCE
1. Plug in encrypted pen drive
2. KDE notices this and offers to mount it. I agree. This mounts it from device /dev/sr1 .
3. I start the program from the CD-like partition on sr1 that asks for password and opens the data storage.
4. KDE notices this as new device /dev/sdb1 and offers to mount it. I agree and open it in file management. Device gets mounted successfully.
5. The Dolphin window jumps in and Dolphin crashes.
6. I then can restart Dolphin and access the storage without issues.

OBSERVED RESULT
Dolphin crashes.

EXPECTED RESULT
Dolphin should be able to access the data on external pen drive without crashing first.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.6
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.4.0-150600.23.50-default (64-bit)
Graphics Platform: offscreen
Processors: 12 × 12th Gen Intel® Core™ i5-12600
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 770

ADDITIONAL INFORMATION
Using standard KDE packages from distribution repository.
Hardware is a Kingston Datatraveller pen drive with encryption.
If I plug it into the USB port of my computer, there is a small partition that can be mounted like a CD drive. This contains the program that asks for the password and makes the rest of the storage available when started.
This was working fine up to (including) openSUSE Leap 15.5 .

Newbie here, but willing to learn and provide missing pieces. Just let me know.
Comment 1 TraceyC 2025-06-12 20:00:55 UTC
Searchable backtrace

Application: Dolphin (dolphin), signal: Segmentation fault

[KCrash Handler]
#4  QUrl::operator== (this=0x61005f00740081, url=...) at io/qurl.cpp:3648
#5  0x00007f532240d8d6 in KCoreDirListerCache::emitRefreshItem(KFileItem const&, KFileItem const&) () from /usr/lib64/libKF5KIOCore.so.5
#6  0x00007f532241300f in KCoreDirListerCache::processPendingUpdates() () from /usr/lib64/libKF5KIOCore.so.5
#7  0x00007f5322413fe8 in KCoreDirListerCache::slotResult(KJob*) () from /usr/lib64/libKF5KIOCore.so.5
#8  0x00007f532071522b in QtPrivate::QSlotObjectBase::call (a=0x7fff2ac96910, r=0x7f53224a05c0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false> (sender=0x555e7b019dc0, signal_index=6, argv=0x7fff2ac96910) at kernel/qobject.cpp:3925
#10 0x00007f532070e5f2 in QMetaObject::activate (sender=sender@entry=0x555e7b019dc0, m=m@entry=0x7f5321b26020 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff2ac96910) at kernel/qobject.cpp:3985
#11 0x00007f5321acd13c in KJob::result (this=this@entry=0x555e7b019dc0, _t1=<optimized out>, _t1@entry=0x555e7b019dc0, _t2=...) at /usr/src/debug/kcoreaddons-5.115.0-150600.1.3.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:633
#12 0x00007f5321ace651 in KJob::finishJob (this=0x555e7b019dc0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons-5.115.0-150600.1.3.x86_64/src/lib/jobs/kjob.cpp:98
#13 0x00007f532071522b in QtPrivate::QSlotObjectBase::call (a=0x7fff2ac96a00, r=0x555e7b019dc0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x555e7ad120f0, signal_index=7, argv=0x7fff2ac96a00) at kernel/qobject.cpp:3925
#15 0x00007f53223ac6e3 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#16 0x00007f53223aac86 in KIO::SlaveInterface::dispatch() () from /usr/lib64/libKF5KIOCore.so.5
#17 0x00007f53223afd69 in KIO::Slave::gotInput() () from /usr/lib64/libKF5KIOCore.so.5
#18 0x00007f532071522b in QtPrivate::QSlotObjectBase::call (a=0x7fff2ac96c70, r=0x555e7ad120f0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#19 doActivate<false> (sender=0x555e7ab45160, signal_index=3, argv=0x7fff2ac96c70) at kernel/qobject.cpp:3925
#20 0x00007f532070bc0b in QObject::event (this=0x555e7ab45160, e=0x555e7b07e0a0) at kernel/qobject.cpp:1347
#21 0x00007f532139f87c in QApplicationPrivate::notify_helper (this=this@entry=0x555e7a147e00, receiver=receiver@entry=0x555e7ab45160, e=e@entry=0x555e7b07e0a0) at kernel/qapplication.cpp:3640
#22 0x00007f53213a663f in QApplication::notify (this=<optimized out>, receiver=0x555e7ab45160, e=0x555e7b07e0a0) at kernel/qapplication.cpp:3164
#23 0x00007f53206d7d53 in QCoreApplication::notifyInternal2 (receiver=0x555e7ab45160, event=0x555e7b07e0a0) at kernel/qcoreapplication.cpp:1064
#24 0x00007f53206d7f2e in QCoreApplication::sendEvent (receiver=receiver@entry=0x555e7ab45160, event=event@entry=0x555e7b07e0a0) at kernel/qcoreapplication.cpp:1462
#25 0x00007f53206da771 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x555e7a124030) at kernel/qcoreapplication.cpp:1821
#26 0x00007f53206dacf8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1680
#27 0x00007f532073aad3 in postEventSourceDispatch (s=0x555e7a217af0) at kernel/qeventdispatcher_glib.cpp:277
#28 0x00007f531d515fac in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f531d517bd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f531d5181cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f532073a17c in QEventDispatcherGlib::processEvents (this=0x555e7a225f00, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007f53206d65ba in QEventLoop::exec (this=this@entry=0x7fff2ac97220, flags=..., flags@entry=...) at kernel/qeventloop.cpp:235
#33 0x00007f53206dfdf7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#34 0x0000555e65364ee8 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin-23.08.5-bp156.2.2.x86_64/src/main.cpp:238
[Inferior 1 (process 12584) detached]
Comment 2 TraceyC 2025-06-12 20:08:33 UTC
Hi, I'm afraid Dolphin 23.08.5 is unfortunately no longer eligible for support or maintenance from KDE.

KDE projects typically move quickly, and bugs in one version are often fixed in the next one. Please update to Dolphin 25.04 as soon as your distribution offers it to you, or use other application distribution methods such as Flathub. If you need support for Dolphin 23.08.5, please contact your distribution, who bears the responsibility of providing support for older software in their "long-term support" releases.

If this issue is still reproducible in Dolphin 25.04.1 or later, feel free to re-open this bug report.

Thanks for understanding!