Application: kmail (2.0.89) KDE Platform Version: 4.5.1 (KDE 4.5.1) (Compiled from sources) Qt Version: 4.6.2 Operating System: Linux 2.6.32-19-generic x86_64 Distribution: Ubuntu lucid (development branch) -- Information about the crash: - What I was doing when the application crashed: - Go to menu K - Type in 'Kmail' - Click on 'Kmail' entry from the K menu Kmail crashes Trunk, Svn Rev 1168877 The crash can be reproduced every time. -- Backtrace: Application: KMail (kmail), signal: Segmentation fault [KCrash Handler] #6 0x00007f4ba64a40b4 in QBasicAtomicInt::ref (this=0x400000008) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:121 #7 0x00007f4ba64f23d9 in QExplicitlySharedDataPointer (this=0x7fffd4d94b40, o=...) at /d/qt/4/kde-qt/include/QtCore/../../src/corelib/tools/qshareddata.h:162 #8 0x00007f4ba64f1d7c in Nepomuk::Types::EntityManager::getClass (this=0xbf1d10, uri=...) at /d/kde/src/t/kdelibs/nepomuk/types/entitymanager.cpp:42 #9 0x00007f4ba64e4259 in Class (this=0x7fffd4d94b80, uri=...) at /d/kde/src/t/kdelibs/nepomuk/types/class.cpp:286 #10 0x00007f4ba64b1217 in Nepomuk::ResourceData::constHasType (this=0xbf1950, uri=...) at /d/kde/src/t/kdelibs/nepomuk/core/resourcedata.cpp:224 #11 0x00007f4ba64b11d7 in Nepomuk::ResourceData::hasType (this=0xbf1950, uri=...) at /d/kde/src/t/kdelibs/nepomuk/core/resourcedata.cpp:215 #12 0x00007f4ba64b284f in Nepomuk::ResourceData::load (this=0xbf1950) at /d/kde/src/t/kdelibs/nepomuk/core/resourcedata.cpp:393 #13 0x00007f4ba64b133c in Nepomuk::ResourceData::property (this=0xbf1950, uri=...) at /d/kde/src/t/kdelibs/nepomuk/core/resourcedata.cpp:239 #14 0x00007f4ba64c3256 in Nepomuk::Resource::property (this=0xbfac90, uri=...) at /d/kde/src/t/kdelibs/nepomuk/core/resource.cpp:271 #15 0x00007f4ba64c5426 in Nepomuk::Resource::label (this=0xbfac90) at /d/kde/src/t/kdelibs/nepomuk/core/resource.cpp:771 #16 0x00007f4ba79f1142 in KMFilterActionAddTag (this=0xbebc30) at /d/kde/src/t/kdepim/kmail/kmfilteraction.cpp:912 #17 0x00007f4ba79f0d17 in KMFilterActionAddTag::newAction () at /d/kde/src/t/kdepim/kmail/kmfilteraction.cpp:905 #18 0x00007f4ba79fb1ad in KMFilterActionDict::insert (this=0x1014840, aNewFunc=0x7f4ba79f0cf2 <KMFilterActionAddTag::newAction()>) at /d/kde/src/t/kdepim/kmail/kmfilteraction.cpp:2212 #19 0x00007f4ba79faf77 in KMFilterActionDict::init (this=0x1014840) at /d/kde/src/t/kdepim/kmail/kmfilteraction.cpp:2186 #20 0x00007f4ba79fb14b in KMFilterActionDict (this=0x1014840) at /d/kde/src/t/kdepim/kmail/kmfilteraction.cpp:2207 #21 0x00007f4ba7a31b7a in KMKernel::init (this=0x7fffd4d951f0) at /d/kde/src/t/kdepim/kmail/kmkernel.cpp:1159 #22 0x0000000000403814 in main (argc=3, argv=0x7fffd4d95488) at /d/kde/src/t/kdepim/kmail/main.cpp:129 Reported using DrKonqi
valgrind log: ==2709== Invalid read of size 4 ==2709== at 0x76160B4: QBasicAtomicInt::ref() (qatomic_x86_64.h:121) ==2709== by 0x76643DC: QExplicitlySharedDataPointer<Nepomuk::Types::ClassPrivate>::QExplicitlySharedDataPointer(QExplicitlySharedDataPointer<Nepomuk::Types::ClassPrivate> const&) (qshareddata.h:162) ==2709== by 0x7663D7F: Nepomuk::Types::EntityManager::getClass(QUrl const&) (entitymanager.cpp:42) ==2709== by 0x765625C: Nepomuk::Types::Class::Class(QUrl const&) (class.cpp:286) ==2709== by 0x7623216: Nepomuk::ResourceData::constHasType(QUrl const&) const (resourcedata.cpp:224) ==2709== by 0x76231D6: Nepomuk::ResourceData::hasType(QUrl const&) (resourcedata.cpp:215) ==2709== by 0x762484E: Nepomuk::ResourceData::load() (resourcedata.cpp:393) ==2709== by 0x762333B: Nepomuk::ResourceData::property(QUrl const&) (resourcedata.cpp:239) ==2709== by 0x7635259: Nepomuk::Resource::property(QUrl const&) const (resource.cpp:271) ==2709== by 0x7637429: Nepomuk::Resource::label() const (resource.cpp:771) ==2709== by 0x6020141: KMFilterActionAddTag::KMFilterActionAddTag() (kmfilteraction.cpp:912) ==2709== by 0x601FD16: KMFilterActionAddTag::newAction() (kmfilteraction.cpp:905) ==2709== by 0x602A1AC: KMFilterActionDict::insert(KMFilterAction* (*)()) (kmfilteraction.cpp:2212) ==2709== by 0x6029F76: KMFilterActionDict::init() (kmfilteraction.cpp:2186) ==2709== by 0x602A14A: KMFilterActionDict::KMFilterActionDict() (kmfilteraction.cpp:2207) ==2709== by 0x6060B79: KMKernel::init() (kmkernel.cpp:1159) This is with kdesupport trunk, kdelibs-4.5, kdepimlibs+kdepim trunk. Is this an unsupported combination? Also on KDE startup, nepomukservicestub crashes with a similar backtrace.
Also Dolphin crashes at startup. I'm running KDE 4.5 with kdesupport from trunk too, but I update kdesupport not regulary and theese crashes happen without updating kdesupport.
*** Bug 249471 has been marked as a duplicate of this bug. ***
*** Bug 249326 has been marked as a duplicate of this bug. ***
I just commited #1170326 which uses constEnd() iterator instead of end(). This fixes the crash. Weird thing is that the buggy code was already in 4.5.0 and before.
*** Bug 249626 has been marked as a duplicate of this bug. ***
*** Bug 249059 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > I just commited #1170326 which uses constEnd() iterator instead of end(). This > fixes the crash. Weird thing is that the buggy code was already in 4.5.0 and > before. Probably caused by your backport (rev. 1168845) four days before. IMO it's bad that you can't compare const and non const iterators as in STL. Thanks for fixing that!
It is corrected now. Kmail launches correctly now. Trunk, Svn Rev 1170619
Andre: I figured it out: before I was using the iterator in a const method which made the it itself const, thus, end() == constEnd().
*** Bug 267113 has been marked as a duplicate of this bug. ***
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug. Development has moved to Baloo, please try again using the latest version and applications, and submit a new ticket for frameworks-baloo if you still have an issue. Thank you!