Bug 372142 - Kmail: Forward inline messages causes crash
Summary: Kmail: Forward inline messages causes crash
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.2.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-06 14:57 UTC by christian.bay91
Modified: 2022-12-10 05:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase mail for inline forward bug (463.27 KB, application/mbox)
2016-11-07 13:21 UTC, christian.bay91
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christian.bay91 2016-11-06 14:57:46 UTC
Application: kontact (5.2.3)

Qt Version: 5.6.1
Frameworks Version: 5.27.0
Operating System: Linux 4.7.0-1-amd64 x86_64
Distribution: Debian GNU/Linux testing (stretch)

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.
Happens when I try to inline-forwarding a specific message with an attachement. I can only reproduce it with that message. I really dont know what is special about it. Debugged it with kmail debug symbols in gdb.

-- Backtrace:
Thread 1 "kmail" received signal SIGSEGV, Segmentation fault.
0x00007ffff062667d in KMime::Content::head() const () from /usr/lib/x86_64-linux-gnu/libKF5Mime.so.5

Thread 22 (Thread 0x7fff41b5d700 (LWP 8422)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 21 (Thread 0x7fff429d0700 (LWP 8419)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 20 (Thread 0x7fff433e0700 (LWP 8416)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 19 (Thread 0x7fff43fff700 (LWP 8406)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 18 (Thread 0x7fff5cfb5700 (LWP 8405)):
#0  0x00007fffec1c918f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fffe701e933 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fffe7346941 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 17 (Thread 0x7fff5d7b6700 (LWP 8404)):
#0  0x00007fffec1c918f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fffe701e933 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fffe7346941 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 16 (Thread 0x7fff5dfb7700 (LWP 8403)):
#0  0x00007fffec1c918f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fffe701e933 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fffe7346941 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 15 (Thread 0x7fff5e7b8700 (LWP 8402)):
#0  0x00007fffec1c9538 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fffe7346eaa in WTF::ThreadCondition::timedWait(WTF::Mutex&, double) ()
   from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fffe701d75d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fffe7346941 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#4  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 14 (Thread 0x7fff5ffff700 (LWP 8400)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 13 (Thread 0x7fff64982700 (LWP 8398)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 12 (Thread 0x7fff65183700 (LWP 8396)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 11 (Thread 0x7fffc0c7e700 (LWP 8395)):
#0  0x00007fffec1c918f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fffe7315c2b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007fffe7315c69 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 10 (Thread 0x7fffc147f700 (LWP 8393)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 9 (Thread 0x7fffc1c80700 (LWP 8391)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 8 (Thread 0x7fffc2ffd700 (LWP 8389)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 7 (Thread 0x7fffc37fe700 (LWP 8387)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 6 (Thread 0x7fffc3fff700 (LWP 8385)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 5 (Thread 0x7fffd0e9d700 (LWP 8383)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7fffd1718700 (LWP 8380)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7fffd2929700 (LWP 8379)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffebc9f9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff5e24e53 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff7f54525 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fffd3ea2700 (LWP 8378)):
#0  0x00007ffff552556d in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fffe9095150 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffe9096ee9 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffd5bc6a79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007ffff5e29d78 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fffec1c3464 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007ffff552e9df in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fffd5fcf940 (LWP 8374)):
#0  0x00007ffff062667d in KMime::Content::head() const () from /usr/lib/x86_64-linux-gnu/libKF5Mime.so.5
#1  0x00007ffff0629985 in KMime::Content::encodedContent(bool) ()
   from /usr/lib/x86_64-linux-gnu/libKF5Mime.so.5
#2  0x00007ffff06295a4 in KMime::Content::encodedBody() () from /usr/lib/x86_64-linux-gnu/libKF5Mime.so.5
#3  0x00007ffff2f25b92 in TemplateParser::TemplateParser::addProcessedBodyToMessage(QString const&, QString const&) const () from /usr/lib/x86_64-linux-gnu/libKF5TemplateParser.so.5
#4  0x00007ffff2f28161 in TemplateParser::TemplateParser::processWithTemplate(QString const&) ()
   from /usr/lib/x86_64-linux-gnu/libKF5TemplateParser.so.5
#5  0x00007ffff2f22c34 in TemplateParser::TemplateParser::process(QSharedPointer<KMime::Message> const&, Akonadi::Collection const&) () from /usr/lib/x86_64-linux-gnu/libKF5TemplateParser.so.5
#6  0x00007ffff364edff in MessageComposer::MessageFactory::createForward() ()
   from /usr/lib/x86_64-linux-gnu/libKF5MessageComposer.so.5
#7  0x00007ffff77f113e in KMForwardCommand::createComposer (this=this@entry=0x555556775cc0, item=...)
    at ./kmail/kmcommands.cpp:933
#8  0x00007ffff77f18ad in KMForwardCommand::execute (this=0x555556775cc0) at ./kmail/kmcommands.cpp:995
#9  0x00007ffff77e9d21 in KMCommand::slotPostTransfer (this=0x555556775cc0, result=KMCommand::OK)
    at ./kmail/kmcommands.cpp:291
#10 0x00007ffff602ec7c in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff78ff2be in KMCommand::messagesTransfered (this=this@entry=0x555556775cc0, 
    _t1=<optimized out>, _t1@entry=KMCommand::OK) at ./obj-x86_64-linux-gnu/kmail/moc_kmcommands.cpp:188
#12 0x00007ffff77ebfa7 in KMCommand::slotJobFinished (this=0x555556775cc0) at ./kmail/kmcommands.cpp:400
#13 0x00007ffff602ec7c in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff6a6fe22 in KJob::result(KJob*, KJob::QPrivateSignal) ()
   from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#15 0x00007ffff6a71761 in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#16 0x00007fffefdbb269 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiCore.so.5
#17 0x00007ffff602f729 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff6e24bec in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff6e2a08f in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff6001450 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff60033cc in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffff60570f3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fffebc9f7d7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fffebc9fa40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fffebc9faec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff60574ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007ffff5fff19a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff600799c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00005555555578af in main (argc=<optimized out>, argv=<optimized out>) at ./kmail/main.cpp:159
Comment 1 Laurent Montel 2016-11-07 05:58:44 UTC
Is it possible to save as mbox a mail which crash ?
I need a test case for it
Comment 2 christian.bay91 2016-11-07 13:21:30 UTC
Created attachment 102098 [details]
Testcase mail for inline forward bug

Inline-forwarding the attached mail causes crash of kmail.
Comment 3 christian.bay91 2016-11-07 13:24:15 UTC
(In reply to Laurent Montel from comment #1)
> Is it possible to save as mbox a mail which crash ?
> I need a test case for it

Hi.
I loaded it up for you.
The crash still happens when I reimport it and try to inline-forward this mail.
Comment 4 Laurent Montel 2016-11-09 07:08:27 UTC
I confirm crash
Comment 5 Josep 2017-11-02 08:02:16 UTC
Hi,

I've found the same problem with another message: I can forward the message as an attachment, but every time I try to inline it, kmail crashes immediately (not even the new mail window appears). The kmail version is 5.2.3, KDE Frameworks 5.28.0, Qt 5.7.1 (in fact, it's an unmodified Debian Stretch kmail version). The message is written in HTML, with two attachments, a zip file and a png one. Another message from the same source and with just the png attachment does not have this problem. 

I also have downloaded the original sender message and tried to forward it, and that one crashes my version of kmail too.
Comment 6 Justin Zobel 2022-11-10 08:51:50 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-11-25 05:16:31 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-10 05:13:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!