Bug 417929 - Crash in KFileItemModel::expandedParentsCount() while opening folders in tree view and deleting them
Summary: Crash in KFileItemModel::expandedParentsCount() while opening folders in tree...
Status: RESOLVED DUPLICATE of bug 380201
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
: 456295 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-20 13:35 UTC by Túlio Ribeiro dos Anjos
Modified: 2022-09-03 00:38 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.76 KB, patch)
2020-03-07 15:08 UTC, Alex Dănilă
Details
New crash information added by DrKonqi (16.36 KB, text/plain)
2022-05-12 17:30 UTC, Anton K
Details
New crash information added by DrKonqi (3.40 KB, text/plain)
2022-09-03 00:38 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Túlio Ribeiro dos Anjos 2020-02-20 13:35:18 UTC
Application: dolphin (19.04.3)

Qt Version: 5.12.4
Frameworks Version: 5.62.0
Operating System: Linux 5.3.0-29-generic x86_64
Distribution: Ubuntu 19.10

-- Information about the crash:
I was opening folders in tree view and deleting them. Crash (segmentation fault) occurred twice.

The crash can be reproduced sometimes.

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

Thread 6 (Thread 0x7fe4e2891700 (LWP 6457)):
#0  __GI___libc_read (nbytes=10, buf=0x7fe4e2890bde, fd=20) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=20, buf=0x7fe4e2890bde, nbytes=10) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fe4f3a38955 in pa_read () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.0.so
#3  0x00007fe4f4589406 in pa_mainloop_prepare () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fe4f4589ea4 in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fe4f4589f60 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fe4f459810d in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#7  0x00007fe4f3a6737c in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.0.so
#8  0x00007fe4f45dd669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#9  0x00007fe4f7e3e323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fe4e38bb700 (LWP 6452)):
#0  __GI___libc_read (nbytes=16, buf=0x7fe4e38bab90, fd=17) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=17, buf=0x7fe4e38bab90, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fe4f3d5a63f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4f3d1258e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4f3d129e2 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe4f3d12b73 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fe4f5da5653 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4f5d4c5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fe4f5b85a45 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fe4f5b86c92 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fe4f45dd669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#11 0x00007fe4f7e3e323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fe4e96d5700 (LWP 6451)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b1bc22c0e8) at ../sysdeps/unix/sysv/linux/futex-internal.h:80
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b1bc22c098, cond=0x55b1bc22c0c0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b1bc22c0c0, mutex=0x55b1bc22c098) at pthread_cond_wait.c:638
#3  0x00007fe4e9d5aabb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fe4e9d5a6db in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fe4f45dd669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fe4f7e3e323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fe4ebad6700 (LWP 6450)):
#0  0x00007fe4f3d5ec3d in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fe4f3d125fa in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe4f3d12ad0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe4f3d12b73 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe4f5da5653 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe4f5d4c5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe4f5b85a45 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe4f6026efa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fe4f5b86c92 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fe4f45dd669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#10 0x00007fe4f7e3e323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fe4f08e8700 (LWP 6449)):
#0  0x00007fe4f7e31c2f in __GI___poll (fds=0x7fe4f08e7ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe4f3b5a917 in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fe4f3b5c53a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fe4f10ee288 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fe4f5b86c92 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe4f45dd669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#6  0x00007fe4f7e3e323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fe4f179cfc0 (LWP 6448)):
[KCrash Handler]
#6  0x00007fe4f7c48113 in KFileItemModel::expandedParentsCount(KFileItemModel::ItemData const*) () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#7  0x00007fe4f7c4b3c4 in KFileItemModel::lessThan(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*, QCollator const&) const () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#8  0x00007fe4f7c5519e in KFileItemModel::insertItems(QList<KFileItemModel::ItemData*>&) () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#9  0x00007fe4f7c557a8 in KFileItemModel::dispatchPendingItemsToInsert() () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#10 0x00007fe4f7c561f6 in KFileItemModel::slotCompleted() () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#11 0x00007fe4f5d79558 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fe4f7758029 in KCoreDirLister::completed(QUrl const&) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007fe4f776b350 in ?? () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#14 0x00007fe4f5d79558 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007fe4f6e38df0 in KJob::result(KJob*, KJob::QPrivateSignal) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#16 0x00007fe4f6e398fb in KJob::finishJob(bool) () from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#17 0x00007fe4f770edd8 in KIO::SimpleJob::slotFinished() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#18 0x00007fe4f770634e in KIO::ListJob::slotFinished() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#19 0x00007fe4f5d79558 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fe4f76dd0e2 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#21 0x00007fe4f76db1bf in KIO::SlaveInterface::dispatch() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#22 0x00007fe4f76e4e22 in KIO::Slave::gotInput() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#23 0x00007fe4f5d79558 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fe4f765e70e in ?? () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#25 0x00007fe4f5d79e4a in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fe4f6838a86 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fe4f6841e00 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007fe4f5d4da2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fe4f5d506a8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007fe4f5da6037 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007fe4f3d1284d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fe4f3d12ad0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fe4f3d12b73 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fe4f5da5635 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fe4f5d4c5cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007fe4f5d54336 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007fe4f7f55cc8 in kdemain () from /lib/x86_64-linux-gnu/libkdeinit5_dolphin.so
#38 0x00007fe4f7d431e3 in __libc_start_main (main=0x55b1ba3d4060, argc=1, argv=0x7fffa438ef58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa438ef48) at ../csu/libc-start.c:308
#39 0x000055b1ba3d409e in _start ()
[Inferior 1 (process 6448) detached]

The reporter indicates this bug may be a duplicate of or related to bug 334655.

Possible duplicates by query: bug 334655.

Reported using DrKonqi
Comment 1 Alex Dănilă 2020-03-07 15:08:48 UTC
Created attachment 126654 [details]
New crash information added by DrKonqi

dolphin (19.08.1) using Qt 5.12.5

- What I was doing when the application crashed:

Opening directories in the tree view and deleting some of them.

-- Backtrace (Reduced):
#7  0x00007feca96f2b2e in KFileItemModel::expandedParentsCount(KFileItemModel::ItemData const*) () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#8  0x00007feca96f5d10 in KFileItemModel::lessThan(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*, QCollator const&) const () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#9  0x00007feca96ffa4e in KFileItemModel::insertItems(QList<KFileItemModel::ItemData*>&) () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#10 0x00007feca9700050 in KFileItemModel::dispatchPendingItemsToInsert() () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
#11 0x00007feca9700a82 in KFileItemModel::slotCompleted() () from /usr/lib/x86_64-linux-gnu/libdolphinprivate.so.5
Comment 2 Elvis Angelaccio 2020-03-14 12:04:48 UTC
Please install debug symbols for the dolphin package and then post another stacktrace.

See https://community.kde.org/Dolphin/FAQ/Crashes
Comment 3 Alex Dănilă 2020-03-21 08:52:50 UTC
Sorry, I've only seen this once and I am unable to reproduce it again (I just retried). Hopefully Túlio can help.
Comment 4 Bug Janitor Service 2020-04-05 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-04-20 04:33:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 6 Anton K 2022-05-12 17:30:44 UTC
Created attachment 148773 [details]
New crash information added by DrKonqi

dolphin (22.04.1) using Qt 5.15.3

- What I was doing when the application crashed:
I was opening folders in tree view and deleting them. Crash (segmentation fault) occurred twice.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#4  0x00007fd7219b89d3 in QHash<QByteArray, QVariant>::value (akey=..., this=0x5576d3a9c898) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:653
#5  KFileItemModel::expandedParentsCount (data=<optimized out>) at ./src/kitemviews/kfileitemmodel.cpp:1628
#6  0x00007fd7219eab59 in KItemListView::hasSiblingSuccessor (this=this@entry=0x5576d24912f0, index=0) at ./src/kitemviews/kitemlistview.cpp:2708
#7  0x00007fd7219ec7da in KItemListView::updateSiblingsInformation (this=this@entry=0x5576d24912f0, firstIndex=0, firstIndex@entry=-1, lastIndex=47, lastIndex@entry=-1) at ./src/kitemviews/kitemlistview.cpp:2692
#8  0x00007fd7219f3c32 in KItemListView::slotItemsRemoved (this=0x5576d24912f0, itemRanges=...) at ./src/kitemviews/kitemlistview.cpp:1268
Comment 7 Nicolas Fella 2022-07-06 22:41:29 UTC
*** Bug 456295 has been marked as a duplicate of this bug. ***
Comment 8 Nicolas Fella 2022-07-06 22:42:40 UTC

*** This bug has been marked as a duplicate of bug 380201 ***
Comment 9 Roke Julian Lockhart Beedell 2022-09-03 00:38:50 UTC
Created attachment 151794 [details]
New crash information added by DrKonqi

dolphin (22.04.1) using Qt 5.15.5

The folders were displaying in the wrong place - a few directories beneath where they should have - and dolphin crashed when I deleted one of these folders, potentially one which was affected by the previously described problem.

-- Backtrace (Reduced):
#4  0x00007f76039b1522 in KFileItemModel::expandedParentsCount(KFileItemModel::ItemData const*) () from /lib64/libdolphinprivate.so.5
#5  0x00007f76039dfb19 in KItemListView::hasSiblingSuccessor(int) const () from /lib64/libdolphinprivate.so.5
#6  0x00007f76039e0a0c in KItemListView::updateSiblingsInformation(int, int) () from /lib64/libdolphinprivate.so.5
#7  0x00007f76039e52fd in KItemListView::slotItemsRemoved(KItemRangeList const&) () from /lib64/libdolphinprivate.so.5
#8  0x00007f7601ac88b6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5