Bug 193395 - Kontact crashes when clicking on a message with only an image
Summary: Kontact crashes when clicking on a message with only an image
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 193651 196981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-20 20:00 UTC by Brian Beck
Modified: 2009-07-08 15:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Email message the crashes Kontact (2.22 KB, text/plain)
2009-05-20 20:05 UTC, Brian Beck
Details
Email message that does not crash Kontact (2.52 KB, text/plain)
2009-05-20 20:12 UTC, Brian Beck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Beck 2009-05-20 20:00:04 UTC
Application that crashed: kontact
Version of the application: 4.3.0 pre
KDE Version: 4.2.85 (KDE 4.2.85 (KDE 4.3 Beta1))
Qt Version: 4.5.1
Operating System: Linux 2.6.28-11-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I recieved an email that only had an image (no text in the body), and when I click on the image in the message list kontact crashes.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 0 (LWP 7461)]

Thread 2 (Thread 0x7ff0d03fc950 (LWP 7467)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217
#1  0x00007ff0ec5afcc7 in QWaitCondition::wait (this=0x2dd6c68, mutex=0x2dd6c60, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  0x00007ff0ec5a5879 in QThreadPoolThread::run (this=0x2dd6e30) at concurrent/qthreadpool.cpp:140
#3  0x00007ff0ec5aed02 in QThreadPrivate::start (arg=0x2dd6e30) at thread/qthread_unix.cpp:189
#4  0x00007ff0e8e8a3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#5  0x00007ff0ebb19fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff0f2140750 (LWP 7461)):
[KCrash Handler]
#5  0x00007ff0d974bdd3 in KMail::ObjectTreeParser::defaultHandling (this=0x7ffffa1861f0, node=0x2e79410, result=@0x7ffffa185fe0) at /build/buildd/kdepim-4.2.85/kmail/objecttreeparser.cpp:313
#6  0x00007ff0d974c7e5 in KMail::ObjectTreeParser::parseObjectTree (this=0x7ffffa1861f0, node=0x2e79410) at /build/buildd/kdepim-4.2.85/kmail/objecttreeparser.cpp:291
#7  0x00007ff0d95cbb97 in KMReaderWin::parseMsg (this=0x1d9e2c0, aMsg=0x2dd2520) at /build/buildd/kdepim-4.2.85/kmail/kmreaderwin.cpp:1635
#8  0x00007ff0d95b880a in KMReaderWin::displayMessage (this=0x1d9e2c0) at /build/buildd/kdepim-4.2.85/kmail/kmreaderwin.cpp:1568
#9  0x00007ff0d95b89f5 in KMReaderWin::updateReaderWin (this=0x1d9e2c0) at /build/buildd/kdepim-4.2.85/kmail/kmreaderwin.cpp:1508
#10 0x00007ff0d95c7275 in KMReaderWin::qt_metacall (this=0x1d9e2c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffffa1868e0)
    at /build/buildd/kdepim-4.2.85/obj-x86_64-linux-gnu/kmail/kmreaderwin.moc:165
#11 0x00007ff0ec6ad8d2 in QMetaObject::activate (sender=0x1d9e358, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x7ffffa185fe0) at kernel/qobject.cpp:3120
#12 0x00007ff0ec6a7bb3 in QObject::event (this=0x1d9e358, e=0x2e79410) at kernel/qobject.cpp:1082
#13 0x00007ff0ed20db9d in QApplicationPrivate::notify_helper (this=0x1554810, receiver=0x1d9e358, e=0x7ffffa186f90) at kernel/qapplication.cpp:4057
#14 0x00007ff0ed215dea in QApplication::notify (this=0x7ffffa1872e0, receiver=0x1d9e358, e=0x7ffffa186f90) at kernel/qapplication.cpp:4022
#15 0x00007ff0ee63d1ab in KApplication::notify (this=0x7ffffa1872e0, receiver=0x1d9e358, event=0x7ffffa186f90) at /build/buildd/kde4libs-4.2.85/kdeui/kernel/kapplication.cpp:307
#16 0x00007ff0ec697dfc in QCoreApplication::notifyInternal (this=0x7ffffa1872e0, receiver=0x1d9e358, event=0x7ffffa186f90) at kernel/qcoreapplication.cpp:610
#17 0x00007ff0ec6c4eb6 in QTimerInfoList::activateTimers (this=0x154fe50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 0x00007ff0ec6c15cd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#19 0x00007ff0e5dec20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007ff0e5def8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x00007ff0e5defa7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007ff0ec6c152f in QEventDispatcherGlib::processEvents (this=0x1518ea0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#23 0x00007ff0ed2a670f in QGuiEventDispatcherGlib::processEvents (this=0x1d9e2c0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#24 0x00007ff0ec6966a2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -99061248}) at kernel/qeventloop.cpp:149
#25 0x00007ff0ec696a6d in QEventLoop::exec (this=0x7ffffa187240, flags={i = -99061168}) at kernel/qeventloop.cpp:200
#26 0x00007ff0ec698d34 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#27 0x0000000000404945 in main (argc=1, argv=0x7ffffa1879c8) at /build/buildd/kdepim-4.2.85/kontact/src/main.cpp:218
Comment 1 Brian Beck 2009-05-20 20:05:38 UTC
Created attachment 33868 [details]
Email message the crashes Kontact

This is the email that crashes Kontact.  (I have replaced the senders domain name with underscores.)
Comment 2 Brian Beck 2009-05-20 20:08:51 UTC
I sent myself the same image with some text in the body of the message, and Kontact does not crash.

The emails are being sent from a Microsoft Outlook 2003 (11.8169.8172) SP3 client.
Comment 3 Brian Beck 2009-05-20 20:12:04 UTC
Created attachment 33869 [details]
Email message that does not crash Kontact

This is a similar email that does *not* crash Kontact.  (I have replaced the senders domain name with underscores.)
Comment 4 Dario Andres 2009-05-22 18:31:19 UTC
*** Bug 193651 has been marked as a duplicate of this bug. ***
Comment 5 Brian Beck 2009-06-09 22:23:42 UTC
This bug still occurs in Kubuntu version: 4.3.0 pre

Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f6000d9fc13 in KMail::ObjectTreeParser::defaultHandling (this=0x7fff21837930, node=0x35b2990, result=@0x7fff21837720) at /build/buildd/kdepim-4.2.90/kmail/objecttreeparser.cpp:313
#6  0x00007f6000da0625 in KMail::ObjectTreeParser::parseObjectTree (this=0x7fff21837930, node=0x35b2990) at /build/buildd/kdepim-4.2.90/kmail/objecttreeparser.cpp:291
#7  0x00007f6000c1e567 in KMReaderWin::parseMsg (this=0x2e7b930, aMsg=0x26fdbb0) at /build/buildd/kdepim-4.2.90/kmail/kmreaderwin.cpp:1656
#8  0x00007f6000c0b01a in KMReaderWin::displayMessage (this=0x2e7b930) at /build/buildd/kdepim-4.2.90/kmail/kmreaderwin.cpp:1589
#9  0x00007f6000c0b205 in KMReaderWin::updateReaderWin (this=0x2e7b930) at /build/buildd/kdepim-4.2.90/kmail/kmreaderwin.cpp:1529
#10 0x00007f6000c19a85 in KMReaderWin::qt_metacall (this=0x2e7b930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff21838020)
    at /build/buildd/kdepim-4.2.90/obj-x86_64-linux-gnu/kmail/kmreaderwin.moc:165
#11 0x00007f6013d6f8d2 in QMetaObject::activate (sender=0x2e7b9c8, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x7fff21837720) at kernel/qobject.cpp:3120
#12 0x00007f6013d69bb3 in QObject::event (this=0x2e7b9c8, e=0x35b2990) at kernel/qobject.cpp:1082
#13 0x00007f60148d6b9d in QApplicationPrivate::notify_helper (this=0x262cc40, receiver=0x2e7b9c8, e=0x7fff218386d0) at kernel/qapplication.cpp:4057
#14 0x00007f60148dedea in QApplication::notify (this=0x7fff21838a20, receiver=0x2e7b9c8, e=0x7fff218386d0) at kernel/qapplication.cpp:4022
#15 0x00007f6015d05deb in KApplication::notify (this=0x7fff21838a20, receiver=0x2e7b9c8, event=0x7fff218386d0) at /build/buildd/kde4libs-4.2.90/kdeui/kernel/kapplication.cpp:302
#16 0x00007f6013d59dfc in QCoreApplication::notifyInternal (this=0x7fff21838a20, receiver=0x2e7b9c8, event=0x7fff218386d0) at kernel/qcoreapplication.cpp:610
#17 0x00007f6013d86eb6 in QTimerInfoList::activateTimers (this=0x261dcf0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 0x00007f6013d835cd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#19 0x00007f600d4ad20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007f600d4b08e0 in ?? () from /usr/lib/libglib-2.0.so.0
#21 0x00007f600d4b0a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007f6013d8352f in QEventDispatcherGlib::processEvents (this=0x25f1ea0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#23 0x00007f601496f70f in QGuiEventDispatcherGlib::processEvents (this=0x2e7b930, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#24 0x00007f6013d586a2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 562268480}) at kernel/qeventloop.cpp:149
#25 0x00007f6013d58a6d in QEventLoop::exec (this=0x7fff21838980, flags={i = 562268560}) at kernel/qeventloop.cpp:200
#26 0x00007f6013d5ad34 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#27 0x0000000000404945 in main (argc=1, argv=0x7fff21839108) at /build/buildd/kdepim-4.2.90/kontact/src/main.cpp:218
Comment 6 Allen Winter 2009-06-11 02:04:45 UTC
SVN commit 980044 by winterz:

add a crash guard that might help fix "Kontact crashes when clicking on a
message with only an image".  Although I cannot reproduce the crash here.

Brian, this will be in the KDE 4.3 rc1 due out in a couple weeks
please test as soon as possible.

CCBUG: 193395


 M  +3 -2      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=980044
Comment 7 Christophe Marin 2009-07-06 21:06:33 UTC
*** Bug 196981 has been marked as a duplicate of this bug. ***
Comment 8 kavol 2009-07-08 14:10:35 UTC
kmail from RC1 (4.2.95) does not crash anymore using the reproducer from bug #196981 - thanks!
Comment 9 Allen Winter 2009-07-08 15:02:48 UTC
ok, closing as FIXED then.