Bug 295676 - kmail crash on compose new email
Summary: kmail crash on compose new email
Status: RESOLVED DUPLICATE of bug 287856
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-03-10 13:29 UTC by Jan
Modified: 2012-03-31 23:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.86 KB, text/plain)
2012-03-23 12:49 UTC, E.T. Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2012-03-10 13:29:47 UTC
Application: kmail (4.8.0)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.0.0-16-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
i started kmail instead of kontact, as kontact behaves extremly slow after upgrade to 4.8.1 with kubuntu backports 11.10
reading and moving mails worked, but when i clicked on New Mail button the application crashed

- Unusual behavior I noticed:
mysqld and virtuose-t process takes very much cpu. KDE at all seems very unstable after the upgrade to 4.8.1

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f89f5f73700 (LWP 16213)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8a096d4c2c in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f8a096d4d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f8a1434defc in start_thread (arg=0x7f89f5f73700) at pthread_create.c:304
#4  0x00007f8a1464659d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f89f5672700 (LWP 16214)):
#0  0x00007f8a1463a473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8a17156240 in ?? () from /opt/lib/libmediaclient.so
#2  0x00007f8a17156a1d in poll () from /opt/lib/libmediaclient.so
#3  0x00007f8a0cdbdf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8a0cdbe429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8a14fcbc06 in QEventDispatcherGlib::processEvents (this=0x15223a0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f8a14f9b3e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f8a14f9b637 in QEventLoop::exec (this=0x7f89f5671dc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f8a14e9b067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f8a14e9e08b in QThreadPrivate::start (arg=0x15218c0) at thread/qthread_unix.cpp:298
#10 0x00007f8a1434defc in start_thread (arg=0x7f89f5672700) at pthread_create.c:304
#11 0x00007f8a1464659d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f89ae229700 (LWP 16252)):
#0  0x00007f8a1463a473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8a17156240 in ?? () from /opt/lib/libmediaclient.so
#2  0x00007f8a17156a1d in poll () from /opt/lib/libmediaclient.so
#3  0x00007f8a0cdbdf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8a0cdbe429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8a14fcbc06 in QEventDispatcherGlib::processEvents (this=0x10af960, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f8a14f9b3e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f8a14f9b637 in QEventLoop::exec (this=0x7f89ae228d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f8a14e9b067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f8a14f7b17f in QInotifyFileSystemWatcherEngine::run (this=0x182a440) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f8a14e9e08b in QThreadPrivate::start (arg=0x182a440) at thread/qthread_unix.cpp:298
#11 0x00007f8a1434defc in start_thread (arg=0x7f89ae229700) at pthread_create.c:304
#12 0x00007f8a1464659d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f89a61fe700 (LWP 17514)):
#0  0x00007f8a1463a473 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8a17156240 in ?? () from /opt/lib/libmediaclient.so
#2  0x00007f8a17156a1d in poll () from /opt/lib/libmediaclient.so
#3  0x00007f8a0cdbdf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8a0cdbe429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8a14fcbc06 in QEventDispatcherGlib::processEvents (this=0x4c72220, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f8a14f9b3e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f8a14f9b637 in QEventLoop::exec (this=0x7f89a61fdd90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f8a14e9b067 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f8a14f7b17f in QInotifyFileSystemWatcherEngine::run (this=0x3410e50) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f8a14e9e08b in QThreadPrivate::start (arg=0x3410e50) at thread/qthread_unix.cpp:298
#11 0x00007f8a1434defc in start_thread (arg=0x7f89a61fe700) at pthread_create.c:304
#12 0x00007f8a1464659d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f89ff8c87c0 (LWP 16185)):
[KCrash Handler]
#6  0x00007f8a157298dc in QTextLine::cursorToX (this=0x7fff3ec1a9e0, cursorPos=0x7fff3ec1aa28, edge=QTextLine::Leading) at text/qtextlayout.cpp:2511
#7  0x00007f8a157069cc in cursorToX (edge=QTextLine::Leading, cursorPos=0, this=0x7fff3ec1a9e0) at ../../include/QtGui/../../src/gui/text/qtextlayout.h:230
#8  QTextControlPrivate::rectForPosition (this=0x3c851c0, position=<optimized out>) at text/qtextcontrol.cpp:1368
#9  0x00007f8a1570a1e8 in QTextControl::ensureCursorVisible (this=<optimized out>) at text/qtextcontrol.cpp:2950
#10 0x00007f8a1570dd83 in QTextControl::setTextCursor (this=0x3223260, cursor=...) at text/qtextcontrol.cpp:833
#11 0x00007f8a108ed327 in Message::KMeditor::replaceSignature (this=0x304ee40, oldSig=..., newSig=...) at ../../messagecomposer/kmeditor.cpp:708
#12 0x00007f8a108dd3c9 in Message::ComposerViewBase::identityChanged (this=0x33e9c70, ident=..., oldIdent=...) at ../../messagecomposer/composerviewbase.cpp:1146
#13 0x00007f8a1611ecf5 in KMComposeWin::slotIdentityChanged (this=0x3c87640, uoid=170918929, initalChange=true) at ../../kmail/kmcomposewin.cpp:2951
#14 0x00007f8a1611fb9b in KMComposeWin::setMsg (this=0x3c87640, newMsg=..., mayAutoSign=true, allowDecryption=<optimized out>, isModified=false) at ../../kmail/kmcomposewin.cpp:1531
#15 0x00007f8a16122ed9 in KMComposeWin::KMComposeWin (this=0x3c87640, aMsg=..., context=<optimized out>, id=<optimized out>, textSelection=<optimized out>, customTemplate=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmcomposewin.cpp:453
#16 0x00007f8a16123e55 in KMComposeWin::create (msg=..., context=KMail::Composer::New, identity=170918929, textSelection=..., customTemplate=...) at ../../kmail/kmcomposewin.cpp:168
#17 0x00007f8a160cd960 in KMMainWidget::slotCompose (this=<optimized out>) at ../../kmail/kmmainwidget.cpp:1520
#18 0x00007f8a160ee0dd in KMMainWidget::qt_metacall (this=0x12f1080, _c=QMetaObject::InvokeMetaMethod, _id=42, _a=0x7fff3ec1bda0) at ./kmmainwidget.moc:394
#19 0x00007f8a14fb0be9 in QMetaObject::activate (sender=0x158ffe0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff3ec1bda0) at kernel/qobject.cpp:3566
#20 0x00007f8a154b8c52 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#21 0x00007f8a154b8e3f in QAction::activate (this=0x158ffe0, event=<optimized out>) at kernel/qaction.cpp:1257
#22 0x00007f8a1588bfba in QAbstractButtonPrivate::click (this=0x1701880) at widgets/qabstractbutton.cpp:528
#23 0x00007f8a1588c26c in QAbstractButton::mouseReleaseEvent (this=0x17015b0, e=0x7fff3ec1c680) at widgets/qabstractbutton.cpp:1121
#24 0x00007f8a15949a3a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#25 0x00007f8a1550f914 in QWidget::event (this=0x17015b0, event=0x7fff3ec1c680) at kernel/qwidget.cpp:8361
#26 0x00007f8a154bf104 in notify_helper (e=0x7fff3ec1c680, receiver=0x17015b0, this=0xc3d8c0) at kernel/qapplication.cpp:4555
#27 QApplicationPrivate::notify_helper (this=0xc3d8c0, receiver=0x17015b0, e=0x7fff3ec1c680) at kernel/qapplication.cpp:4527
#28 0x00007f8a154c492f in QApplication::notify (this=<optimized out>, receiver=0x17015b0, e=0x7fff3ec1c680) at kernel/qapplication.cpp:4098
#29 0x00007f8a16cee9a6 in KApplication::notify (this=0x7fff3ec1d430, receiver=0x17015b0, event=0x7fff3ec1c680) at ../../kdeui/kernel/kapplication.cpp:311
#30 0x00007f8a14f9c5fc in QCoreApplication::notifyInternal (this=0x7fff3ec1d430, receiver=0x17015b0, event=0x7fff3ec1c680) at kernel/qcoreapplication.cpp:876
#31 0x00007f8a154c00d2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 QApplicationPrivate::sendMouseEvent (receiver=0x17015b0, event=0x7fff3ec1c680, alienWidget=0x17015b0, nativeWidget=0x16fc330, buttonDown=0x17015b0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3166
#33 0x00007f8a1553c765 in QETWidget::translateMouseEvent (this=0x16fc330, event=<optimized out>) at kernel/qapplication_x11.cpp:4613
#34 0x00007f8a1553b62a in QApplication::x11ProcessEvent (this=0x7fff3ec1d430, event=0x7fff3ec1cf40) at kernel/qapplication_x11.cpp:3732
#35 0x00007f8a15564592 in x11EventSourceDispatch (s=0xc41230, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0x00007f8a0cdbda5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f8a0cdbe258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f8a0cdbe429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f8a14fcbb9f in QEventDispatcherGlib::processEvents (this=0xbcdb00, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#40 0x00007f8a1556421e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007f8a14f9b3e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007f8a14f9b637 in QEventLoop::exec (this=0x7fff3ec1d310, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007f8a14fa06c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#44 0x0000000000402bd3 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 294222, bug 293105, bug 292851, bug 289478, bug 289370.

Reported using DrKonqi
Comment 1 Jan 2012-03-10 22:07:59 UTC
this crash is caused due to usage of nepomuk. with disabled nepomuk this does not happen.
Comment 2 Jan 2012-03-10 22:26:19 UTC
seems like it is only the nepomuk mail indexer.

With enabled basic nepomuk this crash does not happen.
Having file indexer enabled works fine.
Using nepomuk mail indexer causes this crash every time i try to compose a new email.
Comment 3 Jan 2012-03-11 08:36:38 UTC
Its me again. Kontact is crashing on composing a new mail every now and then even if only basic nepomuk is running.
Comment 4 Jan 2012-03-14 17:29:23 UTC
This now seems to happen even with nepomuk completly disabled sometimes. Replying to a mail seems to work.
Comment 5 Jan 2012-03-22 18:14:19 UTC
this doesn't seems to be nepomuk related.
I deleted any nepomuk files but this still happens. Even with disabled nepomuk.

Kmail is unusable at the moment
Comment 6 E.T. Anderson 2012-03-23 12:49:02 UTC
Created attachment 69828 [details]
New crash information added by DrKonqi

kmail (4.8.0) on KDE Platform 4.8.1 (4.8.1) using Qt 4.8.0

- What I was doing when the application crashed:

When I click the New button in Kmail and I have the %SIGNATURE macro set in my new message template, I get a crash.

When I leave the %SIGNATURE macro out of the template, Kmail does not crash.

I am able to add %SIGNATURE to the reply template without a crash.

-- Backtrace (Reduced):
#6  0x00007f92b80cf8dc in QTextLine::cursorToX (this=0x7fff8edb8270, cursorPos=0x7fff8edb82b8, edge=QTextLine::Leading) at text/qtextlayout.cpp:2511
#7  0x00007f92b80ac9cc in cursorToX (edge=QTextLine::Leading, cursorPos=0, this=0x7fff8edb8270) at ../../include/QtGui/../../src/gui/text/qtextlayout.h:230
#8  QTextControlPrivate::rectForPosition (this=0x4bb9160, position=<optimized out>) at text/qtextcontrol.cpp:1368
#9  0x00007f92b80b01e8 in QTextControl::ensureCursorVisible (this=<optimized out>) at text/qtextcontrol.cpp:2950
#10 0x00007f92b80b3d83 in QTextControl::setTextCursor (this=0x4a50d00, cursor=...) at text/qtextcontrol.cpp:833
Comment 7 Christophe Marin 2012-03-31 23:41:11 UTC

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