Bug 306555

Summary: Kmail fails consistently when saving a composed mail as a draft
Product: [Frameworks and Libraries] Akonadi Reporter: Peder Chr. Nørgaard <pcn>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Peder Chr. Nørgaard 2012-09-10 16:02:33 UTC
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 "Save as Draft" 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 "To:" and a "Subject: ", 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 "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffe5a0a97c0 (LWP 3320))]

Thread 4 (Thread 0x7ffe37546700 (LWP 3324)):
#0  0x00007ffe54ec205d in __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) 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=<optimized out>, 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=<optimized out>) 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=<optimized out>, 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=<optimized out>) 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=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff28450740) at kernel/qobject.cpp:3547
#12 0x00007ffe594d2182 in KJob::result (this=<optimized out>, _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=<optimized out>) 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=<optimized out>) 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=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007ffe57d49c82 in QEventLoop::processEvents (this=<optimized out>, 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=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

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

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2012-09-10 18:56:54 UTC

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