Bug 339024 - Kontact/Kmail crashed when trying to print an email.
Summary: Kontact/Kmail crashed when trying to print an email.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-09-12 08:12 UTC by Raúl
Modified: 2017-01-07 22:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Possibly conflicting file. (2.57 KB, application/xml)
2014-09-12 08:26 UTC, Raúl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl 2014-09-12 08:12:21 UTC
Application: kontact (4.14)
KDE Platform Version: 4.14.0
Qt Version: 4.8.6
Operating System: Linux 3.16-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

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

I opened a pair of emails in order to print them. After I went to the first one, I pressed ctrl-p and kontact crashed. Please, let me know if I can provide more information.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4fea3c7900 (LWP 7345))]

Thread 6 (Thread 0x7f4fca131700 (LWP 7355)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fe503927f in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f4fe50392b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f4fe168e0a4 in start_thread (arg=0x7f4fca131700) at pthread_create.c:309
#4  0x00007f4fe788ac2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f4f8981e700 (LWP 7434)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fe4d69073 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f4fe5067e36 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f4fe168e0a4 in start_thread (arg=0x7f4f8981e700) at pthread_create.c:309
#4  0x00007f4fe788ac2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f4f794f0700 (LWP 7860)):
#0  0x00007fffb4336e6e in clock_gettime ()
#1  0x00007f4fe789787d in __GI___clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f4fe7f2b5f5 in do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f4fe800dbb9 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f4f74003120) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00007f4fe800ca97 in timerSourceCheckHelper (src=0x7f4f740030c0) at kernel/qeventdispatcher_glib.cpp:150
#6  0x00007f4fe11abb31 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f4fe11ac0f3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f4fe11ac26c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f4fe800d167 in QEventDispatcherGlib::processEvents (this=0x7f4f740008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#10 0x00007f4fe7fdc801 in QEventLoop::processEvents (this=this@entry=0x7f4f794efcd0, flags=...) at kernel/qeventloop.cpp:149
#11 0x00007f4fe7fdcb65 in QEventLoop::exec (this=this@entry=0x7f4f794efcd0, flags=...) at kernel/qeventloop.cpp:204
#12 0x00007f4fe7ed1b99 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#13 0x00007f4fe7ed43ff in QThreadPrivate::start (arg=0x16de0d0) at thread/qthread_unix.cpp:349
#14 0x00007f4fe168e0a4 in start_thread (arg=0x7f4f794f0700) at pthread_create.c:309
#15 0x00007f4fe788ac2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f4f72d5a700 (LWP 13380)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fe7ed4956 in wait (time=18446744073709551615, this=0x7bd6670) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x843f0c8, mutex=mutex@entry=0x843f0c0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f4fe8f07b35 in QFileInfoGatherer::run (this=0x843f0b0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f4fe7ed43ff in QThreadPrivate::start (arg=0x843f0b0) at thread/qthread_unix.cpp:349
#5  0x00007f4fe168e0a4 in start_thread (arg=0x7f4f72d5a700) at pthread_create.c:309
#6  0x00007f4fe788ac2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f4f64055700 (LWP 13381)):
#0  0x00007f4fe1691540 in __pthread_mutex_unlock_usercnt (mutex=0x7f4f5c000a60, decr=<optimized out>) at pthread_mutex_unlock.c:57
#1  0x00007f4fe11f01f1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fe11abffd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fe11ac26c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fe800d167 in QEventDispatcherGlib::processEvents (this=0x7f4f5c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f4fe7fdc801 in QEventLoop::processEvents (this=this@entry=0x7f4f64054c80, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f4fe7fdcb65 in QEventLoop::exec (this=this@entry=0x7f4f64054c80, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f4fe7ed1b99 in QThread::exec (this=this@entry=0x7beac30) at thread/qthread.cpp:538
#8  0x00007f4fe7fbd303 in QInotifyFileSystemWatcherEngine::run (this=0x7beac30) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007f4fe7ed43ff in QThreadPrivate::start (arg=0x7beac30) at thread/qthread_unix.cpp:349
#10 0x00007f4fe168e0a4 in start_thread (arg=0x7f4f64055700) at pthread_create.c:309
#11 0x00007f4fe788ac2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f4fea3c7900 (LWP 7345)):
[KCrash Handler]
#6  0x00007f4fe77da077 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f4fe77db458 in __GI_abort () at abort.c:89
#8  0x00007f4fe7ec979a in qt_message_output (msgType=<optimized out>, buf=0x5ac3098 "kontact(7345): Programming error in KMimeType XML loading, please create a bug report on http://bugs.kde.org and attach the file \"/usr/share/mime/application/xml.xml\" ") at global/qglobal.cpp:2386
#9  0x00007f4fe84bb9e9 in ~QDebug (this=0x7fffb425dcb0, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qdebug.h:85
#10 KMimeTypePrivate::ensureXmlDataLoaded (this=this@entry=0x5bd0710) at ../../kdecore/services/kmimetype.cpp:689
#11 0x00007f4fe84bbf88 in KMimeTypePrivate::iconName (this=0x5bd0710) at ../../kdecore/services/kmimetype.cpp:792
#12 0x00007f4fe84b7bae in KMimeType::iconName (this=<optimized out>, url=...) at ../../kdecore/services/kmimetype.cpp:607
#13 0x00007f4fcf8aa849 in KQGuiPlatformPlugin::fileSystemIcon (this=<optimized out>, file=...) at ../../qguiplatformplugin_kde/qguiplatformplugin_kde.cpp:181
#14 0x00007f4fe8fc44b2 in QFileIconProvider::icon (this=<optimized out>, info=...) at itemviews/qfileiconprovider.cpp:411
#15 0x00007f4fe8f060ba in QFileInfoGatherer::getInfo (this=this@entry=0x843f0b0, fileInfo=...) at dialogs/qfileinfogatherer.cpp:233
#16 0x00007f4fe8f008f9 in QFileSystemModelPrivate::_q_fileSystemChanged (this=0x843eff0, path=..., updates=...) at dialogs/qfilesystemmodel.cpp:1830
#17 0x00007f4fe8f01564 in QFileSystemModel::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qfilesystemmodel.cpp:75
#18 0x00007f4fe7ff72c1 in QObject::event (this=0x8adca80, e=<optimized out>) at kernel/qobject.cpp:1222
#19 0x00007f4fe8f021c6 in QFileSystemModel::event (this=<optimized out>, event=<optimized out>) at dialogs/qfilesystemmodel.cpp:1635
#20 0x00007f4fe89fc31c in QApplicationPrivate::notify_helper (this=this@entry=0x1438150, receiver=receiver@entry=0x8adca80, e=e@entry=0x7f4f6c0083a0) at kernel/qapplication.cpp:4570
#21 0x00007f4fe8a02e18 in QApplication::notify (this=this@entry=0x7fffb425f690, receiver=receiver@entry=0x8adca80, e=e@entry=0x7f4f6c0083a0) at kernel/qapplication.cpp:4356
#22 0x00007f4fe977016a in KApplication::notify (this=0x7fffb425f690, receiver=0x8adca80, event=0x7f4f6c0083a0) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007f4fe7fddcad in QCoreApplication::notifyInternal (this=0x7fffb425f690, receiver=receiver@entry=0x8adca80, event=event@entry=0x7f4f6c0083a0) at kernel/qcoreapplication.cpp:955
#24 0x00007f4fe7fe1541 in sendEvent (event=0x7f4f6c0083a0, receiver=0x8adca80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x13d72b0) at kernel/qcoreapplication.cpp:1579
#26 0x00007f4fe7fe19d3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#27 0x00007f4fe800d003 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#28 postEventSourceDispatch (s=0x1412f20) at kernel/qeventdispatcher_glib.cpp:280
#29 0x00007f4fe11abecd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f4fe11ac1b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f4fe11ac26c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f4fe800d14d in QEventDispatcherGlib::processEvents (this=0x13d8bb0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#33 0x00007f4fe8aa1056 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f4fe7fdc801 in QEventLoop::processEvents (this=this@entry=0x7fffb425e7f0, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f4fe7fdcb65 in QEventLoop::exec (this=this@entry=0x7fffb425e7f0, flags=...) at kernel/qeventloop.cpp:204
#36 0x00007f4fe8ed08bc in QDialog::exec (this=0x1864310) at dialogs/qdialog.cpp:562
#37 0x00007f4f7d09c529 in MessageViewer::ViewerPrivate::slotPrintMsg (this=0x8e221e0) at ../../messageviewer/viewer/viewer_p.cpp:2453
#38 0x00007f4f7d11b1fb in MessageViewer::ViewerPrivate::qt_static_metacall (_o=0x8e221e0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at moc_viewer_p.cpp:285
#39 0x00007f4fe7ff2c5c in QMetaObject::activate (sender=sender@entry=0x8ffd6d0, m=m@entry=0x7f4f7d377720 <MessageViewer::WebKitPartHtmlWriter::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#40 0x00007f4f7d11a310 in MessageViewer::WebKitPartHtmlWriter::finished (this=this@entry=0x8ffd6d0) at moc_webkitparthtmlwriter.cpp:100
#41 0x00007f4f7d0e1bfb in MessageViewer::WebKitPartHtmlWriter::end (this=0x8ffd6d0) at ../../messageviewer/htmlwriter/webkitparthtmlwriter.cpp:101
#42 0x00007f4f7d094a80 in MessageViewer::ViewerPrivate::displayMessage (this=this@entry=0x8e221e0) at ../../messageviewer/viewer/viewer_p.cpp:869
#43 0x00007f4f7d0955e0 in MessageViewer::ViewerPrivate::updateReaderWin (this=0x8e221e0) at ../../messageviewer/viewer/viewer_p.cpp:2289
#44 0x00007f4f7d095d0e in MessageViewer::ViewerPrivate::setMessageItem (this=0x8e221e0, item=..., updateMode=updateMode@entry=MessageViewer::Viewer::Force) at ../../messageviewer/viewer/viewer_p.cpp:1359
#45 0x00007f4f7d09610c in MessageViewer::ViewerPrivate::printMessage (this=<optimized out>, message=...) at ../../messageviewer/viewer/viewer_p.cpp:1286
#46 0x00007f4f7d081799 in MessageViewer::Viewer::printMessage (this=<optimized out>, msg=...) at ../../messageviewer/viewer/viewer.cpp:140
#47 0x00007f4f7efb7b34 in KMPrintCommand::execute (this=0x7161ba0) at ../../kmail/kmcommands.cpp:1124
#48 0x00007f4f7efb65f9 in KMCommand::slotPostTransfer (this=0x7161ba0, result=KMCommand::OK) at ../../kmail/kmcommands.cpp:266
#49 0x00007f4fe7ff2c5c in QMetaObject::activate (sender=sender@entry=0x7161ba0, m=m@entry=0x7f4f7f363100 <KMCommand::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffb425edf0) at kernel/qobject.cpp:3567
#50 0x00007f4f7f0c381e in KMCommand::messagesTransfered (this=this@entry=0x7161ba0, _t1=_t1@entry=KMCommand::OK) at moc_kmcommands.cpp:116
#51 0x00007f4f7efb978f in KMCommand::slotJobFinished (this=0x7161ba0) at ../../kmail/kmcommands.cpp:366
#52 0x00007f4fe7ff2c5c in QMetaObject::activate (sender=sender@entry=0x203ca60, m=m@entry=0x7f4fe8823ee0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffb425efb0) at kernel/qobject.cpp:3567
#53 0x00007f4fe8483042 in KJob::result (this=this@entry=0x203ca60, _t1=_t1@entry=0x203ca60) at ./kjob.moc:207
#54 0x00007f4fe8483090 in KJob::emitResult (this=0x203ca60) at ../../kdecore/jobs/kjob.cpp:318
#55 0x00007f4fe7ff72c1 in QObject::event (this=0x203ca60, e=<optimized out>) at kernel/qobject.cpp:1222
#56 0x00007f4fe89fc31c in QApplicationPrivate::notify_helper (this=this@entry=0x1438150, receiver=receiver@entry=0x203ca60, e=e@entry=0x8afb500) at kernel/qapplication.cpp:4570
#57 0x00007f4fe8a02e18 in QApplication::notify (this=this@entry=0x7fffb425f690, receiver=receiver@entry=0x203ca60, e=e@entry=0x8afb500) at kernel/qapplication.cpp:4356
#58 0x00007f4fe977016a in KApplication::notify (this=0x7fffb425f690, receiver=0x203ca60, event=0x8afb500) at ../../kdeui/kernel/kapplication.cpp:311
#59 0x00007f4fe7fddcad in QCoreApplication::notifyInternal (this=0x7fffb425f690, receiver=receiver@entry=0x203ca60, event=event@entry=0x8afb500) at kernel/qcoreapplication.cpp:955
#60 0x00007f4fe7fe1541 in sendEvent (event=0x8afb500, receiver=0x203ca60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#61 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x13d72b0) at kernel/qcoreapplication.cpp:1579
#62 0x00007f4fe7fe19d3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#63 0x00007f4fe800d003 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#64 postEventSourceDispatch (s=0x1412f20) at kernel/qeventdispatcher_glib.cpp:280
#65 0x00007f4fe11abecd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007f4fe11ac1b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f4fe11ac26c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007f4fe800d14d in QEventDispatcherGlib::processEvents (this=0x13d8bb0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#69 0x00007f4fe8aa1056 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#70 0x00007f4fe7fdc801 in QEventLoop::processEvents (this=this@entry=0x7fffb425f5b0, flags=...) at kernel/qeventloop.cpp:149
#71 0x00007f4fe7fdcb65 in QEventLoop::exec (this=this@entry=0x7fffb425f5b0, flags=...) at kernel/qeventloop.cpp:204
#72 0x00007f4fe7fe25c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#73 0x00007f4fe89fa79c in QApplication::exec () at kernel/qapplication.cpp:3828
#74 0x0000000000403509 in main (argc=1, argv=0x7fffb425f7e8) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 333347, bug 332769, bug 323544, bug 318467, bug 315014.

Reported using DrKonqi
Comment 1 Raúl 2014-09-12 08:26:26 UTC
Created attachment 88672 [details]
Possibly conflicting file.

Same crash when I select an email, right click on it and choose print. I'm attaching 
/usr/share/mime/application/xml.xml which seems relevant.
Comment 2 Raúl 2014-09-12 08:30:49 UTC
More noise and a solution. Looks the xml file was corrupted. I forced a regeneration (using update-mime-database on debian) and now it works as expected, doesn't crash.
I'm not sure if this should be kept open, if you don't think so feel free to close.
Comment 3 Denis Kurz 2016-09-24 19:22:04 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 22:35:17 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.