Bug 415726 - SMB4K unexpected crash after resume
Summary: SMB4K unexpected crash after resume
Status: RESOLVED FIXED
Alias: None
Product: Smb4k
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Reinholdt
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-12-31 01:30 UTC by dasfreak
Modified: 2020-04-12 15:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dasfreak 2019-12-31 01:30:22 UTC
Application: smb4k (3.0.2)

Qt Version: 5.13.2
Frameworks Version: 5.65.0
Operating System: Linux 5.0.0-37-generic x86_64
Distribution: KDE neon User Edition 5.17

-- Information about the crash:
- What I was doing when the application crashed:
Was waking from a suspend. Issue with eno1 (dhcp problem) so switched to wifi. smb4k reported it had crashed. Possibly related to restoring previous mounts.

-- Backtrace:
Application: Smb4K (smb4k), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9de1860840 (LWP 25908))]

Thread 8 (Thread 0x7f9d9a787700 (LWP 5662)):
#0  0x00007f9ddd5660b4 in __GI___libc_read (fd=35, buf=0x7f9d9a786b9e, nbytes=10) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f9d9b354021 in pa_read () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#2  0x00007f9d9b5d2a2e in pa_mainloop_prepare () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f9d9b5d34a0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f9d9b5d3560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f9d9b5e13c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f9d9b383318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007f9dd90846db in start_thread (arg=0x7f9d9a787700) at pthread_create.c:463
#8  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f9d9bfff700 (LWP 25916)):
#0  0x00007f9ddd56abf9 in __GI___poll (fds=0x55b107e70ec0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9dd6f125c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9dd6f12962 in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9da19060e6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f9dd6f3a195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9dd90846db in start_thread (arg=0x7f9d9bfff700) at pthread_create.c:463
#6  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f9da0f65700 (LWP 25915)):
#0  0x00007f9ddd56abf9 in __GI___poll (fds=0x55b107e56a30, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9dd6f125c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9dd6f126dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9dd6f12721 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9dd6f3a195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9dd90846db in start_thread (arg=0x7f9da0f65700) at pthread_create.c:463
#6  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f9dabbee700 (LWP 25913)):
#0  0x00007f9dd908a9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b107c58388) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55b107c58338, cond=0x55b107c58360) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55b107c58360, mutex=0x55b107c58338) at pthread_cond_wait.c:655
#3  0x00007f9db47c32cb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f9db47c2ff7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f9dd90846db in start_thread (arg=0x7f9dabbee700) at pthread_create.c:463
#6  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f9db79d7700 (LWP 25912)):
#0  0x00007f9ddd5660b4 in __GI___libc_read (fd=18, buf=0x7f9db79d6b50, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f9dd6f572d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9dd6f120b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9dd6f12570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9dd6f126dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9dddebdb9b in QEventDispatcherGlib::processEvents (this=0x7f9dac000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f9ddde5e06a in QEventLoop::exec (this=this@entry=0x7f9db79d6d60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f9dddc793aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007f9dddc7ab52 in QThreadPrivate::start (arg=0x55b107a53290) at thread/qthread_unix.cpp:360
#9  0x00007f9dd90846db in start_thread (arg=0x7f9db79d7700) at pthread_create.c:463
#10 0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f9dbd23b700 (LWP 25911)):
#0  0x00007f9ddd56abf9 in __GI___poll (fds=0x7f9db00277e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9dd6f125c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9dd6f126dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9dddebdb9b in QEventDispatcherGlib::processEvents (this=0x7f9db0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f9ddde5e06a in QEventLoop::exec (this=this@entry=0x7f9dbd23ad30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f9dddc793aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007f9ddb17b0e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f9dddc7ab52 in QThreadPrivate::start (arg=0x7f9ddb3f2d80) at thread/qthread_unix.cpp:360
#8  0x00007f9dd90846db in start_thread (arg=0x7f9dbd23b700) at pthread_create.c:463
#9  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9dc066b700 (LWP 25910)):
#0  0x00007f9ddd56abf9 in __GI___poll (fds=0x7f9dc066ac68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9dd8c48747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9dd8c4a36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9dc3450e10 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f9dddc7ab52 in QThreadPrivate::start (arg=0x55b10792c2c0) at thread/qthread_unix.cpp:360
#5  0x00007f9dd90846db in start_thread (arg=0x7f9dc066b700) at pthread_create.c:463
#6  0x00007f9ddd57788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9de1860840 (LWP 25908)):
[KCrash Handler]
#6  Smb4KBasicNetworkItem::url (this=0xffffffff00000004) at ./core/smb4kbasicnetworkitem.cpp:170
#7  0x00007f9de1454d55 in Smb4KMounter::unmountShare (this=this@entry=0x7f9de16b0540 <_ZZN12_GLOBAL__N_17Q_QGS_p13innerFunctionEvE6holder>, share=..., silent=silent@entry=true) at ./core/smb4kmounter.cpp:755
#8  0x00007f9de14553c1 in Smb4KMounter::unmountShares (this=0x7f9de16b0540 <_ZZN12_GLOBAL__N_17Q_QGS_p13innerFunctionEvE6holder>, shares=..., silent=true) at ./core/smb4kmounter.cpp:924
#9  0x00007f9de148986c in Smb4KMounter::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./obj-x86_64-linux-gnu/core/smb4kcore_autogen/EWIEGA46WW/moc_smb4kmounter.cpp:143
#10 0x00007f9ddde908d5 in QMetaObject::activate (sender=0x7f9de16b04d0 <_ZZN12_GLOBAL__N_17Q_QGS_p13innerFunctionEvE6holder>, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=<optimized out>, argv@entry=0x7ffec6695aa0) at kernel/qobject.cpp:3809
#11 0x00007f9ddde90f97 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f9de16ae7e0 <Smb4KHardwareInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffec6695aa0) at kernel/qobject.cpp:3660
#12 0x00007f9de1487ad2 in Smb4KHardwareInterface::onlineStateChanged (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/core/smb4kcore_autogen/EWIEGA46WW/moc_smb4khardwareinterface.cpp:203
#13 0x00007f9ddde908d5 in QMetaObject::activate (sender=0x55b107a6d290, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=<optimized out>, argv@entry=0x7ffec6695be0) at kernel/qobject.cpp:3809
#14 0x00007f9ddde90f97 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f9ddc500d20 <QNetworkConfigurationManager::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffec6695be0) at kernel/qobject.cpp:3660
#15 0x00007f9ddc2153f2 in QNetworkConfigurationManager::onlineStateChanged (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qnetworkconfigmanager.cpp:236
#16 0x00007f9ddc2159a4 in QNetworkConfigurationManager::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=3, _a=<optimized out>) at .moc/moc_qnetworkconfigmanager.cpp:101
#17 0x00007f9ddde91432 in QObject::event (this=0x55b107a6d290, e=<optimized out>) at kernel/qobject.cpp:1260
#18 0x00007f9ddeec7eac in QApplicationPrivate::notify_helper (this=this@entry=0x55b10790dbc0, receiver=receiver@entry=0x55b107a6d290, e=e@entry=0x7f9db002a5c0) at kernel/qapplication.cpp:3703
#19 0x00007f9ddeecf4b0 in QApplication::notify (this=0x7ffec66962b0, receiver=0x55b107a6d290, e=0x7f9db002a5c0) at kernel/qapplication.cpp:3449
#20 0x00007f9ddde5ff08 in QCoreApplication::notifyInternal2 (receiver=0x55b107a6d290, event=0x7f9db002a5c0) at kernel/qcoreapplication.cpp:1095
#21 0x00007f9ddde600de in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7f9db002a5c0) at kernel/qcoreapplication.cpp:1490
#22 0x00007f9ddde62827 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55b10790c3d0) at kernel/qcoreapplication.cpp:1840
#23 0x00007f9ddde62db8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1694
#24 0x00007f9dddebe563 in postEventSourceDispatch (s=0x55b10795e0c0) at kernel/qeventdispatcher_glib.cpp:277
#25 0x00007f9dd6f12417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f9dd6f12650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f9dd6f126dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f9dddebdb7f in QEventDispatcherGlib::processEvents (this=0x55b10796de10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007f9ddde5e06a in QEventLoop::exec (this=this@entry=0x7ffec66961c0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#30 0x00007f9ddde673e0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#31 0x000055b105e86ca8 in main (argc=<optimized out>, argv=<optimized out>) at ./smb4k/main.cpp:202

Reported using DrKonqi
Comment 1 Alexander Reinholdt 2020-01-05 08:33:31 UTC
Thank you for the crash report. I'll investigate it as soon as possible.
Comment 2 Alexander Reinholdt 2020-04-12 15:42:19 UTC
Git commit 560432348befec911869e484a3f04a58e20bc811 by Alexander Reinholdt.
Committed on 12/04/2020 at 15:39.
Pushed by areinholdt into branch 'master'.

Fixed several issues and crashes.

The crashes that occurred when remounting shares has been eliminated.

The notification of the user after a mount or unmount has been fixed.

The unmounting of shares when the system went offline has been fixed. For this to work,
you also need the improved mount helper.

Fixed hanging of the application in several places.
Related: bug 415165, bug 419658

M  +277  -198  core/smb4kmounter.cpp
M  +1    -2    core/smb4kmounter_p.h

https://commits.kde.org/smb4k/560432348befec911869e484a3f04a58e20bc811