https://bugs.kde.org/show_bug.cgi?id=454619
Bug ID: 454619 Summary: Threading-related crash in Gwenview in file KIO worker Product: frameworks-kio Version: git master Platform: Other OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: general Assignee: kio-bugs-n...@kde.org Reporter: k...@privat.broulik.de CC: kdelibs-b...@kde.org Target Milestone: --- Gwenview crashes when closing it while it's still listing directories. STEPS TO REPRODUCE 1. Open an image in a folder with loads of images (my folder has 4000+ images) in Gwenview 2. Close Gwenview right away OBSERVED RESULT Boom, seems the thread doesn't exit cleanly, exit() is called but we don't wait for it to finish(?) EXPECTED RESULT No boom, threads exit gracefully SOFTWARE/OS VERSIONS Linux/KDE Plasma: git master as of 2022-05-30 ADDITIONAL INFORMATION Thread 1 (Thread 0x7fe77ea4d700 (LWP 75770)): [KCrash Handler] #3 QHashNode<KUserId, QString>::same_key (key0=..., h0=1464629782, this=0x41) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:156 #4 QHash<KUserId, QString>::findNode (h=1464629782, akey=..., this=0x7fe79fc12a30 <staticUserCache>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:931 #5 QHash<KUserId, QString>::findNode (this=this@entry=0x7fe79fc12a30 <staticUserCache>, akey=..., ahp=ahp@entry=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:950 #6 0x00007fe79fc06f95 in QHash<KUserId, QString>::find (akey=..., this=0x7fe79fc12a30 <staticUserCache>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrefcount.h:102 #7 getUserName (uid=...) at ./src/ioslaves/file/file_unix.cpp:174 #8 createUDSEntry (filename=..., path=..., entry=..., details=..., details@entry=..., fullPath=...) at ./src/ioslaves/file/file_unix.cpp:465 #9 0x00007fe79fc07d34 in FileProtocol::listDir (this=0x7fe76c005010, url=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringbuilder.h:164 #10 0x00007fe7b7bd11b6 in KIO::SlaveBase::dispatch (this=0x7fe76c005020, command=71, data=...) at ./src/core/slavebase.cpp:1283 #11 0x00007fe7b7bd1a06 in KIO::SlaveBase::dispatchLoop (this=0x7fe76c005020) at ./src/core/slavebase.cpp:337 #12 0x00007fe7b7c9fd43 in KIO::WorkerThread::run (this=0x55bee2611130) at /usr/include/c++/9/bits/unique_ptr.h:360 It always crashes somewhere accessing the staticUserCache in file_unix.cpp It does not happen with KIO_ENABLE_WORKER_THREADS=0 -- You are receiving this mail because: You are watching all bug changes.