Bug 444421

Summary: Kontact crashes on attachment save
Product: [Applications] kontact Reporter: Mykola Krachkovsky <w01dnick>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mykola Krachkovsky 2021-10-26 10:22:03 UTC
Application: kontact (5.18.2 (21.08.2))

Qt Version: 5.15.2
Frameworks Version: 5.87.0
Operating System: Linux 5.14.11-2-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.0 [KCrashBackend]

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

1. Opened first email with attachment.
2. Pressed on attachment and then "save" button, approved in save window. Everything was fine here.
3. Opened second email with attachment (attachment has the same name, though it differs, maybe it would be important, idk).
4. Pressed on atachment.
5. Pressed on "save" and got a crash.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Content of s_kcrashErrorMessage: {_M_t = {<std::__uniq_ptr_impl<char, std::default_delete<char []> >> = {_M_t = {<std::_Tuple_impl<0, char*, std::default_delete<char []> >> = {<std::_Tuple_impl<1, std::default_delete<char []> >> = {<std::_Head_base<1, std::default_delete<char []>, true>> = {_M_head_impl = {<No data fields>}}, <No data fields>}, <std::_Head_base<0, char*, false>> = {_M_head_impl = <optimized out>}, <No data fields>}, <No data fields>}}, <No data fields>}}
[KCrash Handler]
#6  0x00007fba706b1639 in KMime::Content::headerByType (this=this@entry=0x560c21075310, type=0x7fba706ca020 "Content-Disposition") at /usr/src/debug/kmime-21.08.2-1.1.x86_64/src/kmime_content.cpp:615
#7  0x00007fba706b3919 in KMime::Content::header<KMime::Headers::ContentDisposition> (create=true, this=0x560c21075310) at /usr/src/debug/kmime-21.08.2-1.1.x86_64/src/kmime_content.h:681
#8  KMime::Content::contentDisposition (this=this@entry=0x560c21075310, create=create@entry=true) at /usr/src/debug/kmime-21.08.2-1.1.x86_64/src/kmime_content.cpp:872
#9  0x00007fba42408c1f in MimeTreeParser::NodeHelper::fileName (node=0x560c21075310) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:620
#10 0x00007fba425f9257 in MessageViewer::Util::saveContents (parent=0x560c203c0e80, contents=..., urlList=...) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/messageviewer/src/utils/messageviewerutil.cpp:226
#11 0x00007fba425c2445 in MessageViewer::ViewerPrivate::openAttachment (this=0x560c2027b770, node=<optimized out>, url=...) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/messageviewer/src/viewer/viewer_p.cpp:322
#12 0x00007fba425ceb59 in MessageViewer::AttachmentURLHandler::handleClick (this=<optimized out>, url=..., w=0x560c2027b770) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/messageviewer/src/viewer/urlhandlermanager.cpp:660
#13 0x00007fba425c9870 in MessageViewer::URLHandlerManager::handleClick (w=0x560c2027b770, url=..., this=<optimized out>) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/messageviewer/src/viewer/urlhandlermanager.cpp:284
#14 MessageViewer::ViewerPrivate::slotUrlOpen (this=0x560c2027b770, url=...) at /usr/src/debug/messagelib-21.08.2-1.1.x86_64/messageviewer/src/viewer/viewer_p.cpp:1901
#15 0x00007fbac6e25fbe in QObject::event (this=0x560c2027b770, e=0x560c23e13030) at kernel/qobject.cpp:1314
#16 0x00007fbac79f7a7f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x560c2027b770, e=0x560c23e13030) at kernel/qapplication.cpp:3632
#17 0x00007fbac6df99ca in QCoreApplication::notifyInternal2 (receiver=0x560c2027b770, event=0x560c23e13030) at kernel/qcoreapplication.cpp:1064
#18 0x00007fbac6dfca17 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x560c1fc22920) at kernel/qcoreapplication.cpp:1821
#19 0x00007fbac6e51823 in postEventSourceDispatch (s=s@entry=0x560c1fd8b270) at kernel/qeventdispatcher_glib.cpp:277
#20 0x00007fbabd63cd5f in g_main_dispatch (context=0x7fbaac005000) at ../glib/gmain.c:3381
#21 g_main_context_dispatch (context=0x7fbaac005000) at ../glib/gmain.c:4099
#22 0x00007fbabd63d0e8 in g_main_context_iterate (context=context@entry=0x7fbaac005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#23 0x00007fbabd63d19f in g_main_context_iteration (context=0x7fbaac005000, may_block=1) at ../glib/gmain.c:4240
#24 0x00007fbac6e50ea4 in QEventDispatcherGlib::processEvents (this=0x560c1fd87110, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#25 0x00007fbac6df83cb in QEventLoop::exec (this=this@entry=0x7fff689d8710, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#26 0x00007fbac6e006b0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#27 0x00007fbac729919c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#28 0x00007fbac79f79f5 in QApplication::exec () at kernel/qapplication.cpp:2824
#29 0x0000560c1e189f52 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kontact-21.08.2-1.1.x86_64/src/main.cpp:216
[Inferior 1 (process 4570) detached]

Possible duplicates by query: bug 426432, bug 421501, bug 393391, bug 383217, bug 362726.

Reported using DrKonqi
Comment 1 Mykola Krachkovsky 2021-10-26 10:26:32 UTC
Tried to reproduce it again, and everything was fine, no crash.