Bug 219828

Summary: Kmail crashes when trying to print
Product: [Unmaintained] kmail Reporter: Martin Foster <fido250333-kdebugs>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Foster 2009-12-23 14:31:39 UTC
Application that crashed: kmail
Version of the application: 1.12.4
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-16-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Every time I try to print an email, Kmail crashes.
[1] I click the "Print" button on the menu bar which brings up a dialogue box. 
[2] I click the "Print" button on the dialogue box and Kmail crashes.

Although the crash report says Ubuntu, this is actually on Kubuntu.


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

Thread 4 (Thread 0xac965b70 (LWP 2087)):
#0  0x00adf422 in __kernel_vsyscall ()
#1  0x01d46e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x00a5178d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x026b6e67 in QWaitConditionPrivate::wait (this=0xa6bfed0, mutex=0xa6bfecc, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0xa6bfed0, mutex=0xa6bfecc, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x018d8dea in QFileInfoGatherer::run (this=0xa6bfec4) at dialogs/qfileinfogatherer.cpp:207
#6  0x026b5e32 in QThreadPrivate::start (arg=0xa6bfec4) at thread/qthread_unix.cpp:188
#7  0x01d4280e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x00a447ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xac164b70 (LWP 2088)):
#0  0x096a5e06 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0x027d2bf3 in QTimerInfoList::getTime (this=0xa6c212c, t=...) at kernel/qeventdispatcher_unix.cpp:339
#2  0x027d2de1 in QTimerInfoList::updateCurrentTime (this=0xa6c212c) at kernel/qeventdispatcher_unix.cpp:297
#3  0x027d388c in QTimerInfoList::timerWait (this=0xa6c212c, tm=...) at kernel/qeventdispatcher_unix.cpp:420
#4  0x027d1210 in timerSourcePrepare (source=0xa6c20f8, timeout=0xac16407c) at kernel/qeventdispatcher_glib.cpp:141
#5  0x06a44f90 in IA__g_main_context_prepare (context=0x9adcca0, priority=0xac1640fc) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2280
#6  0x06a45351 in g_main_context_iterate (context=0x9adcca0, block=<value optimized out>, dispatch=1, self=0xb3902f70) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2571
#7  0x06a45863 in IA__g_main_context_iteration (context=0x9adcca0, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#8  0x027d1067 in QEventDispatcherGlib::processEvents (this=0xa625cd0, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#9  0x027a4c79 in QEventLoop::processEvents (this=0xac164244, flags=) at kernel/qeventloop.cpp:149
#10 0x027a50ca in QEventLoop::exec (this=0xac164244, flags=...) at kernel/qeventloop.cpp:201
#11 0x026b2b73 in QThread::exec (this=0xa6c08b0) at thread/qthread.cpp:487
#12 0x027876ab in QInotifyFileSystemWatcherEngine::run (this=0xa6c08b0) at io/qfilesystemwatcher_inotify.cpp:214
#13 0x026b5e32 in QThreadPrivate::start (arg=0xa6c08b0) at thread/qthread_unix.cpp:188
#14 0x01d4280e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0x00a447ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xab963b70 (LWP 2089)):
#0  0x00adf422 in __kernel_vsyscall ()
#1  0x01d46e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x00a5178d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x026b6e67 in QWaitConditionPrivate::wait (this=0x9aed588, mutex=0x9aed584, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9aed588, mutex=0x9aed584, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x078b9922 in QHostInfoAgent::run (this=0x9aed578) at kernel/qhostinfo.cpp:260
#6  0x026b5e32 in QThreadPrivate::start (arg=0x9aed578) at thread/qthread_unix.cpp:188
#7  0x01d4280e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x00a447ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb788aaa0 (LWP 1773)):
[KCrash Handler]
#6  convertPath (path=<value optimized out>, points=<value optimized out>, endPoints=0xbfc1d53c, ppem=2048) at text/qfontsubset.cpp:1061
#7  0x015b4d5d in generateGlyph (this=0xa6a7f08) at text/qfontsubset.cpp:1201
#8  QFontSubset::toTruetype (this=0xa6a7f08) at text/qfontsubset.cpp:1442
#9  0x01511fcd in QPdfEnginePrivate::embedFont (this=0xa0a4800, font=0xa6a7f08) at painting/qprintengine_pdf.cpp:983
#10 0x01512b88 in QPdfEnginePrivate::writeFonts (this=0xa0a4800) at painting/qprintengine_pdf.cpp:1094
#11 0x01512d27 in QPdfEnginePrivate::writeTail (this=0xa0a4800) at painting/qprintengine_pdf.cpp:1187
#12 0x01512e98 in QPdfEngine::end (this=0xa75e220) at painting/qprintengine_pdf.cpp:159
#13 0x014d5710 in QPainter::end (this=0xa07f750) at painting/qpainter.cpp:1864
#14 0x0528a1b6 in KHTMLView::print (this=0xa6e2150, quick=false) at ../../khtml/khtmlview.cpp:3315
#15 0x00c7446b in KMReaderWin::slotPrintMsg (this=0xa6a9848) at ../../kmail/kmreaderwin.cpp:1886
#16 0x00c88e45 in KMReaderWin::qt_metacall (this=0xa6a9848, _c=QMetaObject::InvokeMetaMethod, _id=55, _a=0xbfc1db5c) at ./kmreaderwin.moc:217
#17 0x027bc263 in QMetaObject::activate (sender=0x9aa8fa8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#18 0x027bcec2 in QMetaObject::activate (sender=0x9aa8fa8, m=0x127d158, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#19 0x00e12e07 in KMail::KHtmlPartHtmlWriter::finished (this=0x9aa8fa8) at ./khtmlparthtmlwriter.moc:84
#20 0x00e14417 in KMail::KHtmlPartHtmlWriter::end (this=0x9aa8fa8) at ../../kmail/khtmlparthtmlwriter.cpp:93
#21 0x00e13557 in KMail::KHtmlPartHtmlWriter::slotWriteNextHtmlChunk (this=0x9aa8fa8) at ../../kmail/khtmlparthtmlwriter.cpp:125
#22 0x00e135d8 in KMail::KHtmlPartHtmlWriter::qt_metacall (this=0x9aa8fa8, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfc1dd1c) at ./khtmlparthtmlwriter.moc:73
#23 0x027bc263 in QMetaObject::activate (sender=0x9aa8fbc, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#24 0x027bcec2 in QMetaObject::activate (sender=0x9aa8fbc, m=0x2897904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#25 0x027f6667 in QTimer::timeout (this=0x9aa8fbc) at .moc/release-shared/moc_qtimer.cpp:128
#26 0x027c19ae in QTimer::timerEvent (this=0x9aa8fbc, e=0xbfc1e1b0) at kernel/qtimer.cpp:261
#27 0x027b63bf in QObject::event (this=0x9aa8fbc, e=0xbfc1e1b0) at kernel/qobject.cpp:1075
#28 0x013abf54 in QApplicationPrivate::notify_helper (this=0x9aab390, receiver=0x9aa8fbc, e=0xbfc1e1b0) at kernel/qapplication.cpp:4056
#29 0x013b367c in QApplication::notify (this=0xbfc1e5b0, receiver=0x9aa8fbc, e=0xbfc1e1b0) at kernel/qapplication.cpp:3603
#30 0x002e31aa in KApplication::notify (this=0xbfc1e5b0, receiver=0x9aa8fbc, event=0xbfc1e1b0) at ../../kdeui/kernel/kapplication.cpp:302
#31 0x027a66cb in QCoreApplication::notifyInternal (this=0xbfc1e5b0, receiver=0x9aa8fbc, event=0xbfc1e1b0) at kernel/qcoreapplication.cpp:610
#32 0x027d37ce in QCoreApplication::sendEvent (this=0x9a9089c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#33 QTimerInfoList::activateTimers (this=0x9a9089c) at kernel/qeventdispatcher_unix.cpp:572
#34 0x027d10e0 in timerSourceDispatch (source=0x9a90868) at kernel/qeventdispatcher_glib.cpp:165
#35 0x06a41e88 in g_main_dispatch (context=0x9a8f910) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:1960
#36 IA__g_main_context_dispatch (context=0x9a8f910) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2513
#37 0x06a45730 in g_main_context_iterate (context=0x9a8f910, block=<value optimized out>, dispatch=1, self=0x9ab0548) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591
#38 0x06a45863 in IA__g_main_context_iteration (context=0x9a8f910, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#39 0x027d102c in QEventDispatcherGlib::processEvents (this=0x9a68180, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#40 0x0144cbe5 in QGuiEventDispatcherGlib::processEvents (this=0x9a68180, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#41 0x027a4c79 in QEventLoop::processEvents (this=0xbfc1e474, flags=) at kernel/qeventloop.cpp:149
#42 0x027a50ca in QEventLoop::exec (this=0xbfc1e474, flags=...) at kernel/qeventloop.cpp:201
#43 0x027a753f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#44 0x013abdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#45 0x0804a702 in main (argc=3, argv=0xbfc1e764) at ../../kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Martin Foster 2010-04-28 12:44:12 UTC
I'm getting exactly the same thing with 1.13.2 running under PCLinuxOS 2010 but I've stumbled upon a workaround: change to "Fixed Font" and KMail no longer crashes!