Summary: | kmail crashes trying to edit subject/message body with some dictionary languages set in identity properties | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | kavol <kavol> |
Component: | composer | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | franz.trischberger, johu, kavol, m4rkusxxl, rdieter |
Priority: | NOR | ||
Version: | 4.8 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8.2 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
valgrind log from the crash better log (with --track-origins=yes) |
Description
kavol
2012-03-09 14:30:27 UTC
I have the same(?) issue. When I hit reply, the composer opens and when I try to type it will crash with a segfault. backtrace: Application: KMail (kmail), signal: Segmentation fault [Current thread is 1 (Thread 0x7f8fefbac760 (LWP 5326))] Thread 5 (Thread 0x7f8fd4f8e700 (LWP 5402)): #0 0x00007f8feacb264c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f8fe19c41ac in ?? () from /usr/lib64/qt4/libQtWebKit.so.4 #2 0x00007f8feacaddbc in start_thread () from /lib64/libpthread.so.0 #3 0x00007f8fece59ded in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f8fd468d700 (LWP 5503)): #0 0x00007f8fece50fb3 in poll () from /lib64/libc.so.6 #1 0x00007f8fe573c554 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f8fe573c9bf in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f8fed7e4f96 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f8fed7b4cf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #5 0x00007f8fed7b4fe5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #6 0x00007f8fed6b2888 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f8fed6b4f67 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #8 0x00007f8feacaddbc in start_thread () from /lib64/libpthread.so.0 #9 0x00007f8fece59ded in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f8fd2fdb700 (LWP 11764)): #0 0x00007f8fece50fb3 in poll () from /lib64/libc.so.6 #1 0x00007f8fe573c554 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f8fe573c9bf in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f8fed7e4f96 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f8fed7b4cf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #5 0x00007f8fed7b4fe5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #6 0x00007f8fed6b2888 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f8fed793b20 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #8 0x00007f8fed6b4f67 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00007f8feacaddbc in start_thread () from /lib64/libpthread.so.0 #10 0x00007f8fece59ded in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f8f8ad47700 (LWP 1736)): #0 0x00007f8feacb29cb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f8fed6b5d7e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f8fed6a93ff in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f8fed6b4f67 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f8feacaddbc in start_thread () from /lib64/libpthread.so.0 #5 0x00007f8fece59ded in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f8fefbac760 (LWP 5326)): [KCrash Handler] #6 0x00007f8fef6083cb in Sonnet::Highlighter::eventFilter(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5 #7 0x00007f8fed7b5ee6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #8 0x00007f8fedcf2d13 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #9 0x00007f8fedcf7ffa in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #10 0x00007f8fef5ac0e8 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5 #11 0x00007f8fed7b5d4b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #12 0x00007f8fedd94e53 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #13 0x00007f8fedd95256 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #14 0x00007f8fedd716a2 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #15 0x00007f8fedd99322 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #16 0x00007f8fe573c01a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #17 0x00007f8fe573c828 in ?? () from /usr/lib64/libglib-2.0.so.0 #18 0x00007f8fe573c9bf in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #19 0x00007f8fed7e4f5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #20 0x00007f8fedd98fe6 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #21 0x00007f8fed7b4cf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #22 0x00007f8fed7b4fe5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #23 0x00007f8fed7b97db in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4 #24 0x00000000004033d2 in _start () Sometimes selecting a different identity in the composer prevents the crash. Btw, I use kde-4.8.1 and have not experienced such behaviour before in 4.8.0. Created attachment 69530 [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:
I've tried to write a new e-mail, and kmail crashes when trying to write subject line
-- Backtrace (Reduced):
#6 0x00000038896abfb3 in eventFilter (e=0x7fffacd28fa0, o=0x15b7130, this=0x1ea2b50) at /usr/src/debug/kdelibs-4.8.1/kdeui/sonnet/highlighter.cpp:355
#7 Sonnet::Highlighter::eventFilter (this=0x1ea2b50, o=0x15b7130, e=0x7fffacd28fa0) at /usr/src/debug/kdelibs-4.8.1/kdeui/sonnet/highlighter.cpp:337
#8 0x00000031687791d8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x15b7130, event=0x7fffacd28fa0) at kernel/qcoreapplication.cpp:986
#9 0x000000316b7c995f in notify_helper (e=0x7fffacd28fa0, receiver=0x15b7130, this=0x1027460) at kernel/qapplication.cpp:4546
#10 QApplicationPrivate::notify_helper (this=0x1027460, receiver=0x15b7130, e=0x7fffacd28fa0) at kernel/qapplication.cpp:4522
Created attachment 69577 [details]
valgrind log from the crash
$ valgrind --log-file=kmail.log kmail
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kmail2(1642): No language dictionaries for the language : "cs"
kmail2(1642): No language dictionaries for the language : "cs"
loaded the Generic plugin
kmail2(1642)/kdepimlibs (mailtransport): Could not access Outbox.
$ kmail2(1642): No language dictionaries for the language : "cs"
kmail2(1642): No language dictionaries for the language : "cs"
Enchant dict for "en_GB" 0x8006bd0
*** KMail got signal 11 (Exiting)
note that downgrading to kdepim 4.8.0 doesn't help the issue - the crash seems to come from kdelibs (I haven't tried to downgrade also kdelibs yet due to dependency hell) Created attachment 69579 [details]
better log (with --track-origins=yes)
this problem seems to go away if you set a generic language instead of country-specific variant within identity properties I had "Anglický (Spojené království)" and after setting this to "Český" the problem went away I can re-trigger this problem by selecting any other option than "Český" - i.e. all those in the "Language (country)" form for more examples see bug #295759 comment #2 and comment #3 The problem is caused by a return-statement in the Sonnet::Highlighter-constructor, leaving Sonnet::Highlighter::d->rehighlightRequest uninitialised. Downstream report: https://bugs.gentoo.org/show_bug.cgi?id=407709 attached patch fixed the crash. Git commit 20f73c2150bcd2220fe3604c2ec251b4026a3891 by Montel Laurent. Committed on 19/03/2012 at 12:30. Pushed by mlaurent into branch 'KDE/4.8'. Fix Bug 295615 - kmail crashes trying to edit subject/message body with some dictionary languages set in identity properties Patch from Matt Whitlock from https://bugs.gentoo.org/show_bug.cgi?id=407709 it's right timer can be uninitialize when we change language => it will crash FIXED-IN: 4.8.2 M +4 -3 kdeui/sonnet/highlighter.cpp http://commits.kde.org/kdelibs/20f73c2150bcd2220fe3604c2ec251b4026a3891 cool, thanks guys! Git commit 9d546d3110a4db3b51064d6a8c9e83b5d53976ed by Ivan Čukić, on behalf of Montel Laurent. Committed on 19/03/2012 at 12:30. Pushed by ivan into branch 'ivan/solid-fuse-access'. Fix Bug 295615 - kmail crashes trying to edit subject/message body with some dictionary languages set in identity properties Patch from Matt Whitlock from https://bugs.gentoo.org/show_bug.cgi?id=407709 it's right timer can be uninitialize when we change language => it will crash FIXED-IN: 4.8.2 M +4 -3 kdeui/sonnet/highlighter.cpp http://commits.kde.org/kdelibs/9d546d3110a4db3b51064d6a8c9e83b5d53976ed |