Bug 255395 - crash when opening mailbox
Summary: crash when opening mailbox
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 13:39 UTC by Pascal Vandeputte
Modified: 2012-08-19 10:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Vandeputte 2010-10-27 13:39:12 UTC
Application: kmail (1.13.5)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-22-generic x86_64
Distribution: Ubuntu 10.10

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

I had just opened Kmail and clicked on 1 of the default Favorites (i.e. the inbox of one of my 2 accounts).

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f4467a6f820 (LWP 2197))]

Thread 2 (Thread 0x7f4443f23710 (LWP 2311)):
#0  0x00007f445b57f721 in g_main_context_check () from /lib/libglib-2.0.so.0
#1  0x00007f445b580023 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f445b58045c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f4464e1f1e6 in QEventDispatcherGlib::processEvents (this=0x24c1e00, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f4464df1a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f4464df1dec in QEventLoop::exec (this=0x7f4443f22cf0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f4464cfc2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f4464dd15f8 in QInotifyFileSystemWatcherEngine::run (this=0x245b690) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4464cff27e in QThreadPrivate::start (arg=0x245b690) at thread/qthread_unix.cpp:266
#9  0x00007f4461fcb971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f44644d191d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4467a6f820 (LWP 2197)):
[KCrash Handler]
#6  QUtf8::convertFromUnicode (uc=<value optimized out>, len=<value optimized out>, state=0x0) at codecs/qutfcodec.cpp:91
#7  0x00007f4464e2a221 in QUtf8Codec::convertFromUnicode (this=<value optimized out>, uc=0x7f4409b8a552, len=-55296, state=0xffffffff) at codecs/qutfcodec.cpp:522
#8  0x00007f4464e24f17 in QTextCodec::fromUnicode (this=0x7f4409b8a552, str=<value optimized out>) at codecs/qtextcodec.cpp:1375
#9  0x00007f4464d448f1 in QString::toLocal8Bit (this=0x2aff6d0) at tools/qstring.cpp:3642
#10 0x00007f4464d800b9 in locale_encode (f=...) at io/qfile.cpp:71
#11 0x00007f44665fb811 in KMail::ISubject::notify (this=0x2aff6d0) at ../../kmail/isubject.cpp:33
#12 0x00007f44662e7d4c in KMMessage::updateBodyPart (this=0x2aff600, partSpecifier=) at ../../kmail/kmmessage.cpp:3185
#13 0x00007f44665d1149 in KMail::ImapJob::slotGetMessageResult (this=0x2b9a6a0, job=<value optimized out>) at ../../kmail/imapjob.cpp:435
#14 0x00007f44665d303b in KMail::ImapJob::qt_metacall (this=0x2b9a6a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff497e9c40) at ./imapjob.moc:88
#15 0x00007f4464e0ab27 in QMetaObject::activate (sender=0x27d6bd0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f4532bb6400) at kernel/qobject.cpp:3280
#16 0x00007f4466ebb712 in KJob::result (this=0x0, _t1=0x27d6bd0) at ./kjob.moc:194
#17 0x00007f4466ebb9b0 in KJob::emitResult (this=0x27d6bd0) at ../../kdecore/jobs/kjob.cpp:312
#18 0x00007f4460eb2203 in KIO::SimpleJob::slotFinished (this=0x27d6bd0) at ../../kio/kio/job.cpp:522
#19 0x00007f4460eb2af7 in KIO::TransferJob::slotFinished (this=0x27d6bd0) at ../../kio/kio/job.cpp:1111
#20 0x00007f4460eb0a41 in KIO::TransferJob::qt_metacall (this=0x27d6bd0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff497ea040) at ./jobclasses.moc:367
#21 0x00007f4464e0ab27 in QMetaObject::activate (sender=0x2c8a900, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f4532bb6400) at kernel/qobject.cpp:3280
#22 0x00007f4460f61c8e in KIO::SlaveInterface::dispatch (this=0x2c8a900, _cmd=104, rawdata=...) at ../../kio/kio/slaveinterface.cpp:175
#23 0x00007f4460f5ecc3 in KIO::SlaveInterface::dispatch (this=0x2c8a900) at ../../kio/kio/slaveinterface.cpp:91
#24 0x00007f4460f52876 in KIO::Slave::gotInput (this=0x2c8a900) at ../../kio/kio/slave.cpp:344
#25 0x00007f4460f52a5c in KIO::Slave::qt_metacall (this=0x2c8a900, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff497ea480) at ./slave.moc:82
#26 0x00007f4464e0ab27 in QMetaObject::activate (sender=0x2e2ff20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f4532bb6400) at kernel/qobject.cpp:3280
#27 0x00007f4460e7edf7 in KIO::ConnectionPrivate::dequeue (this=0x1fed8b0) at ../../kio/kio/connection.cpp:82
#28 0x00007f4460e7ef1d in KIO::Connection::qt_metacall (this=0x2e2ff20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2bab8a0) at ./connection.moc:79
#29 0x00007f4464e04bde in QObject::event (this=0x2e2ff20, e=0x0) at kernel/qobject.cpp:1219
#30 0x00007f44652ddfdc in QApplicationPrivate::notify_helper (this=0x14b9dd0, receiver=0x2e2ff20, e=0x21d13a0) at kernel/qapplication.cpp:4396
#31 0x00007f44652e3aed in QApplication::notify (this=0x7fff497eb0a0, receiver=0x2e2ff20, e=0x21d13a0) at kernel/qapplication.cpp:4277
#32 0x00007f4467486156 in KApplication::notify (this=0x7fff497eb0a0, receiver=0x2e2ff20, event=0x21d13a0) at ../../kdeui/kernel/kapplication.cpp:310
#33 0x00007f4464df2cdc in QCoreApplication::notifyInternal (this=0x7fff497eb0a0, receiver=0x2e2ff20, event=0x21d13a0) at kernel/qcoreapplication.cpp:732
#34 0x00007f4464df5c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x147c150) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x147c150) at kernel/qcoreapplication.cpp:1373
#36 0x00007f4464e1f653 in sendPostedEvents (s=0x14bc590) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=0x14bc590) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007f445b57c342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0x00007f445b5802a8 in ?? () from /lib/libglib-2.0.so.0
#40 0x00007f445b58045c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#41 0x00007f4464e1f193 in QEventDispatcherGlib::processEvents (this=0x147b8a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#42 0x00007f4465390a4e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007f4464df1a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#44 0x00007f4464df1dec in QEventLoop::exec (this=0x7fff497eaed0, flags=) at kernel/qeventloop.cpp:201
#45 0x00007f4464df5ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#46 0x0000000000403212 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../kmail/main.cpp:156

Possible duplicates by query: bug 228333.

Reported using DrKonqi
Comment 1 Laurent Montel 2010-10-29 18:17:03 UTC
I fixed a bug about it in kmail-4.4.7 could you test it please ?
Regards
Comment 2 Pascal Vandeputte 2010-11-22 15:15:42 UTC
I'm on Kmail 1.13.5 now on KDE SC 4.5.1 (Kubuntu 10.10). I still run into it from time to time, but it has become a lot harder to reproduce.

What I noticed today as well though, is that KMail reproducibly crashes with a segfault on a specific mail message containing a winmail.dat attachment. A couple of months ago I migrated my own company mail away from Exchange to Cyrus IMAP using imapsync, so all mails older than April 2010 contain such an attachment. Maybe it's related to this crash (that mail was still sitting in inbox), maybe not. Maybe imapsync did some odd conversion causing an invalid mail file.

Thunderbird and RoundCube can display the mail though, I've now moved it to an archive folder, I'll update this bug if it still occurs.
Comment 3 Myriam Schweingruber 2012-08-19 10:54:12 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding