Bug 424052

Summary: Dragging a deleted file in Trash folder causes a crash
Product: [Applications] dolphin Reporter: Yungchen Jen <yongzhen.ren.0423>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bugseforuns, kfm-devel, meven.car
Priority: NOR    
Version: 17.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: After doing what is in the screenshot, the program crashes

Description Yungchen Jen 2020-07-10 02:39:04 UTC
Created attachment 130018 [details]
After doing what is in the screenshot, the program crashes

SUMMARY

STEPS TO REPRODUCE

1. Open Trash folder using Dolphin
2. Select any deleted file (not a folder) and drag it to any space area in Trash
3. Dolphin closes unexpectedly and Notifications shows "Move: Failed" (if one does the same thing in a normal folder, a menu with "Copy Here nad Link Here" pops out instead)

OBSERVED RESULT

Dolphin crashes **every single time** after doing so

EXPECTED RESULT

Just show an error message under the directory panel, like dragging a folder in Trash ("Creating folders is not supported with protocol trash.")

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION

Application: Dolphin (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdf98ef1e00 (LWP 12332))]

Thread 4 (Thread 0x7fdf69d8c700 (LWP 12336)):
#0  0x00007fdf96f6d1c4 in __GI___libc_read (fd=20, buf=0x7fdf69d8bc10, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fdf937a82b0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdf937630b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdf93763570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fdf937636dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fdf975318ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fdf974d690a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fdf972f523a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fdf972fa17d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fdf953ce6db in start_thread (arg=0x7fdf69d8c700) at pthread_create.c:463
#10 0x00007fdf96f7ea3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fdf72b3b700 (LWP 12335)):
#0  0x00007fdf953d49f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55935b462758) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55935b462708, cond=0x55935b462730) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55935b462730, mutex=0x55935b462708) at pthread_cond_wait.c:655
#3  0x00007fdf7363decb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fdf7363dac7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fdf953ce6db in start_thread (arg=0x7fdf72b3b700) at pthread_create.c:463
#6  0x00007fdf96f7ea3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fdf7b1f9700 (LWP 12334)):
#0  0x00007fdf96f71cf9 in __GI___poll (fds=0x7fdf740136a0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fdf937635c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdf937636dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdf975318ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fdf974d690a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fdf972f523a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fdf8f3b0d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fdf972fa17d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fdf953ce6db in start_thread (arg=0x7fdf7b1f9700) at pthread_create.c:463
#9  0x00007fdf96f7ea3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fdf98ef1e00 (LWP 12332)):
[KCrash Handler]
#6  0x00007fdf903a8dba in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#7  0x00007fdf903a8210 in KIO::UDSEntry::stringValue(unsigned int) const () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#8  0x00007fdf903c3eab in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#9  0x00007fdf9750766f in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fdf903e543f in OrgKdeKDirNotifyInterface::FileRenamedWithLocalPath(QString const&, QString const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007fdf903e64e5 in OrgKdeKDirNotifyInterface::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007fdf8f3bc0f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#13 0x00007fdf975080c2 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fdf9593d83c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fdf95945104 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fdf974d88d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fdf974db04d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007fdf97532263 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fdf93763417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fdf93763650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fdf937636dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fdf9753188f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fdf974d690a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fdf974df9b4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fdf87f1bbaa in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#26 0x000055935af5769d in ?? ()
#27 0x000055935af58c8b in ?? ()
#28 0x000055935af5951b in ?? ()
#29 0x000055935af5400c in ?? ()
#30 0x00007fdf96e7eb97 in __libc_start_main (main=0x55935af536c0, argc=1, argv=0x7ffef3d3fbf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffef3d3fbe8) at ../csu/libc-start.c:310
#31 0x000055935af54c7a in _start ()
Comment 1 Méven Car 2020-07-10 10:02:54 UTC
This is not reproducible on current Plasma LTS version 5.18.

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 2 Patrick Silva 2020-07-10 11:50:14 UTC

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