Bug 193800

Summary: Lokalize crashes on startup while loading catalog statistics
Product: [Unmaintained] kio Reporter: Jure Repinc <jlp>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adawit, andresbajotierra, shafff
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: lokalize-valgrind.txt.tar.gz

Description Jure Repinc 2009-05-23 20:16:41 UTC
Application that crashed: lokalize
Version of the application: 1.0
KDE Version: 4.2.87 (KDE 4.2.87 (KDE 4.3 >= 20090519))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-rc6 x86_64

What I was doing when the application crashed:
It often happens that Lokalize crashes on startup when it is updating the statistics of catalogs in the project overview. This happens especially when I restart Lokalize after it crashed. In this situation I have to try to start Lokalize several times until it loads without a crash. In the project I have the Slovenian (sl) translation for trunk. kdelibs is at revision 971847 from trunk and kdesdk is at revision 971910 also from trunk.

 -- Backtrace:
Application: Lokalize (lokalize), signal: Segmentation fault
[Current thread is 0 (LWP 5473)]

Thread 3 (Thread 0x7fcaca3f9910 (LWP 5474)):
#0  0x00007fcad366f269 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fcad38f3279 in QWaitConditionPrivate::wait (this=0x1139570, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fcad38f2dd6 in QWaitCondition::wait (this=0x1139388, mutex=0x1137c00, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fcad5e30de9 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1139360, th=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fcad5e3552f in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x1136b40, th=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007fcad5e3055e in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x1139360, th=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007fcad5e35627 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1136b40, th=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007fcad5e31025 in ThreadWeaver::WeaverImpl::applyForWork (this=0x1139360, th=0x14e2940, previous=0x14dfa40) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007fcad5e338c4 in ThreadWeaver::ThreadRunHelper::run (this=0x7fcaca3f8fb0, parent=0x1139360, th=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#9  0x00007fcad5e33a59 in ThreadWeaver::Thread::run (this=0x14e2940) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#10 0x00007fcad38f2a2d in QThreadPrivate::start (arg=0x14e2940) at thread/qthread_unix.cpp:189
#11 0x00007fcad366b2d7 in start_thread () from /lib/libpthread.so.0
#12 0x00007fcad2c3638d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fcac9172910 (LWP 5478)):
#0  0x00007fcad366f269 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fcad38f3279 in QWaitConditionPrivate::wait (this=0x115e480, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007fcad38f2dd6 in QWaitCondition::wait (this=0x115eed8, mutex=0x115f0c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fcad5e30de9 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x115eeb0, th=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fcad5e3552f in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x115f1b0, th=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x00007fcad5e3055e in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x115eeb0, th=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x00007fcad5e35627 in ThreadWeaver::WorkingHardState::applyForWork (this=0x115f1b0, th=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x00007fcad5e31025 in ThreadWeaver::WeaverImpl::applyForWork (this=0x115eeb0, th=0x183d6c0, previous=0x18e5020) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x00007fcad5e338c4 in ThreadWeaver::ThreadRunHelper::run (this=0x7fcac9171fb0, parent=0x115eeb0, th=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#9  0x00007fcad5e33a59 in ThreadWeaver::Thread::run (this=0x183d6c0) at /home/kde-devel/kde/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#10 0x00007fcad38f2a2d in QThreadPrivate::start (arg=0x183d6c0) at thread/qthread_unix.cpp:189
#11 0x00007fcad366b2d7 in start_thread () from /lib/libpthread.so.0
#12 0x00007fcad2c3638d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fcad76f3750 (LWP 5473)):
[KCrash Handler]
#5  0x00007fcad2bd8170 in ?? () from /lib/libc.so.6
#6  0x00007fcad2bda000 in ?? () from /lib/libc.so.6
#7  0x00007fcad38ebe60 in qFree (ptr=0x21b0580) at global/qmalloc.cpp:60
#8  0x00007fcad393c5f5 in QString::free (d=0x21b0580) at tools/qstring.cpp:953
#9  0x00007fcad6a41684 in ~QString (this=0x7fff73d8ce50) at /home/kde-devel/qt-copy/include/QtCore/../../src/corelib/tools/qstring.h:866
#10 0x00007fcad6ac4ae5 in KFileItem::isHidden (this=0x7fff73d8d010) at /home/kde-devel/kde/src/kdelibs/kio/kio/kfileitem.cpp:953
#11 0x00007fcad6a991cd in KDirLister::matchesFilter (this=0x1142a90, item=@0x7fff73d8d010) at /home/kde-devel/kde/src/kdelibs/kio/kio/kdirlister.cpp:2139
#12 0x00007fcad6a98742 in KDirLister::Private::isItemVisible (this=0x1142c30, item=@0x7fff73d8d010) at /home/kde-devel/kde/src/kdelibs/kio/kio/kdirlister.cpp:2334
#13 0x00007fcad6a98c8c in KDirLister::Private::addNewItem (this=0x1142c30, directoryUrl=@0x7fff73d8d070, item=@0x7fff73d8d010) at /home/kde-devel/kde/src/kdelibs/kio/kio/kdirlister.cpp:2209
#14 0x00007fcad6a9d09f in KDirListerCache::slotEntries (this=0x1142db0, job=0x18610e0, entries=@0x7fff73d8d810) at /home/kde-devel/kde/src/kdelibs/kio/kio/kdirlister.cpp:1091
#15 0x00007fcad6aa55bf in KDirListerCache::qt_metacall (this=0x1142db0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff73d8d390) at /home/kde-devel/kde/build/kdelibs/kio/kdirlister_p.moc:98
#16 0x00007fcad39f7bb2 in QMetaObject::activate (sender=0x18610e0, from_signal_index=40, to_signal_index=40, argv=0x7fff73d8d390) at kernel/qobject.cpp:3117
#17 0x00007fcad39f8f97 in QMetaObject::activate (sender=0x18610e0, m=0x7fcad6e5f9a0, local_signal_index=0, argv=0x7fff73d8d390) at kernel/qobject.cpp:3194
#18 0x00007fcad6a76d57 in KIO::ListJob::entries (this=0x18610e0, _t1=0x18610e0, _t2=@0x7fff73d8d810) at /home/kde-devel/kde/build/kdelibs/kio/jobclasses.moc:781
#19 0x00007fcad6a7f728 in KIO::ListJobPrivate::slotListEntries (this=0x18404a0, list=@0x7fff73d8d810) at /home/kde-devel/kde/src/kdelibs/kio/kio/job.cpp:2333
#20 0x00007fcad6a7fa83 in KIO::ListJob::qt_metacall (this=0x18610e0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff73d8d6a0) at /home/kde-devel/kde/build/kdelibs/kio/jobclasses.moc:767
#21 0x00007fcad39f7bb2 in QMetaObject::activate (sender=0x183a6a0, from_signal_index=10, to_signal_index=10, argv=0x7fff73d8d6a0) at kernel/qobject.cpp:3117
#22 0x00007fcad39f8f97 in QMetaObject::activate (sender=0x183a6a0, m=0x7fcad6e650c0, local_signal_index=6, argv=0x7fff73d8d6a0) at kernel/qobject.cpp:3194
#23 0x00007fcad6b2ac17 in KIO::SlaveInterface::listEntries (this=0x183a6a0, _t1=@0x7fff73d8d810) at /home/kde-devel/kde/build/kdelibs/kio/slaveinterface.moc:179
#24 0x00007fcad6b2c847 in KIO::SlaveInterface::dispatch (this=0x183a6a0, _cmd=106, rawdata=@0x7fff73d8d950) at /home/kde-devel/kde/src/kdelibs/kio/kio/slaveinterface.cpp:193
#25 0x00007fcad6b2c65d in KIO::SlaveInterface::dispatch (this=0x183a6a0) at /home/kde-devel/kde/src/kdelibs/kio/kio/slaveinterface.cpp:91
#26 0x00007fcad6b21227 in KIO::Slave::gotInput (this=0x183a6a0) at /home/kde-devel/kde/src/kdelibs/kio/kio/slave.cpp:322
#27 0x00007fcad6b22477 in KIO::Slave::qt_metacall (this=0x183a6a0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff73d8dab0) at /home/kde-devel/kde/build/kdelibs/kio/slave.moc:76
#28 0x00007fcad39f7bb2 in QMetaObject::activate (sender=0x17d8590, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3117
#29 0x00007fcad39f8f97 in QMetaObject::activate (sender=0x17d8590, m=0x7fcad6e5e3c0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3194
#30 0x00007fcad6a4c766 in KIO::Connection::readyRead (this=0x17d8590) at /home/kde-devel/kde/build/kdelibs/kio/connection.moc:86
#31 0x00007fcad6a4d5de in KIO::ConnectionPrivate::dequeue (this=0x17d7c00) at /home/kde-devel/kde/src/kdelibs/kio/kio/connection.cpp:82
#32 0x00007fcad6a4e474 in KIO::Connection::qt_metacall (this=0x17d8590, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x18d3500) at /home/kde-devel/kde/build/kdelibs/kio/connection.moc:73
#33 0x00007fcad39f13e3 in QMetaCallEvent::placeMetaCall (this=0x135bdb0, object=0x17d8590) at kernel/qobject.cpp:489
#34 0x00007fcad39f5a30 in QObject::event (this=0x17d8590, e=0x135bdb0) at kernel/qobject.cpp:1115
#35 0x00007fcad3eefcdf in QApplicationPrivate::notify_helper (this=0x10441b0, receiver=0x17d8590, e=0x135bdb0) at kernel/qapplication.cpp:4057
#36 0x00007fcad3ef0096 in QApplication::notify (this=0x7fff73d8e930, receiver=0x17d8590, e=0x135bdb0) at kernel/qapplication.cpp:3604
#37 0x00007fcad626a495 in KApplication::notify (this=0x7fff73d8e930, receiver=0x17d8590, event=0x135bdb0) at /home/kde-devel/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:302
#38 0x00007fcad39e185f in QCoreApplication::notifyInternal (this=0x7fff73d8e930, receiver=0x17d8590, event=0x135bdb0) at kernel/qcoreapplication.cpp:606
#39 0x00007fcad3eecb6d in QCoreApplication::sendEvent (receiver=0x17d8590, event=0x135bdb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#40 0x00007fcad39e1db1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x102b150) at kernel/qcoreapplication.cpp:1244
#41 0x00007fcad39e1f88 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#42 0x00007fcad3f99091 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#43 0x00007fcad3a10179 in postEventSourceDispatch (s=0x1046d50) at kernel/qeventdispatcher_glib.cpp:209
#44 0x00007fcad06e47c1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0x00007fcad06e7de0 in ?? () from /usr/lib/libglib-2.0.so.0
#46 0x00007fcad06e7f7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0x00007fcad3a0f48a in QEventDispatcherGlib::processEvents (this=0x102a920, flags={i = 1943594864}) at kernel/qeventdispatcher_glib.cpp:324
#48 0x00007fcad3f97937 in QGuiEventDispatcherGlib::processEvents (this=0x102a920, flags={i = 1943594960}) at kernel/qguieventdispatcher_glib.cpp:202
#49 0x00007fcad39deae3 in QEventLoop::processEvents (this=0x7fff73d8e890, flags={i = 1943595056}) at kernel/qeventloop.cpp:149
#50 0x00007fcad39decf0 in QEventLoop::exec (this=0x7fff73d8e890, flags={i = 1943595168}) at kernel/qeventloop.cpp:196
#51 0x00007fcad39e20aa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#52 0x00007fcad3eefa3c in QApplication::exec () at kernel/qapplication.cpp:3526
#53 0x000000000043502e in main (argc=5, argv=0x7fff73d8ee98) at /home/kde-devel/kde/src/kdesdk/lokalize/src/main.cpp:109
Comment 1 Dario Andres 2009-05-23 20:31:37 UTC
Looks like a bug in KFileItem (kdelibs/kio)
Comment 2 Nick Shaforostoff 2009-05-24 16:16:21 UTC
please tell me if the crash repeats for you after revision 972296 of lokalize.
Comment 3 David Faure 2009-05-30 02:39:50 UTC
I have no idea what to do about this bug. Reproduceable? Valgrind log?
The bt doesn't tell me anything, so I suspect memory corruption.
Comment 4 Jure Repinc 2009-06-04 15:30:11 UTC
Created attachment 34265 [details]
lokalize-valgrind.txt.tar.gz

Yes I still get crashes after that revision. Here is the startup of lokalize through valgrind.
Comment 5 David Faure 2009-06-05 22:10:25 UTC
Jure: thanks for the log. I can't make anything out of it though...

1) /lib64/ld-2.10.1.so is sure making a LOT of noise in there - usually this is silenced by valgrind's own suppression files, I wonder if your ld.so is too recent for your valgrind, or something. Maybe you can try valgrind from subversion, and talk to sewardj on irc if it still happens?

2) I don't see any crash or invalid read (other than the irrelevant ld.so ones).
And KFileItem/KDirLister aren't there in the log at all... Are you sure this run
in valgrind reproduced the crash situation?
Comment 6 Laszlo Papp 2010-04-03 07:45:00 UTC
Does the problem exist these days with KDE 4.4.2 ? (I can't reproduce it)
Comment 7 Nick Shaforostoff 2011-02-10 01:33:42 UTC
see also 242888.

to be fixed in lokalize of kde 4.7 by switching to qfilesystemmodel
Comment 8 Dawit Alemayehu 2013-07-07 04:23:09 UTC
Marking this as duplicate of 175035 which is what the bug report listed in comment #7 was marked as duplicate of.

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