<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>335457</bug_id>
          
          <creation_ts>2014-05-28 08:58:54 +0000</creation_ts>
          <short_desc>Kontact/KMail crash when deleting a folder with subfolders imported from Thunderbird to a Local Folders Akonadi resource</short_desc>
          <delta_ts>2015-09-24 14:43:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kontact</product>
          <component>general</component>
          <version>4.13.1</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="René Krell">renda.krell</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1451608</commentid>
    <comment_count>0</comment_count>
    <who name="René Krell">renda.krell</who>
    <bug_when>2014-05-28 08:58:54 +0000</bug_when>
    <thetext>Application: kontact (4.13.1)
KDE Platform Version: 4.13.1
Qt Version: 4.8.6
Operating System: Linux 3.14.4-30.gbebeb6f-desktop x86_64
Distribution: &quot;openSUSE 13.1 (Bottle) (x86_64)&quot;

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

I tried to delete a folder with several subfolders recursively in the KMail view of Kontact.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
gobject.py: gdb was not built with custom backtrace support, disabling.
[Current thread is 1 (Thread 0x7fa86695d880 (LWP 16194))]

Thread 7 (Thread 0x7fa84915d700 (LWP 16195)):
#0  0x00007fa85df2d0af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa8616cdf56 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fa8616cdf89 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#4  0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7fa808842700 (LWP 16196)):
#0  0x00007fa85df2d0af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa8614402ad in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fa8616f5ab6 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#4  0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fa7f577b700 (LWP 16200)):
#0  0x00007fa85df2c560 in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007fa85d9a0a11 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa85d95e690 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa85d95ef23 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa85d95f10c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa864629986 in QEventDispatcherGlib::processEvents (this=0x7fa7f00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007fa8645fb79f in QEventLoop::processEvents (this=this@entry=0x7fa7f577ad60, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fa8645fba95 in QEventLoop::exec (this=this@entry=0x7fa7f577ad60, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fa8644f82ff in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:538
#9  0x00007fa8644fa9cf in QThreadPrivate::start (arg=0x1ae07f0) at thread/qthread_unix.cpp:349
#10 0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#11 0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fa7ed04e700 (LWP 16210)):
#0  0x00007fa863ea0b3d in poll () from /lib64/libc.so.6
#1  0x00007fa85d95f004 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa85d95f10c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa864629986 in QEventDispatcherGlib::processEvents (this=0x7fa7e00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007fa8645fb79f in QEventLoop::processEvents (this=this@entry=0x7fa7ed04dd20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa8645fba95 in QEventLoop::exec (this=this@entry=0x7fa7ed04dd20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa8644f82ff in QThread::exec (this=this@entry=0x22ae550) at thread/qthread.cpp:538
#7  0x00007fa8645dcfa3 in QInotifyFileSystemWatcherEngine::run (this=0x22ae550) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fa8644fa9cf in QThreadPrivate::start (arg=0x22ae550) at thread/qthread_unix.cpp:349
#9  0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#10 0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fa7d6ae0700 (LWP 16463)):
#0  0x00007fa85d9a06ca in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007fa85d9a09d9 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa85d95e567 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa85d95ef23 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa85d95f32a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa7dbde71f6 in ?? () from /usr/lib64/libgio-2.0.so.0
#6  0x00007fa85d983fa5 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#8  0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa7d62df700 (LWP 16464)):
#0  0x00007fa863ea0b3d in poll () from /lib64/libc.so.6
#1  0x00007fa85d95f004 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa85d95f10c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa85d95f149 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fa85d983fa5 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fa85df290db in start_thread () from /lib64/libpthread.so.0
#6  0x00007fa863ea990d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa86695d880 (LWP 16194)):
[KCrash Handler]
#6  0x00007fa863df7849 in raise () from /lib64/libc.so.6
#7  0x00007fa863df8cd8 in abort () from /lib64/libc.so.6
#8  0x00007fa8644f04f4 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=&lt;optimized out&gt;) at global/qglobal.cpp:2359
#9  0x00007fa8644f0679 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x7fa7fea06308 &quot;Fatal Error: Accessed global static &apos;%s *%s()&apos; after destruction. Defined at %s:%d&quot;, ap=ap@entry=0x7fffdbb9a948) at global/qglobal.cpp:2405
#10 0x00007fa8644f0e84 in qFatal (msg=&lt;optimized out&gt;) at global/qglobal.cpp:2588
#11 0x00007fa7fe95ac34 in operator-&gt; (this=&lt;optimized out&gt;) at /usr/src/debug/kdepim-4.13.1/mailcommon/kernel/mailkernel.cpp:57
#12 MailCommon::Kernel::self () at /usr/src/debug/kdepim-4.13.1/mailcommon/kernel/mailkernel.cpp:73
#13 0x00007fa7fe9a1890 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x209d8b0) at /usr/src/debug/kdepim-4.13.1/mailcommon/folder/foldercollection.cpp:218
#14 0x00007fa7fe9a2102 in MailCommon::FolderCollection::~FolderCollection (this=0x209d8b0, __in_chrg=&lt;optimized out&gt;) at /usr/src/debug/kdepim-4.13.1/mailcommon/folder/foldercollection.cpp:84
#15 0x00007fa7fe9a2179 in MailCommon::FolderCollection::~FolderCollection (this=0x209d8b0, __in_chrg=&lt;optimized out&gt;) at /usr/src/debug/kdepim-4.13.1/mailcommon/folder/foldercollection.cpp:86
#16 0x00007fa7fe9a09b4 in deref (value=0x209d8b0, d=0x20aec50) at /usr/include/QtCore/qsharedpointer_impl.h:342
#17 deref (this=&lt;optimized out&gt;) at /usr/include/QtCore/qsharedpointer_impl.h:336
#18 ~ExternalRefCount (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at /usr/include/QtCore/qsharedpointer_impl.h:401
#19 ~QSharedPointer (this=&lt;optimized out&gt;, __in_chrg=&lt;optimized out&gt;) at /usr/include/QtCore/qsharedpointer_impl.h:466
#20 QMap&lt;long long, QSharedPointer&lt;MailCommon::FolderCollection&gt; &gt;::freeData (x=0x2221df0, this=&lt;optimized out&gt;) at /usr/include/QtCore/qmap.h:652
#21 0x00007fa863dfa3d9 in __run_exit_handlers () from /lib64/libc.so.6
#22 0x00007fa863dfa425 in exit () from /lib64/libc.so.6
#23 0x00007fa7da285cb4 in gdk_x_error (display=&lt;optimized out&gt;, error=&lt;optimized out&gt;) at gdkmain-x11.c:490
#24 0x00007fa85f4653ab in _XError (dpy=dpy@entry=0x17189b0, rep=rep@entry=0x69a6c60) at XlibInt.c:1463
#25 0x00007fa85f462427 in handle_error (dpy=dpy@entry=0x17189b0, err=0x69a6c60, in_XReply=in_XReply@entry=1) at xcb_io.c:213
#26 0x00007fa85f4634e2 in _XReply (dpy=dpy@entry=0x17189b0, rep=rep@entry=0x7fffdbb9af20, extra=extra@entry=0, discard=discard@entry=0) at xcb_io.c:699
#27 0x00007fa85f44a096 in XGetWindowProperty (dpy=0x17189b0, w=113247289, property=298, offset=0, length=1, delete=0, req_type=298, actual_type=0x7fffdbb9b038, actual_format=0x7fffdbb9b030, nitems=0x7fffdbb9b040, bytesafter=0x7fffdbb9b048, prop=0x7fffdbb9b050) at GetProp.c:69
#28 0x00007fa865e556bb in NETWinInfo::update (this=this@entry=0x7fffdbb9b160, dirty_props=dirty_props@entry=0x7fffdbb9b100) at /usr/src/debug/kdelibs-4.13.1/kdeui/windowmanagement/netwm.cpp:3962
#29 0x00007fa865e56cd6 in NETWinInfo::event (this=this@entry=0x7fffdbb9b160, event=event@entry=0x7fffdbb9b260, properties=properties@entry=0x7fffdbb9b170, properties_size=properties_size@entry=2) at /usr/src/debug/kdelibs-4.13.1/kdeui/windowmanagement/netwm.cpp:3925
#30 0x00007fa865e49c4a in KWindowSystemPrivate::x11Event (this=0x315ac20, ev=0x7fffdbb9b260) at /usr/src/debug/kdelibs-4.13.1/kdeui/windowmanagement/kwindowsystem_x11.cpp:216
#31 0x00007fa865d4e958 in publicX11Event (e=0x7fffdbb9b260, this=&lt;optimized out&gt;) at /usr/src/debug/kdelibs-4.13.1/kdeui/kernel/ksystemeventfilter.cpp:43
#32 KSystemEventFilterPrivate::filterEvent (this=0x2b9b150, message=0x7fffdbb9b260) at /usr/src/debug/kdelibs-4.13.1/kdeui/kernel/ksystemeventfilter.cpp:102
#33 0x00007fa8645eea4e in QAbstractEventDispatcher::filterEvent (this=0x3f42, message=0x3f42, message@entry=0x7fffdbb9b260) at kernel/qabstracteventdispatcher.cpp:542
#34 0x00007fa8650a9910 in x11EventSourceDispatch (s=0x16d1870, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:143
#35 0x00007fa85d95ee24 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007fa85d95f068 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007fa85d95f10c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007fa864629965 in QEventDispatcherGlib::processEvents (this=0x168db00, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#39 0x00007fa8650a9a96 in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fa8645fb79f in QEventLoop::processEvents (this=this@entry=0x7fffdbb9b630, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007fa8645fba95 in QEventLoop::exec (this=this@entry=0x7fffdbb9b630, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007fa864600d5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#43 0x0000000000403960 in ?? ()
#44 0x00007fa863de3be5 in __libc_start_main () from /lib64/libc.so.6
#45 0x0000000000403e29 in _start ()

Possible duplicates by query: bug 330850, bug 328224, bug 326104, bug 325954, bug 324949.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1451610</commentid>
    <comment_count>1</comment_count>
    <who name="René Krell">renda.krell</who>
    <bug_when>2014-05-28 09:08:48 +0000</bug_when>
    <thetext>After that crash, KMail does not come up but hangs in background.
After launching &apos;akonadictl restart&apos; it comes up immediately.
The folder I wanted to delete initially is still there in the Local Folders resource.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546056</commentid>
    <comment_count>2</comment_count>
    <who name="René Krell">renda.krell</who>
    <bug_when>2015-09-24 14:43:23 +0000</bug_when>
    <thetext>Problem cannot be reproduced any longer in Kontact 5.0.1 / KDE Applications 15.08.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>