Bug 497133

Summary: Dolphin crashes in DolphinSearchBox::setSearchPath() when trying to access an MTP path
Product: [Applications] dolphin Reporter: Nate Graham <nate>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: akselmo, kfm-devel, nicolas.fella
Priority: NOR    
Version: git-master   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nate Graham 2024-12-06 16:46:15 UTC
Git master everything KDE.

STEPS TO REPRODUCE
1. Plug in an Android smartphone
2. Tap "allow" on the phone
3. In the Disks & Devices popup, click "Open in File Manager"

OBSERVED RESULT
Dolphin crashes 100% of the time like so:

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11,
    no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7fe2e3d04d80 (LWP 412859))]
(gdb) bt
#0  __pthread_kill_implementation
    (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0)
    at pthread_kill.c:44
#1  0x00007fe2ea07ed03 in __pthread_kill_internal
    (threadid=<optimized out>, signo=11) at pthread_kill.c:78
#2  0x00007fe2ea025d1e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007fe2ed60a5ab in KCrash::defaultCrashHandler (sig=11)
    at /home/nate/kde/src/kcrash/src/kcrash.cpp:596
#4  0x00007fe2ea025dd0 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007fe2eb9829d3 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::get (this=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/tools/qscopedpointer.h:112
#6  qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > >
    (ptr=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/global/qtclasshelpermacros.h:103
#7  QAbstractButton::d_func (this=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/widgets/widgets/qabstractbutton.h:116
#8  QAbstractButton::setChecked (this=0x0, checked=false)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/widgets/widgets/qabstractbutton.cpp:586
#9  0x000000000045428e in DolphinSearchBox::setSearchPath (this=0x1fac1360, url=...)
    at /home/nate/kde/src/dolphin/src/search/dolphinsearchbox.cpp:90
#10 0x0000000000431dec in DolphinViewContainer::redirect
    (this=0x1faecfd0, oldUrl=<optimized out>, newUrl=...)
    at /home/nate/kde/src/dolphin/src/dolphinviewcontainer.cpp:900
#11 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x1fcf2bd0, r=<optimized out>, a=0x7ffc1dc8ba80)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#12 doActivate<false> (sender=0x1fc202a0, signal_index=38, argv=0x7ffc1dc8ba80)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#13 0x00007fe2ea7520c7 in QMetaObject::activate
    (sender=sender@entry=0x1fc202a0, m=m@entry=0x7fe2ee15d440, local_signal_index=local_signal_index@entry=31, argv=argv@entry=0x7ffc1dc8ba80)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4180
#14 0x00007fe2ee06e85a in DolphinView::redirection
    (this=this@entry=0x1fc202a0, _t1=..., _t2=...)
    at /home/nate/kde/build/dolphin/src/dolphinprivate_autogen/include/moc_dolphinview.cpp:1525
#15 0x00007fe2ee06f626 in DolphinView::slotDirectoryRedirection
    (this=0x1fc202a0, oldUrl=..., newUrl=...)
    at /home/nate/kde/src/dolphin/src/views/dolphinview.cpp:1730
#16 DolphinView::slotDirectoryRedirection (this=0x1fc202a0, oldUrl=..., newUrl=...)
    at /home/nate/kde/src/dolphin/src/views/dolphinview.cpp:1727
#17 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x1f59eb90, r=<optimized out>, a=0x7ffc1dc8bbe0)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#18 doActivate<false> (sender=0x1fc20af0, signal_index=19, argv=0x7ffc1dc8bbe0)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#19 0x00007fe2ea7520c7 in QMetaObject::activate
    (sender=<optimized out>, m=m@entry=0x7fe2ee157740, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x7ffc1dc8bbe0)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4180
#20 0x00007fe2edfd28da in KFileItemModel::directoryRedirection
    (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>)
    at /home/nate/kde/build/dolphin/src/dolphinprivate_autogen/include/moc_kfileitemmodel.cpp:426
#21 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x1fc29900, r=<optimized out>, a=0x7ffc1dc8bd00)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#22 doActivate<false> (sender=0x1fc23fc0, signal_index=8, argv=0x7ffc1dc8bd00)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#23 0x00007fe2ea7520c7 in QMetaObject::activate
    (sender=<optimized out>, m=m@entry=0x7fe2ed7b4f20, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7ffc1dc8bd00)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4180
#24 0x00007fe2ed6cee3a in KCoreDirLister::redirection
    (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>)
    at /home/nate/kde/build/kio/src/core/KF6KIOCore_autogen/include/moc_kcoredirlister.cpp:515
#25 0x00007fe2ed6e2fc9 in KCoreDirListerCache::slotRedirection
    (this=0x1f98ff00, j=0x1f593d10, url=<optimized out>)
    at /home/nate/kde/src/kio/src/core/kcoredirlister.cpp:1378
#26 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x1fddebe0, r=<optimized out>, a=0x7ffc1dc8c010)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#27 doActivate<false> (sender=0x1f593d10, signal_index=21, argv=0x7ffc1dc8c010)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#28 0x00007fe2ea7520c7 in QMetaObject::activate
    (sender=<optimized out>, m=m@entry=0x7fe2ed7b2f60 <KIO::ListJob::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffc1dc8c010)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4180
#29 0x00007fe2ed694357 in KIO::ListJob::redirection
    (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>)
    at /home/nate/kde/build/kio/src/core/KF6KIOCore_autogen/include/moc_listjob.cpp:268
#30 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x1fb87cb0, r=<optimized out>, a=0x7ffc1dc8c250)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#31 doActivate<false> (sender=0x2026fea0, signal_index=19, argv=0x7ffc1dc8c250)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#32 0x00007fe2ea7520c7 in QMetaObject::activate
    (sender=sender@entry=0x2026fea0, m=m@entry=0x7fe2ed7b5720 <KIO::WorkerInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=16, argv=argv@entry=0x7ffc1dc8c250)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4180
#33 0x00007fe2ed70653a in KIO::WorkerInterface::redirection
    (this=0x2026fea0, _t1=...)
    at /home/nate/kde/build/kio/src/core/KF6KIOCore_autogen/include/moc_workerinterface_p.cpp:593
#34 KIO::WorkerInterface::dispatch
    (this=0x2026fea0, _cmd=20, rawdata=<optimized out>)
    at /home/nate/kde/src/kio/src/core/workerinterface.cpp:216
#35 0x00007fe2ed7033aa in KIO::WorkerInterface::dispatch (this=0x2026fea0)
    at /home/nate/kde/src/kio/src/core/workerinterface.cpp:58
#36 0x00007fe2ed700518 in KIO::Worker::gotInput (this=0x2026fea0)
    at /home/nate/kde/src/kio/src/core/worker.cpp:260
#37 0x00007fe2ea75bac1 in QtPrivate::QSlotObjectBase::call
    (this=0x2015a440, r=<optimized out>, a=0x7ffc1dc8c418)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobjectdefs_impl.h:486
#38 doActivate<false> (sender=0x1f5f8fe0, signal_index=3, argv=0x7ffc1dc8c418)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:4120
#39 0x00007fe2ea74d172 in QObject::event (this=0x1f5f8fe0, e=0x1ffe6170)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qobject.cpp:1419
#40 0x00007fe2eb83d6b8 in QApplicationPrivate::notify_helper
    (this=<optimized out>, receiver=0x1f5f8fe0, e=0x1ffe6170)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/widgets/kernel/qapplication.cpp:3294
#41 0x00007fe2ea6f3a38 in QCoreApplication::notifyInternal2
    (receiver=0x1f5f8fe0, event=0x1ffe6170)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1165
#42 0x00007fe2ea6f3c8d in QCoreApplication::sendEvent
    (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1609
#43 0x00007fe2ea6f7765 in QCoreApplicationPrivate::sendPostedEvents
    (receiver=0x0, event_type=0, data=0x1f307fb0)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1965
#44 0x00007fe2ea6f8b6d in QCoreApplication::sendPostedEvents
    (receiver=<optimized out>, event_type=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qcoreapplication.cpp:1797
#45 0x00007fe2ea9ea68f in postEventSourceDispatch (s=0x1f3714b0)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#46 0x00007fe2e74f128c in g_main_dispatch (context=0x7fe2d0000f30)
    at ../glib/gmain.c:3357
#47 g_main_context_dispatch_unlocked (context=0x7fe2d0000f30) at ../glib/gmain.c:4208
#48 0x00007fe2e75517b8 in g_main_context_iterate_unlocked.isra.0
    (context=context@entry=0x7fe2d0000f30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4273
#49 0x00007fe2e74f2783 in g_main_context_iteration
    (context=0x7fe2d0000f30, may_block=1) at ../glib/gmain.c:4338
#50 0x00007fe2ea9e9de3 in QEventDispatcherGlib::processEvents
    (this=0x1f30b880, flags=...)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:396
#51 0x00007fe2ea70221b in QEventLoop::exec
    (this=this@entry=0x7ffc1dc8c9a0, flags=..., flags@entry=...)
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/global/qflags.h:34
#52 0x00007fe2ea6fda2e in QCoreApplication::exec ()
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/corelib/global/qflags.h:74
#53 0x00007fe2eaed723d in QGuiApplication::exec ()
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/gui/kernel/qguiapplication.cpp:1975
#54 0x00007fe2eb83d629 in QApplication::exec ()
    at /usr/src/debug/qt6-qtbase-6.8.0-4.fc41.x86_64/src/widgets/kernel/qapplication.cpp:2562
#55 0x000000000040bcfd in main (argc=<optimized out>, argv=<optimized out>)
    at /home/nate/kde/src/dolphin/src/main.cpp:275
Comment 1 Nicolas Fella 2024-12-06 17:17:47 UTC

*** This bug has been marked as a duplicate of bug 497021 ***