Bug 243662

Summary: akonadi ressource crashes when deleting a folder in kmail
Product: [Frameworks and Libraries] Akonadi Reporter: Nicolas L. <kde>
Component: Mixed Maildir resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, krammer
Priority: NOR Keywords: akonadi-ports-regression
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 223438    

Description Nicolas L. 2010-07-05 16:02:58 UTC
Application: akonadi_mixedmaildir_resource (0.1)
KDE Platform Version: 4.4.90 (KDE 4.4.90 (KDE 4.5 RC1))
Qt Version: 4.7.0
Operating System: Linux 2.6.33.5-desktop-2mnb x86_64
Distribution: "Mandriva Linux 2010.1"

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

in KMail 1 i had a folder called Folder à ( this was to reproduce a bug ), when migrating to kmail2, the folder took a strange name the à have been replaced by a strange ?,  when deleting this folder the akonadi ressource crashed

-- Backtrace:
Application: Akonadi Resource (akonadi_mixedmaildir_resource), signal: Segmentation fault
[KCrash Handler]
#6  MaildirContext::readIndexData (this=0x0) at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/mixedmaildir/mixedmaildirstore.cpp:279
#7  0x000000000042d335 in MixedMaildirStore::Private::visit (this=0x22e2fd0, job=0x2516cc0) at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/mixedmaildir/mixedmaildirstore.cpp:837
#8  0x000000000042c199 in MixedMaildirStore::processJob (this=<value optimized out>, job=0x2516cc0) at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/mixedmaildir/mixedmaildirstore.cpp:1841
#9  0x00007f071b093017 in Akonadi::FileStore::AbstractLocalStore::Private::processJobs (this=0x22e1490, jobs=<value optimized out>)
    at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/shared/filestore/abstractlocalstore.cpp:295
#10 0x00007f071b09310e in Akonadi::FileStore::AbstractLocalStore::qt_metacall (this=0x21793e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe4a3b110)
    at /usr/src/debug/kdepim-runtime-4.5-beta1/build/resources/shared/filestore/abstractlocalstore.moc:75
#11 0x00007f07180faeb7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#12 0x00007f071b09fb02 in Akonadi::FileStore::AbstractJobSession::jobsReady (this=0x0, _t1=<value optimized out>)
    at /usr/src/debug/kdepim-runtime-4.5-beta1/build/resources/shared/filestore/session_p.moc:85
#13 0x00007f071b0a053f in runNextJob (this=<value optimized out>, _c=<value optimized out>, _id=0, _a=<value optimized out>)
    at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/shared/filestore/sessionimpls.cpp:142
#14 Akonadi::FileStore::FiFoQueueJobSession::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=0, _a=<value optimized out>)
    at /usr/src/debug/kdepim-runtime-4.5-beta1/build/resources/shared/filestore/sessionimpls_p.moc:73
#15 0x00007f07180faeb7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#16 0x00007f07180f5349 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#17 0x00007f0718aa3e9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007f0718aaa0ad in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007f07197e9dc6 in KApplication::notify (this=0x7fffe4a3bc60, receiver=0x22d6410, event=0x7fffe4a3b950) at /usr/src/debug/kdelibs-4.4.90/kdeui/kernel/kapplication.cpp:309
#20 0x00007f07180e31ec in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#21 0x00007f0718112852 in ?? () from /usr/lib64/libQtCore.so.4
#22 0x00007f071810f604 in ?? () from /usr/lib64/libQtCore.so.4
#23 0x00007f0714371d20 in g_main_dispatch (context=0x2129e00) at gmain.c:1960
#24 IA__g_main_context_dispatch (context=0x2129e00) at gmain.c:2513
#25 0x00007f0714375b88 in g_main_context_iterate (context=0x2129e00, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#26 0x00007f0714375d3c in IA__g_main_context_iteration (context=0x2129e00, may_block=1) at gmain.c:2654
#27 0x00007f071810f2f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#28 0x00007f0718b5483e in ?? () from /usr/lib64/libQtGui.so.4
#29 0x00007f07180e1f12 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#30 0x00007f07180e22fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#31 0x00007f07180e7279 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#32 0x00007f071adcdbc2 in Akonadi::ResourceBase::init (r=0x22e3f40) at /usr/src/debug/kdepimlibs-4.4.90/akonadi/resourcebase.cpp:245
#33 0x0000000000414788 in init<MixedMaildirResource> (argc=<value optimized out>, argv=<value optimized out>) at /usr/include/akonadi/resourcebase.h:186
#34 main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-runtime-4.5-beta1/resources/mixedmaildir/mixedmaildirresource.cpp:789

Reported using DrKonqi
Comment 1 Kevin Krammer 2010-07-06 13:06:26 UTC
SVN commit 1146678 by krake:

Add missing if branch

BUG: 243662


 M  +2 -0      mixedmaildirstore.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1146678
Comment 2 Kevin Krammer 2010-07-06 13:06:52 UTC
SVN commit 1146679 by krake:

Forward port of revision 1146678.

CCBUG: 243662


 M  +2 -0      mixedmaildirstore.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1146679