Bug 460004 - Dolphin crashes when unmounting external hard drive
Summary: Dolphin crashes when unmounting external hard drive
Status: RESOLVED DUPLICATE of bug 467403
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-10-05 09:54 UTC by Mathias Renner
Modified: 2023-04-20 16:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.56 KB, text/plain)
2022-10-30 08:03 UTC, Félix Fernández
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Renner 2022-10-05 09:54:36 UTC
Application: dolphin (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.15.0-48-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.25
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
I unmounted my external hard drive, which is LUKS encrypted, and dolphin crashed immediately.
I did not try again, but this should not happen.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault

[New LWP 1818799]
[New LWP 1819103]
[New LWP 1819205]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f04de6e199f in __GI___poll (fds=0x7fff6abf9278, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f04d9c6e640 (LWP 1818787))]

Thread 4 (Thread 0x7f04bf7fe700 (LWP 1819205)):
#0  __GI___libc_read (nbytes=16, buf=0x7f04bf7fd9d0, fd=28) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=28, buf=0x7f04bf7fd9d0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f04dc6feb2f in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f04dc6b5ebe in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f04dc6b6312 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f04dc6b64a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f04decb2b9b in QEventDispatcherGlib::processEvents (this=0x7f04ac000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f04dec56b3b in QEventLoop::exec (this=this@entry=0x7f04bf7fdbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f04dea70342 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f04dea71543 in QThreadPrivate::start (arg=0x55aef273ee80) at thread/qthread_unix.cpp:330
#10 0x00007f04dd10f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f04de6ee133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f04d09c4700 (LWP 1819103)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55aef27d8628) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55aef27d85d8, cond=0x55aef27d8600) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55aef27d8600, mutex=0x55aef27d85d8) at pthread_cond_wait.c:647
#3  0x00007f04d0e1a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f04d0e1a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f04dd10f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f04de6ee133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f04d8e1d700 (LWP 1818799)):
#0  0x00007f04de6e199f in __GI___poll (fds=0x7f04d4016260, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f04dc6b636e in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f04dc6b64a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f04decb2b9b in QEventDispatcherGlib::processEvents (this=0x7f04d4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f04dec56b3b in QEventLoop::exec (this=this@entry=0x7f04d8e1cbb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f04dea70342 in QThread::exec (this=this@entry=0x7f04dfd9bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f04dfd17f4b in QDBusConnectionManager::run (this=0x7f04dfd9bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f04dea71543 in QThreadPrivate::start (arg=0x7f04dfd9bd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:330
#8  0x00007f04dd10f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f04de6ee133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f04d9c6e640 (LWP 1818787)):
[KCrash Handler]
#4  0x000055aef05a1087 in TerminalPanel::sendCdToTerminal (this=this@entry=0x55aef26efbb0, dir=..., addToHistory=addToHistory@entry=TerminalPanel::HistoryPolicy::SkipHistory) at ./src/panels/terminal/terminalpanel.cpp:264
#5  0x000055aef05a13a9 in TerminalPanel::goHome (this=0x55aef26efbb0) at ./src/panels/terminal/terminalpanel.cpp:58
#6  0x000055aef0572aa1 in DolphinMainWindow::slotStorageTearDownFromPlacesRequested (this=0x55aef24b9d30, mountPath=...) at ./src/dolphinmainwindow.cpp:1426
#7  0x00007f04dec8f2f2 in QtPrivate::QSlotObjectBase::call (a=0x7fff6abfa180, r=0x55aef24b9d30, this=0x55aef263f010) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false> (sender=0x55aef25c27c0, signal_index=24, argv=0x7fff6abfa180) at kernel/qobject.cpp:3919
#9  0x00007f04dec88587 in QMetaObject::activate (sender=sender@entry=0x55aef25c27c0, m=m@entry=0x55aef0628ec0 <PlacesPanel::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff6abfa180) at kernel/qobject.cpp:3979
#10 0x000055aef05d1c89 in PlacesPanel::storageTearDownRequested (this=this@entry=0x55aef25c27c0, _t1=...) at ./obj-x86_64-linux-gnu/src/dolphinstatic_autogen/DIM5AXWM7T/moc_placespanel.cpp:256
#11 0x000055aef059cacc in PlacesPanel::slotTearDownRequested (this=0x55aef25c27c0, index=...) at ./src/panels/places/placespanel.cpp:222
#12 0x00007f04e0e8479b in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#13 0x00007f04dec8f2f2 in QtPrivate::QSlotObjectBase::call (a=0x7fff6abfa3c0, r=0x55aef25c27c0, this=0x55aef28a5090) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false> (sender=0x55aef27b32e0, signal_index=8, argv=0x7fff6abfa3c0) at kernel/qobject.cpp:3919
#15 0x00007f04e0e91151 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#16 0x00007f04dec57da3 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1190
#17 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55aef28ac1f0, event=event@entry=0x7fff6abfa890) at kernel/qcoreapplication.cpp:1179
#18 0x00007f04df73de32 in QApplicationPrivate::notify_helper (this=this@entry=0x55aef2281af0, receiver=receiver@entry=0x55aef28ac1f0, e=e@entry=0x7fff6abfa890) at kernel/qapplication.cpp:3631
#19 0x00007f04df746e47 in QApplication::notify (this=<optimized out>, receiver=0x55aef28ac1f0, e=0x7fff6abfa890) at kernel/qapplication.cpp:3081
#20 0x00007f04dec5803a in QCoreApplication::notifyInternal2 (receiver=0x55aef28ac1f0, event=0x7fff6abfa890) at ../../include/QtCore/5.15.6/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#21 0x00007f04df746147 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55aef28ac1f0, event=event@entry=0x7fff6abfa890, alienWidget=alienWidget@entry=0x55aef28ac1f0, nativeWidget=0x55aef24b9d30, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619
#22 0x00007f04df79bfa4 in QWidgetWindow::handleMouseEvent (this=0x55aef26bf3b0, event=0x7fff6abfad10) at /usr/include/c++/9/bits/atomic_base.h:413
#23 0x00007f04df79f2c4 in QWidgetWindow::event (event=0x7fff6abfad10, this=0x55aef26bf3b0) at kernel/qwidgetwindow.cpp:300
#24 QWidgetWindow::event (this=0x55aef26bf3b0, event=0x7fff6abfad10) at kernel/qwidgetwindow.cpp:239
#25 0x00007f04df73de43 in QApplicationPrivate::notify_helper (this=this@entry=0x55aef2281af0, receiver=receiver@entry=0x55aef26bf3b0, e=e@entry=0x7fff6abfad10) at kernel/qapplication.cpp:3637
#26 0x00007f04df746c58 in QApplication::notify (this=0x7fff6abfb1a0, receiver=0x55aef26bf3b0, e=0x7fff6abfad10) at kernel/qapplication.cpp:3161
#27 0x00007f04dec5803a in QCoreApplication::notifyInternal2 (receiver=0x55aef26bf3b0, event=0x7fff6abfad10) at ../../include/QtCore/5.15.6/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#28 0x00007f04df03e7c0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007f04df03fe65 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007f04df0166bc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007f04d9556e3e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#32 0x00007f04dc6b617d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f04dc6b6400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f04dc6b64a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f04decb2b82 in QEventDispatcherGlib::processEvents (this=0x55aef2418cb0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#36 0x00007f04dec56b3b in QEventLoop::exec (this=this@entry=0x7fff6abfb0b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#37 0x00007f04dec5ece4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#38 0x000055aef056f6e3 in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:246
[Inferior 1 (process 1818787) detached]

Reported using DrKonqi
Comment 1 Félix Fernández 2022-10-30 08:03:13 UTC
Created attachment 153314 [details]
New crash information added by DrKonqi

dolphin (22.08.1) using Qt 5.15.6

The error took place when I was unmounting the LUKS encrypted hard drive I use for backups. I clicked on the button to unmount the open LUKS partition, then I clicked on the button to unmount the drive, and Dolphin crashed.
When I opened it again to ensure the drive was correctly unmounted and didn't break in the process, the drive was unmounted, and mounting it again didn't raise any errors, so it might be that the drive gets correctly unmounted before the crash and Dolphin just happens to crash right after unmounting, instead of during the unmounting process.
However, when I unmounted it again, this error happened again. Trying again resulted in the same crash, so I suppose that this would hoppen no matter how many times I tried.

-- Backtrace (Reduced):
#4  0x0000557b550b778a in TerminalPanel::sendCdToTerminal (this=0x557b5606e960, dir=..., addToHistory=TerminalPanel::HistoryPolicy::SkipHistory) at /usr/src/debug/dolphin-22.08.1-1.fc36.x86_64/src/panels/terminal/terminalpanel.cpp:264
#5  0x0000557b55097d3d in TerminalPanel::goHome (this=0x557b5606e960) at /usr/src/debug/dolphin-22.08.1-1.fc36.x86_64/src/panels/terminal/terminalpanel.cpp:58
#6  DolphinMainWindow::slotStorageTearDownFromPlacesRequested (this=0x557b55cf6290, mountPath=...) at /usr/src/debug/dolphin-22.08.1-1.fc36.x86_64/src/dolphinmainwindow.cpp:1426
#7  0x00007f8a79cdb9a6 in QtPrivate::QSlotObjectBase::call (a=0x7ffc181d55e0, r=<optimized out>, this=0x557b5607ecf0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false> (sender=0x557b55d34a80, signal_index=24, argv=0x7ffc181d55e0) at kernel/qobject.cpp:3919
Comment 2 Méven Car 2023-04-20 16:22:54 UTC

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