<?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>306555</bug_id>
          
          <creation_ts>2012-09-10 16:02:33 +0000</creation_ts>
          <short_desc>Kmail fails consistently when saving a composed mail as a draft</short_desc>
          <delta_ts>2012-09-10 18:56:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>general</component>
          <version>4.8</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>253031</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Peder Chr. Nørgaard">pcn</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>1295963</commentid>
    <comment_count>0</comment_count>
    <who name="Peder Chr. Nørgaard">pcn</who>
    <bug_when>2012-09-10 16:02:33 +0000</bug_when>
    <thetext>Application: kmail (4.8.4)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-30-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

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

I was writing a very simple mail, then hitting Alt-F4 and the &quot;Save as Draft&quot; button.   First time the mail was quite complex - I tried several times and I can still reproduce the bug when I have virtually no data typed into the mail - just a &quot;To:&quot; and a &quot;Subject: &quot;, a non-standard choice of submitter and the pulled-in related .signature.

The fault reproduces consistently.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[Current thread is 1 (Thread 0x7ffe5a0a97c0 (LWP 3320))]

Thread 4 (Thread 0x7ffe37546700 (LWP 3324)):
#0  0x00007ffe54ec205d in __pthread_mutex_unlock_usercnt (mutex=&lt;optimized out&gt;, decr=&lt;optimized out&gt;) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7ffe30000a60) at pthread_mutex_unlock.c:290
#2  0x00007ffe4fcca5d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffe4fc8eefc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffe4fc8f164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffe57d7a426 in QEventDispatcherGlib::processEvents (this=0x7ffe300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007ffe57d49c82 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007ffe57d49ed7 in QEventLoop::exec (this=0x7ffe37545d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007ffe57c48fa7 in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:501
#9  0x00007ffe57d299ff in QInotifyFileSystemWatcherEngine::run (this=0x1726310) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007ffe57c4bfcb in QThreadPrivate::start (arg=0x1726310) at thread/qthread_unix.cpp:298
#11 0x00007ffe54ebee9a in start_thread (arg=0x7ffe37546700) at pthread_create.c:308
#12 0x00007ffe573ef4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ffe35dc7700 (LWP 3333)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffe4c382dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007ffe4c382f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007ffe54ebee9a in start_thread (arg=0x7ffe35dc7700) at pthread_create.c:308
#4  0x00007ffe573ef4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffe354c6700 (LWP 3334)):
#0  0x00007ffe54ec0fc0 in __pthread_mutex_lock (mutex=0x7ffe28000a60) at pthread_mutex_lock.c:113
#1  0x00007ffe4fcca5a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffe4fc8eb4e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffe4fc8efd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffe4fc8f164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffe57d7a426 in QEventDispatcherGlib::processEvents (this=0x7ffe280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007ffe57d49c82 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007ffe57d49ed7 in QEventLoop::exec (this=0x7ffe354c5dc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007ffe57c48fa7 in QThread::exec (this=&lt;optimized out&gt;) at thread/qthread.cpp:501
#9  0x00007ffe57c4bfcb in QThreadPrivate::start (arg=0x2204bc0) at thread/qthread_unix.cpp:298
#10 0x00007ffe54ebee9a in start_thread (arg=0x7ffe354c6700) at pthread_create.c:308
#11 0x00007ffe573ef4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffe5a0a97c0 (LWP 3320)):
[KCrash Handler]
#6  QSharedDataPointer (o=..., this=0x7fff28450550) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#8  0x00007ffe53f48c9e in Akonadi::Entity::operator= (this=0x7fff28450590, other=...) at ../../akonadi/entity.cpp:116
#9  0x00007ffe537c41b5 in operator= (this=0x7fff28450590) at /usr/include/akonadi/collection.h:75
#10 Message::ComposerViewBase::slotSaveMessage (this=0x291a1b0, job=0x37f1590) at ../../messagecomposer/composerviewbase.cpp:944
#11 0x00007ffe57d5f281 in QMetaObject::activate (sender=0x37f1590, m=&lt;optimized out&gt;, local_signal_index=&lt;optimized out&gt;, argv=0x7fff28450740) at kernel/qobject.cpp:3547
#12 0x00007ffe594d2182 in KJob::result (this=&lt;optimized out&gt;, _t1=0x37f1590) at ./kjob.moc:208
#13 0x00007ffe594d21c0 in KJob::emitResult (this=0x37f1590) at ../../kdecore/jobs/kjob.cpp:318
#14 0x00007ffe57d64446 in QObject::event (this=0x37f1590, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1195
#15 0x00007ffe5826d894 in notify_helper (e=0x3810400, receiver=0x37f1590, this=0x13e5f80) at kernel/qapplication.cpp:4559
#16 QApplicationPrivate::notify_helper (this=0x13e5f80, receiver=0x37f1590, e=0x3810400) at kernel/qapplication.cpp:4531
#17 0x00007ffe58272713 in QApplication::notify (this=0x7fff28451180, receiver=0x37f1590, e=0x3810400) at kernel/qapplication.cpp:4420
#18 0x00007ffe59aae9e6 in KApplication::notify (this=0x7fff28451180, receiver=0x37f1590, event=0x3810400) at ../../kdeui/kernel/kapplication.cpp:311
#19 0x00007ffe57d4ae9c in QCoreApplication::notifyInternal (this=0x7fff28451180, receiver=0x37f1590, event=0x3810400) at kernel/qcoreapplication.cpp:876
#20 0x00007ffe57d4ec6a in sendEvent (event=0x3810400, receiver=0x37f1590) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1395220) at kernel/qcoreapplication.cpp:1500
#22 0x00007ffe57d79f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=&lt;optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:279
#24 0x00007ffe4fc8ed53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffe4fc8f0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffe4fc8f164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffe57d7a3bf in QEventDispatcherGlib::processEvents (this=0x1396b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0x00007ffe58315d5e in QGuiEventDispatcherGlib::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007ffe57d49c82 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007ffe57d49ed7 in QEventLoop::exec (this=0x7fff28451060, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007ffe57d4ef67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#32 0x0000000000402bd3 in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 298831, bug 294453, bug 293820, bug 290184, bug 283680.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296018</commentid>
    <comment_count>1</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2012-09-10 18:56:54 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 253031 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>