Bug 295703 - Keyboard events in composer window's body text field crash KMail
Summary: Keyboard events in composer window's body text field crash KMail
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 18:49 UTC by Matt Whitlock
Modified: 2012-03-20 11:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2012-03-10 18:49:42 UTC
Application: kmail (4.8.0)
KDE Platform Version: 4.8.1 (4.8.1) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.2.1-gentoo-r2 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
1. Open a new message composer window.
2. Fill in a recipient's address.
3. Press the Tab key (repeatedly) to move the input focus into the body field.
4. KMail crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f26bee347a0 (LWP 5299))]

Thread 3 (Thread 0x7f26a1f00700 (LWP 5312)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f26b0d60034 in scavengerThread (this=0x7f26b1747100) at wtf/FastMalloc.cpp:2495
#2  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f26b1747100) at wtf/FastMalloc.cpp:1618
#3  0x00007f26b9e82d0c in start_thread (arg=0x7f26a1f00700) at pthread_create.c:301
#4  0x00007f26bc08fdbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f26a15e7700 (LWP 5313)):
#0  0x00007f26bc086ee3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f26b44dfb4d in g_main_context_poll (n_fds=1, fds=0x7f269c002030, timeout=-1, context=0x2d25ef0, priority=<optimized out>) at gmain.c:3402
#2  g_main_context_iterate (context=0x2d25ef0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3084
#3  0x00007f26b44e0021 in g_main_context_iteration (context=0x2d25ef0, may_block=1) at gmain.c:3152
#4  0x00007f26bca07956 in QEventDispatcherGlib::processEvents (this=0x2d25a80, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f26bc9d77e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f26bc9d7a95 in QEventLoop::exec (this=0x7f26a15e6de0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f26bc8d50d8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f26bc8d774b in QThreadPrivate::start (arg=0x2d25700) at thread/qthread_unix.cpp:298
#9  0x00007f26b9e82d0c in start_thread (arg=0x7f26a15e7700) at pthread_create.c:301
#10 0x00007f26bc08fdbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f26bee347a0 (LWP 5299)):
[KCrash Handler]
#6  0x00007f26be86da53 in Sonnet::Highlighter::eventFilter (this=0x2c7f3b0, o=0x2741120, e=0x7fff0dde0550) at /var/tmp/portage/kde-base/kdelibs-4.8.1/work/kdelibs-4.8.1/kdeui/sonnet/highlighter.cpp:355
#7  0x00007f26bc9d8936 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x2741120, event=0x7fff0dde0550) at kernel/qcoreapplication.cpp:986
#8  0x00007f26bcf091f1 in QApplicationPrivate::notify_helper (this=0x23275b0, receiver=0x2741120, e=0x7fff0dde0550) at kernel/qapplication.cpp:4546
#9  0x00007f26bcf0e697 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff0dde0550) at kernel/qapplication.cpp:3991
#10 0x00007f26be7ff716 in KApplication::notify (this=0x7fff0dde1550, receiver=0x2741120, event=0x7fff0dde0550) at /var/tmp/portage/kde-base/kdelibs-4.8.1/work/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#11 0x00007f26bc9d87bb in QCoreApplication::notifyInternal (this=0x7fff0dde1550, receiver=0x2741120, event=0x7fff0dde0550) at kernel/qcoreapplication.cpp:876
#12 0x00007f26bcfaa4ca in QKeyMapper::sendKeyEvent (keyWidget=0x2741120, grab=<optimized out>, type=QEvent::KeyPress, code=16777217, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=23, nativeVirtualKey=65289, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#13 0x00007f26bcfaa91f in QKeyMapperPrivate::translateKeyEvent (this=<optimized out>, keyWidget=0x2741120, event=<optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1836
#14 0x00007f26bcf86e43 in QApplication::x11ProcessEvent (this=0x7fff0dde1550, event=0x7fff0dde1100) at kernel/qapplication_x11.cpp:3513
#15 0x00007f26bcfae972 in x11EventSourceDispatch (s=0x232ae80, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#16 0x00007f26b44df4f5 in g_main_dispatch (context=0x2329c00) at gmain.c:2441
#17 g_main_context_dispatch (context=0x2329c00) at gmain.c:3011
#18 0x00007f26b44dfe38 in g_main_context_iterate (context=0x2329c00, block=1, dispatch=1, self=<optimized out>) at gmain.c:3089
#19 0x00007f26b44e0021 in g_main_context_iteration (context=0x2329c00, may_block=1) at gmain.c:3152
#20 0x00007f26bca078ff in QEventDispatcherGlib::processEvents (this=0x22cbad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#21 0x00007f26bcfae61e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#22 0x00007f26bc9d77e2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007f26bc9d7a95 in QEventLoop::exec (this=0x7fff0dde1420, flags=...) at kernel/qeventloop.cpp:204
#24 0x00007f26bc9dc21b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#25 0x00000000004033ae in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.8.1/work/kmail-4.8.1/kmail/main.cpp:145

Possible duplicates by query: bug 295615.

Reported using DrKonqi
Comment 1 Matt Whitlock 2012-03-10 18:56:35 UTC
This bug actually prevents any text from being entered into the body of a composer.

Even these steps are enough to crash KMail:

1. Open a new composer window.
2. Click in the body field to set the focus.
3. Press the Shift key.
4. KMail crashes.

Oddly, my package manager (Gentoo Portage) says KMail 4.8.1 is installed, but the About dialog in KMail itself says "Version 4.8.0, Using KDE Development Platform 4.8.1 (4.8.1)."
Comment 2 Franz Trischberger 2012-03-11 10:02:09 UTC
open kdepim--4.8.1/CMakeLists.txt
line 127:
set(KDEPIM_VERSION "4.8.0")
KDEPIM_VERSION is used for kmail-version, too (as far as i can see).
Comment 3 Laurent Montel 2012-03-20 11:20:26 UTC
Fixed in kdelibs 4.8.2