Bug 342316 - Dolphin crash on first start
Summary: Dolphin crash on first start
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 4.60
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: drkonqi
: 342012 342338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-29 18:51 UTC by Hrvoje Senjan
Modified: 2015-01-04 20:48 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
From Kcrash (6.87 KB, text/plain)
2014-12-31 19:08 UTC, Tajidin Abd
Details
possible fix for the crash (7.76 KB, patch)
2015-01-01 21:21 UTC, Emmanuel Pescosta
Details
patch-build.log (295.25 KB, text/x-log)
2015-01-01 23:37 UTC, Lane Wiscombe
Details
possible fix for the crash v2 (8.16 KB, patch)
2015-01-03 13:23 UTC, Emmanuel Pescosta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2014-12-29 18:51:17 UTC
Application: dolphin (4.60)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-rc1-1.g85f0072-desktop x86_64
Distribution: "openSUSE 20141225 (Tumbleweed) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

cleaned config for test user (~/.cache, ~/.config & ~/.local) to test plasma behaviour, and got dolphin crashed in such (missing) configuration..
after that, subsequent starts seem to haven't produced further crashes...

Qt is from 5.4 branch, KF5 master & kde-baseapps are HEAD of frameworks branch

The crash can be reproduced sometimes.

-- Backtrace:
Application: Dolphin (dolphin), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc58359a800 (LWP 19901))]

Thread 5 (Thread 0x7fc56d2be700 (LWP 19902)):
#0  0x00007fc582ead4ad in poll () at /lib64/libc.so.6
#1  0x00007fc575d26362 in  () at /usr/lib64/libxcb.so.1
#2  0x00007fc575d27e2f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007fc56f235bb9 in QXcbEventReader::run() (this=0xf7dc00) at qxcbconnection.cpp:1099
#4  0x00007fc57cc2594f in QThreadPrivate::start(void*) (arg=0xf7dc00) at thread/qthread_unix.cpp:337
#5  0x00007fc5782b43a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fc582eb5a4d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fc5626c2700 (LWP 19903)):
#0  0x00007fc5782b885f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fc566fa1363 in  () at /usr/lib64/dri/r600_dri.so
#2  0x00007fc566fa0c17 in  () at /usr/lib64/dri/r600_dri.so
#3  0x00007fc5782b43a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fc582eb5a4d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fc55d3f9700 (LWP 19904)):
#0  0x00007fc582ead4ad in poll () at /lib64/libc.so.6
#1  0x00007fc577d98be4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fc577d98cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fc57ce5719b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fc5580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007fc57cdfdd3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fc55d3f8dd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007fc57cc20d1a in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007fc57cc2594f in QThreadPrivate::start(void*) (arg=0x13c6ca0) at thread/qthread_unix.cpp:337
#7  0x00007fc5782b43a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007fc582eb5a4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fc55ca89700 (LWP 19908)):
[KCrash Handler]
#5  0x00007fc582e060f7 in raise () at /lib64/libc.so.6
#6  0x00007fc582e074ca in abort () at /lib64/libc.so.6
#7  0x00007fc582e43844 in  () at /lib64/libc.so.6
#8  0x00007fc582e48c1e in malloc_printerr () at /lib64/libc.so.6
#9  0x00007fc582e49946 in _int_free () at /lib64/libc.so.6
#10 0x00007fc576c50d5e in icu_54_1::UMemory::operator delete(void*) () at /usr/lib64/libicuuc.so.54.1
#11 0x00007fc57cce5732 in QCollatorPrivate::cleanup() (this=this@entry=0x1393510) at tools/qcollator_icu.cpp:91
#12 0x00007fc57cce5757 in QCollatorPrivate::init() (this=0x1393510) at tools/qcollator_icu.cpp:50
#13 0x00007fc57cce5a59 in QCollator::compare(QChar const*, int, QChar const*, int) const (this=0x13ea390, s1=0x15dad38, len1=18, s2=0x14ae518, len2=19) at tools/qcollator_icu.cpp:98
#14 0x00007fc582b17a2e in KFileItemModel::sortRoleCompare(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*) const (this=this@entry=0x13ea360, a=a@entry=0x1630de0, b=b@entry=0x1630900) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1757
#15 0x00007fc582b182f7 in KFileItemModel::lessThan(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*) const (this=this@entry=0x13ea360, a=0x1630de0, b=0x1630900) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1631
#16 0x00007fc582b1e1ef in merge<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (b=<optimized out>, a=<optimized out>, this=<synthetic pointer>) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1649
#17 0x00007fc582b1e1ef in merge<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., pivot=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:116
#18 0x00007fc582b1e2b1 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:54
#19 0x00007fc582b1e270 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:52
#20 0x00007fc582b1e270 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:52
#21 0x00007fc582b1e270 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:52
#22 0x00007fc582b1e270 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:52
#23 0x00007fc582b1e270 in mergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan) (begin=..., end=..., lessThan=..., lessThan@entry=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:52
#24 0x00007fc582b1f0e8 in parallelMergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan, int, int) (begin=..., end=..., lessThan=..., numberOfThreads=<optimized out>, parallelMergeSortingThreshold=<optimized out>) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:86
#25 0x00007fc582b2226e in QtConcurrent::StoredFunctorCall5<void, void (*)(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan, int, int), QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan, int, int>::runFunctor() (this=<optimized out>) at /usr/include/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:1079
#26 0x00007fc582b22cd6 in QtConcurrent::RunFunctionTask<void>::run() (this=0x1540590) at /usr/include/qt5/QtConcurrent/qtconcurrentrunbase.h:130
#27 0x00007fc57cc22a22 in QThreadPoolThread::run() (this=0x162b170) at thread/qthreadpool.cpp:93
#28 0x00007fc57cc2594f in QThreadPrivate::start(void*) (arg=0x162b170) at thread/qthread_unix.cpp:337
#29 0x00007fc5782b43a4 in start_thread () at /lib64/libpthread.so.0
#30 0x00007fc582eb5a4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fc58359a800 (LWP 19901)):
#0  0x00007fc5782b885f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fc57cc2696b in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x1613700) at thread/qwaitcondition_unix.cpp:128
#2  0x00007fc57cc2696b in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=0x16305d8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:200
#3  0x00007fc57cc1b454 in QFutureInterfaceBase::waitForFinished() (this=this@entry=0x7fffbe37d600) at thread/qfutureinterface.cpp:321
#4  0x00007fc582b1f214 in parallelMergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan, int, int) (this=0x7fffbe37d600) at /usr/include/qt5/QtCore/qfuture.h:234
#5  0x00007fc582b1f214 in parallelMergeSort<QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan>(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator, KFileItemModelLessThan, int, int) (begin=..., end=..., lessThan=lessThan@entry=..., numberOfThreads=<optimized out>, parallelMergeSortingThreshold=parallelMergeSortingThreshold@entry=100) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.h:82
#6  0x00007fc582b1f2d7 in KFileItemModel::sort(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator) const (this=this@entry=0x13ea360, begin=..., end=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1665
#7  0x00007fc582b1fcb7 in KFileItemModel::insertItems(QList<KFileItemModel::ItemData*>&) (this=0x13ea360, newItems=...) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1144
#8  0x00007fc582b205b3 in KFileItemModel::dispatchPendingItemsToInsert() (this=0x13ea360) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:1115
#9  0x00007fc582b20ff2 in KFileItemModel::slotCompleted() (this=0x13ea360) at /usr/src/debug/kde-baseapps-5.0.0git/dolphin/src/kitemviews/kfileitemmodel.cpp:867
#10 0x00007fc57ce2f0df in QMetaObject::activate(QObject*, int, int, void**) (a=0x7fffbe37d8b0, r=0x13ea360, this=0x13bec70) at ../../src/corelib/kernel/qobject_impl.h:124
#11 0x00007fc57ce2f0df in QMetaObject::activate(QObject*, int, int, void**) (sender=sender@entry=0x13ea4d0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffbe37d8b0) at kernel/qobject.cpp:3702
#12 0x00007fc57ce2fc87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x13ea4d0, m=m@entry=0x7fc5812c3980 <KCoreDirLister::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffbe37d8b0) at kernel/qobject.cpp:3582
#13 0x00007fc58105e615 in KCoreDirLister::completed(QUrl const&) (this=this@entry=0x13ea4d0, _t1=...) at /usr/src/debug/kio-5.6.0git/build/src/core/moc_kcoredirlister.cpp:461
#14 0x00007fc58106bf41 in KCoreDirListerCache::slotResult(KJob*) (this=0x7fc5812c6fe0 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, j=<optimized out>) at /usr/src/debug/kio-5.6.0git/src/core/kcoredirlister.cpp:1325
#15 0x00007fc57ce2f661 in QMetaObject::activate(QObject*, int, int, void**) (sender=sender@entry=0x13afd90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffbe37dab0) at kernel/qobject.cpp:3716
#16 0x00007fc57ce2fc87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x13afd90, m=m@entry=0x7fc57ee69180 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffbe37dab0) at kernel/qobject.cpp:3582
#17 0x00007fc57ec21a52 in KJob::result(KJob*, KJob::QPrivateSignal) (this=this@entry=0x13afd90, _t1=_t1@entry=0x13afd90) at /usr/src/debug/kcoreaddons-5.6.0git/build/src/lib/moc_kjob.cpp:548
#18 0x00007fc57ec2228c in KJob::emitResult() (this=this@entry=0x13afd90) at /usr/src/debug/kcoreaddons-5.6.0git/src/lib/jobs/kjob.cpp:293
#19 0x00007fc581027326 in KIO::SimpleJob::slotFinished() (this=this@entry=0x13afd90) at /usr/src/debug/kio-5.6.0git/src/core/simplejob.cpp:228
#20 0x00007fc581021a3e in KIO::ListJob::slotFinished() (this=0x13afd90) at /usr/src/debug/kio-5.6.0git/src/core/listjob.cpp:234
#21 0x00007fc581021631 in KIO::ListJob::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kio-5.6.0git/build/src/core/moc_listjob.cpp:122
#22 0x00007fc57ce2f661 in QMetaObject::activate(QObject*, int, int, void**) (sender=sender@entry=0x1476540, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#23 0x00007fc57ce2fc87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x1476540, m=m@entry=0x7fc5812c1480 <KIO::SlaveInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#24 0x00007fc581008be3 in KIO::SlaveInterface::finished() (this=this@entry=0x1476540) at /usr/src/debug/kio-5.6.0git/build/src/core/moc_slaveinterface.cpp:401
#25 0x00007fc58100b911 in KIO::SlaveInterface::dispatch(int, QByteArray const&) (this=0x1476540, _cmd=<optimized out>, rawdata=...) at /usr/src/debug/kio-5.6.0git/src/core/slaveinterface.cpp:159
#26 0x00007fc581008fb8 in KIO::SlaveInterface::dispatch() (this=0x1476540) at /usr/src/debug/kio-5.6.0git/src/core/slaveinterface.cpp:88
#27 0x00007fc58100d4ce in KIO::Slave::gotInput() (this=0x1476540) at /usr/src/debug/kio-5.6.0git/src/core/slave.cpp:387
#28 0x00007fc581085145 in KIO::Slave::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kio-5.6.0git/build/src/core/moc_slave.cpp:86
#29 0x00007fc57ce2f661 in QMetaObject::activate(QObject*, int, int, void**) (sender=0x146ce80, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#30 0x00007fc57ce2fc87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7fc5812bfdc0 <KIO::Connection::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#31 0x00007fc580fbb2ec in KIO::ConnectionPrivate::dequeue() (this=<optimized out>) at /usr/src/debug/kio-5.6.0git/build/src/core/moc_connection_p.cpp:140
#32 0x00007fc580fbb2ec in KIO::ConnectionPrivate::dequeue() (this=0x13b56a0) at /usr/src/debug/kio-5.6.0git/src/core/connection.cpp:45
#33 0x00007fc57ce30466 in QObject::event(QEvent*) (this=0x146ce80, e=<optimized out>) at kernel/qobject.cpp:1245
#34 0x00007fc57dd3eb5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#35 0x00007fc57dd43bc0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#36 0x00007fc57cdffde5 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7fffbe37e7e0, receiver=0x146ce80, event=event@entry=0x1630170) at kernel/qcoreapplication.cpp:930
#37 0x00007fc57ce01c7f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x1630170, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#38 0x00007fc57ce01c7f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xf56b00) at kernel/qcoreapplication.cpp:1534
#39 0x00007fc57ce022b8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1392
#40 0x00007fc57ce57d03 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0xfa89a0) at kernel/qeventdispatcher_glib.cpp:271
#41 0x00007fc577d98a04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#42 0x00007fc577d98c48 in  () at /usr/lib64/libglib-2.0.so.0
#43 0x00007fc577d98cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#44 0x00007fc57ce5717c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0xfa8980, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#45 0x00007fc57cdfdd3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffbe37e6a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#46 0x00007fc57ce053c6 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1183
#47 0x00007fc5831cf4b2 in kdemain () at /usr/lib64/libkdeinit5_dolphin.so
#48 0x00007fc582df2b45 in __libc_start_main () at /lib64/libc.so.6
#49 0x000000000040083e in _start ()

Reported using DrKonqi
Comment 1 Frank Reininghaus 2014-12-30 00:02:57 UTC
Thanks for reporting this issue. It has been reported already with a less detailed backtrace (bug 342012). It's most likely caused by https://git.reviewboard.kde.org/r/121480/, which replaces the deprecated natural sorting function from kdelibs4support by QCollator. It has turned out that the latter is, unlike the former, unfortunately not thread-safe.
Comment 2 Frank Reininghaus 2014-12-30 00:06:04 UTC
*** Bug 342012 has been marked as a duplicate of this bug. ***
Comment 3 Emmanuel Pescosta 2014-12-30 16:01:38 UTC
*** Bug 342338 has been marked as a duplicate of this bug. ***
Comment 4 Tajidin Abd 2014-12-31 19:08:29 UTC
Created attachment 90185 [details]
From Kcrash
Comment 5 Tajidin Abd 2014-12-31 19:10:23 UTC
Comment on attachment 90185 [details]
From Kcrash

I am having the same issue In Arch Linux building direct from GIT Dolphin crashes on start.
Comment 6 Lane Wiscombe 2014-12-31 19:30:04 UTC
I am also having this bug..


Application: Dolphin (dolphin), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1991496840 (LWP 4146))]

Thread 4 (Thread 0x7f1979eff700 (LWP 4148)):
#0  0x00007f19911cf44d in poll () from /usr/lib/libc.so.6
#1  0x00007f1984d329f2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f1984d3456f in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f197c0cb389 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#4  0x00007f198b763ece in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f19873d7314 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f19911d824d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f1973187700 (LWP 4149)):
#0  0x00007f1986ef6034 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f1986eb1bae in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f1986eb1dac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f198b9a5cbc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f198b94c162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f198b75ef44 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f198b763ece in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007f19873d7314 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007f19911d824d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f1971397700 (LWP 4159)):
#0  0x00007f19873dcc78 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f198b764f58 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007f198b760f6c in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007f198b763ece in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f19873d7314 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f19911d824d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f1991496840 (LWP 4146)):
[KCrash Handler]
#5  0x00007f1991123a97 in raise () from /usr/lib/libc.so.6
#6  0x00007f1991124e6a in abort () from /usr/lib/libc.so.6
#7  0x00007f19911632b3 in __libc_message () from /usr/lib/libc.so.6
#8  0x00007f199116872e in malloc_printerr () from /usr/lib/libc.so.6
#9  0x00007f1991168eeb in _int_free () from /usr/lib/libc.so.6
#10 0x00007f1985ca7c6e in icu_54::UMemory::operator delete(void*) () from /usr/lib/libicuuc.so.54
#11 0x00007f198b826902 in QCollatorPrivate::cleanup() () from /usr/lib/libQt5Core.so.5
#12 0x00007f198b826937 in QCollatorPrivate::init() () from /usr/lib/libQt5Core.so.5
#13 0x00007f198b826c49 in QCollator::compare(QChar const*, int, QChar const*, int) const () from /usr/lib/libQt5Core.so.5
#14 0x00007f1990bdbade in KFileItemModel::sortRoleCompare(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*) const () from /usr/lib/libdolphinprivate.so.5
#15 0x00007f1990bdc2a7 in KFileItemModel::lessThan(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*) const () from /usr/lib/libdolphinprivate.so.5
#16 0x00007f1990be2b50 in ?? () from /usr/lib/libdolphinprivate.so.5
#17 0x00007f1990be3267 in ?? () from /usr/lib/libdolphinprivate.so.5
#18 0x00007f1990be2c3d in ?? () from /usr/lib/libdolphinprivate.so.5
#19 0x00007f1990be54bc in ?? () from /usr/lib/libdolphinprivate.so.5
#20 0x00007f1990be5453 in ?? () from /usr/lib/libdolphinprivate.so.5
#21 0x00007f1990be55e7 in KFileItemModel::sort(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator) const () from /usr/lib/libdolphinprivate.so.5
#22 0x00007f1990be601d in KFileItemModel::insertItems(QList<KFileItemModel::ItemData*>&) () from /usr/lib/libdolphinprivate.so.5
#23 0x00007f1990be68df in KFileItemModel::dispatchPendingItemsToInsert() () from /usr/lib/libdolphinprivate.so.5
#24 0x00007f1990be74b6 in KFileItemModel::slotCompleted() () from /usr/lib/libdolphinprivate.so.5
#25 0x00007f198b97d8fa in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#26 0x00007f198ed14225 in KCoreDirLister::completed(QUrl const&) () from /usr/lib/libKF5KIOCore.so.5
#27 0x00007f198ed223ec in ?? () from /usr/lib/libKF5KIOCore.so.5
#28 0x00007f198ed23404 in ?? () from /usr/lib/libKF5KIOCore.so.5
#29 0x00007f198b97df69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#30 0x00007f198cf98712 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/libKF5CoreAddons.so.5
#31 0x00007f198cf993ea in KJob::emitResult() () from /usr/lib/libKF5CoreAddons.so.5
#32 0x00007f198ecd17df in KIO::SimpleJob::slotFinished() () from /usr/lib/libKF5KIOCore.so.5
#33 0x00007f198eccb27e in KIO::ListJob::slotFinished() () from /usr/lib/libKF5KIOCore.so.5
#34 0x00007f198eccb651 in ?? () from /usr/lib/libKF5KIOCore.so.5
#35 0x00007f198b97df69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#36 0x00007f198ecb4031 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#37 0x00007f198ecb10a7 in KIO::SlaveInterface::dispatch() () from /usr/lib/libKF5KIOCore.so.5
#38 0x00007f198ecb5ae6 in KIO::Slave::gotInput() () from /usr/lib/libKF5KIOCore.so.5
#39 0x00007f198ed41815 in ?? () from /usr/lib/libKF5KIOCore.so.5
#40 0x00007f198b97df69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#41 0x00007f198ec5334c in ?? () from /usr/lib/libKF5KIOCore.so.5
#42 0x00007f198b97f0ea in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#43 0x00007f198c242d5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#44 0x00007f198c248340 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#45 0x00007f198b94e6cb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#46 0x00007f198b95070b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#47 0x00007f198b9a58b3 in ?? () from /usr/lib/libQt5Core.so.5
#48 0x00007f1986eb1a0d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0x00007f1986eb1cf8 in ?? () from /usr/lib/libglib-2.0.so.0
#50 0x00007f1986eb1dac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#51 0x00007f198b9a5ca7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#52 0x00007f198b94c162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#53 0x00007f198b953b3c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#54 0x00007f19914f9562 in kdemain () from /usr/lib/libkdeinit5_dolphin.so
#55 0x00007f1991110040 in __libc_start_main () from /usr/lib/libc.so.6
#56 0x00000000004007fe in _start ()
Comment 7 Emmanuel Pescosta 2015-01-01 21:21:37 UTC
Created attachment 90190 [details]
possible fix for the crash

Can someone who can reproduce the crash please apply the attached collator.diff patch and check if it solves the problem? Thanks in advance!
Comment 8 Lane Wiscombe 2015-01-01 23:17:54 UTC
Comment on attachment 90190 [details]
possible fix for the crash

[anex@manjaro kde-baseapps-git]$ makepkg
==> Making package: kde-baseapps-git r19563.2586824-1 (Thu Jan  1 17:16:13 CST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning kde-baseapps git repo...
Cloning into bare repository '/home/anex/Downloads/kde-baseapps-git/kde-baseapps'...
remote: Counting objects: 199771, done.
remote: Compressing objects: 100% (36425/36425), done.
remote: Total 199771 (delta 162826), reused 197465 (delta 160930)
Receiving objects: 100% (199771/199771), 37.57 MiB | 5.73 MiB/s, done.
Resolving deltas: 100% (162826/162826), done.
Checking connectivity... done.
  -> Found collator.diff
==> Validating source files with md5sums...
    kde-baseapps ... Skipped
    collator.diff ... Skipped
==> Extracting sources...
  -> Creating working copy of kde-baseapps git repo...
Cloning into 'kde-baseapps'...
done.
Branch makepkg set up to track remote branch frameworks from origin.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/dolphin/src/kitemviews/kfileitemmodel.cpp b/dolphin/src/kitemviews/kfileitemmodel.cpp
|index 1c92a2c..b2a9319 100644
|--- a/dolphin/src/kitemviews/kfileitemmodel.cpp
|+++ b/dolphin/src/kitemviews/kfileitemmodel.cpp
--------------------------
File to patch:
Comment 9 Lane Wiscombe 2015-01-01 23:26:31 UTC
i got it patched and it's building will tell in a few
Comment 10 Lane Wiscombe 2015-01-01 23:32:28 UTC
patch does not fix crash..



Application: Dolphin (dolphin), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f102f6fc840 (LWP 11477))]

Thread 4 (Thread 0x7f101886f700 (LWP 11479)):
#0  0x00007f102fb2f44d in poll () from /usr/lib/libc.so.6
#1  0x00007f10236a29f2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f10236a456f in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f101aa3b389 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#4  0x00007f102a0c3ece in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f1025d47314 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f102fb3824d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f1011bff700 (LWP 11480)):
#0  0x00007f102fb2b42d in read () from /usr/lib/libc.so.6
#1  0x00007f10211a1f45 in ?? () from /usr/lib/libnvidia-tls.so.343.36
#2  0x00007f1025864b80 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f102582171c in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#4  0x00007f1025821c33 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007f1025821dac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6  0x00007f102a305cbc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#7  0x00007f102a2ac162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#8  0x00007f102a0bef44 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#9  0x00007f102a0c3ece in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007f1025d47314 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007f102fb3824d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f100b7fe700 (LWP 11487)):
[KCrash Handler]
#5  0x00007f102fa83a97 in raise () from /usr/lib/libc.so.6
#6  0x00007f102fa84e6a in abort () from /usr/lib/libc.so.6
#7  0x00007f102fac32b3 in __libc_message () from /usr/lib/libc.so.6
#8  0x00007f102fac872e in malloc_printerr () from /usr/lib/libc.so.6
#9  0x00007f102fac8eeb in _int_free () from /usr/lib/libc.so.6
#10 0x00007f1024617c6e in icu_54::UMemory::operator delete(void*) () from /usr/lib/libicuuc.so.54
#11 0x00007f102a186902 in QCollatorPrivate::cleanup() () from /usr/lib/libQt5Core.so.5
#12 0x00007f102a186937 in QCollatorPrivate::init() () from /usr/lib/libQt5Core.so.5
#13 0x00007f102a186c49 in QCollator::compare(QChar const*, int, QChar const*, int) const () from /usr/lib/libQt5Core.so.5
#14 0x00007f102f76bd26 in KFileItemModel::sortRoleCompare(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*, QCollator const&) const () from /usr/lib/libdolphinprivate.so.5
#15 0x00007f102f76c512 in KFileItemModel::lessThan(KFileItemModel::ItemData const*, KFileItemModel::ItemData const*, QCollator const&) const () from /usr/lib/libdolphinprivate.so.5
#16 0x00007f102f773162 in ?? () from /usr/lib/libdolphinprivate.so.5
#17 0x00007f102f773313 in ?? () from /usr/lib/libdolphinprivate.so.5
#18 0x00007f102f7732c8 in ?? () from /usr/lib/libdolphinprivate.so.5
#19 0x00007f102f77328b in ?? () from /usr/lib/libdolphinprivate.so.5
#20 0x00007f102f77328b in ?? () from /usr/lib/libdolphinprivate.so.5
#21 0x00007f102f77328b in ?? () from /usr/lib/libdolphinprivate.so.5
#22 0x00007f102f77328b in ?? () from /usr/lib/libdolphinprivate.so.5
#23 0x00007f102f775589 in ?? () from /usr/lib/libdolphinprivate.so.5
#24 0x00007f102f778be1 in ?? () from /usr/lib/libdolphinprivate.so.5
#25 0x00007f102f778f66 in ?? () from /usr/lib/libdolphinprivate.so.5
#26 0x00007f102a0c0e0e in ?? () from /usr/lib/libQt5Core.so.5
#27 0x00007f102a0c3ece in ?? () from /usr/lib/libQt5Core.so.5
#28 0x00007f1025d47314 in start_thread () from /usr/lib/libpthread.so.0
#29 0x00007f102fb3824d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f102f6fc840 (LWP 11477)):
#0  0x00007f1025d4c8cf in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f102a0c501b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007f102a0b8af4 in QFutureInterfaceBase::waitForFinished() () from /usr/lib/libQt5Core.so.5
#3  0x00007f102f7754e2 in ?? () from /usr/lib/libdolphinprivate.so.5
#4  0x00007f102f7756d9 in KFileItemModel::sort(QList<KFileItemModel::ItemData*>::iterator, QList<KFileItemModel::ItemData*>::iterator) const () from /usr/lib/libdolphinprivate.so.5
#5  0x00007f102f7760fd in KFileItemModel::insertItems(QList<KFileItemModel::ItemData*>&) () from /usr/lib/libdolphinprivate.so.5
#6  0x00007f102f776a7f in KFileItemModel::dispatchPendingItemsToInsert() () from /usr/lib/libdolphinprivate.so.5
#7  0x00007f102f777656 in KFileItemModel::slotCompleted() () from /usr/lib/libdolphinprivate.so.5
#8  0x00007f102a2dd8fa in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#9  0x00007f102dbdc225 in KCoreDirLister::completed(QUrl const&) () from /usr/lib/libKF5KIOCore.so.5
#10 0x00007f102dbea3ec in ?? () from /usr/lib/libKF5KIOCore.so.5
#11 0x00007f102dbeb404 in ?? () from /usr/lib/libKF5KIOCore.so.5
#12 0x00007f102a2ddf69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#13 0x00007f102b8f8712 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/libKF5CoreAddons.so.5
#14 0x00007f102b8f93ea in KJob::emitResult() () from /usr/lib/libKF5CoreAddons.so.5
#15 0x00007f102db997df in KIO::SimpleJob::slotFinished() () from /usr/lib/libKF5KIOCore.so.5
#16 0x00007f102db9327e in KIO::ListJob::slotFinished() () from /usr/lib/libKF5KIOCore.so.5
#17 0x00007f102db93651 in ?? () from /usr/lib/libKF5KIOCore.so.5
#18 0x00007f102a2ddf69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#19 0x00007f102db7c031 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#20 0x00007f102db790a7 in KIO::SlaveInterface::dispatch() () from /usr/lib/libKF5KIOCore.so.5
#21 0x00007f102db7dae6 in KIO::Slave::gotInput() () from /usr/lib/libKF5KIOCore.so.5
#22 0x00007f102dc09815 in ?? () from /usr/lib/libKF5KIOCore.so.5
#23 0x00007f102a2ddf69 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#24 0x00007f102db1b34c in ?? () from /usr/lib/libKF5KIOCore.so.5
#25 0x00007f102a2df0ea in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#26 0x00007f102aba2d5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007f102aba8340 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007f102a2ae6cb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#29 0x00007f102a2b070b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#30 0x00007f102a3058b3 in ?? () from /usr/lib/libQt5Core.so.5
#31 0x00007f1025821a0d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007f1025821cf8 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x00007f1025821dac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007f102a305ca7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#35 0x00007f102a2ac162 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#36 0x00007f102a2b3b3c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#37 0x00007f102fe59532 in kdemain () from /usr/lib/libkdeinit5_dolphin.so
#38 0x00007f102fa70040 in __libc_start_main () from /usr/lib/libc.so.6
#39 0x00000000004007ce in _start ()
Comment 11 Lane Wiscombe 2015-01-01 23:37:37 UTC
Created attachment 90191 [details]
patch-build.log

patch does not fix crash
Comment 12 Emmanuel Pescosta 2015-01-03 13:23:57 UTC
Created attachment 90205 [details]
possible fix for the crash v2

(In reply to Lane Wiscombe from comment #10)
> patch does not fix crash..

Thanks for testing!

After digging into the QCollator source, the copy ctor only increases the ref count of the shared private collator instance, so we can't use the copy ctor of QCollator. Instead we must create a completely new collator object and use the setter methods to apply all the configuration.

Can you please test the attached patch again? Thanks!
Comment 13 Kai Uwe Broulik 2015-01-03 17:30:59 UTC
That last patch fixes the crash on startup for me. Thanks!
Comment 14 Lane Wiscombe 2015-01-03 18:21:49 UTC
@ Emmanuel Pescosta,

Thank you, the latest patch fixes the crash for me
Comment 15 Emmanuel Pescosta 2015-01-03 22:23:11 UTC
@ Kai and Lane

Thanks for testing! :)

Review-Request: 121817
Comment 16 Emmanuel Pescosta 2015-01-04 20:48:49 UTC
Git commit ed1da49fb1a5407a15a44e2a1a5327466a88b0d3 by Emmanuel Pescosta.
Committed on 04/01/2015 at 20:45.
Pushed by emmanuelp into branch 'frameworks'.

Fix for crash which was introduced by commit
c2a0d3e889666539669562a6c1f7a080a0f29b11
(use QCollator instead of KStringHandler)

REVIEW: 121817

M  +32   -20   dolphin/src/kitemviews/kfileitemmodel.cpp
M  +3    -3    dolphin/src/kitemviews/kfileitemmodel.h

http://commits.kde.org/kde-baseapps/ed1da49fb1a5407a15a44e2a1a5327466a88b0d3