Bug 449716

Summary: Failed to open/save the pdf file
Product: [Applications] kmail2 Reporter: Artyom <bugs.kde.org>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: bugs.kde.org
Priority: NOR Keywords: drkonqi
Version: 5.19.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Artyom 2022-02-06 20:37:05 UTC
Application: kmail (5.19.2 (21.12.2))

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.16.4-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Open/save the pdf file attachment

Also, this email was encrypted, perhaps it could somehow affect (I have all emails encrypted)

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f3c80503844 in KMime::Content::parent (this=this@entry=0x559f1e4075a0) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:823
#5  0x00007f3c8050386b in KMime::Content::topLevel (this=this@entry=0x559f1def1f40) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:832
#6  0x00007f3c80504f06 in KMime::Content::index (this=this@entry=0x559f1def1f40) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:840
#7  0x00007f3c80b6bcf5 in MimeTreeParser::NodeHelper::persistentIndex (this=this@entry=0x559f193ea750, node=node@entry=0x559f1def1f40) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:704
#8  0x00007f3c80b6d0fb in MimeTreeParser::NodeHelper::tempFileUrlFromNode (this=this@entry=0x559f193ea750, node=node@entry=0x559f1def1f40) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:275
#9  0x00007f3c80b6d6ea in MimeTreeParser::NodeHelper::writeNodeToTempFile (this=0x559f193ea750, node=0x559f1def1f40) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:226
#10 0x00007f3c80ebacda in MessageViewer::ViewerPrivate::attachmentOpenWith (this=0x559f193577f0, node=<optimized out>, offer=...) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/messageviewer/src/viewer/viewer_p.cpp:648
#11 0x00007f3c80ebd424 in MessageViewer::ViewerPrivate::openAttachment (this=0x559f193577f0, node=<optimized out>, url=...) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/messageviewer/src/viewer/viewer_p.cpp:327
#12 0x00007f3c80ecbf49 in MessageViewer::AttachmentURLHandler::handleClick (this=<optimized out>, url=..., w=0x559f193577f0) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/messageviewer/src/viewer/urlhandlermanager.cpp:664
#13 0x00007f3c80ec4360 in MessageViewer::URLHandlerManager::handleClick (w=0x559f193577f0, url=..., this=<optimized out>) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/messageviewer/src/viewer/urlhandlermanager.cpp:284
#14 MessageViewer::ViewerPrivate::slotUrlOpen (this=0x559f193577f0, url=...) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/messageviewer/src/viewer/viewer_p.cpp:1898
#15 0x00007f3c81fcb49e in QObject::event (this=0x559f193577f0, e=0x559f1d5bd6a0) at kernel/qobject.cpp:1314
#16 0x00007f3c82b4da7f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x559f193577f0, e=0x559f1d5bd6a0) at kernel/qapplication.cpp:3632
#17 0x00007f3c81f9ee2a in QCoreApplication::notifyInternal2 (receiver=0x559f193577f0, event=0x559f1d5bd6a0) at kernel/qcoreapplication.cpp:1064
#18 0x00007f3c81fa1e67 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x559f18c325d0) at kernel/qcoreapplication.cpp:1821
#19 0x00007f3c81ff6ce3 in postEventSourceDispatch (s=0x559f18d253d0) at kernel/qeventdispatcher_glib.cpp:277
#20 0x00007f3c7bc88d5f in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#21 0x00007f3c7bc890e8 in ?? () from /lib64/libglib-2.0.so.0
#22 0x00007f3c7bc8919f in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#23 0x00007f3c81ff6364 in QEventDispatcherGlib::processEvents (this=0x559f18d29c30, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#24 0x00007f3c81f9d82b in QEventLoop::exec (this=this@entry=0x7ffdf0e610f0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#25 0x00007f3c81fa5b00 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#26 0x0000559f1789b43a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kmail-21.12.2-1.1.x86_64/src/main.cpp:173
[Inferior 1 (process 30851) detached]

The reporter indicates this bug may be a duplicate of or related to bug 431885.

Possible duplicates by query: bug 431885, bug 385284, bug 349379, bug 332774, bug 330560.

Reported using DrKonqi
Comment 1 Artyom 2022-02-12 07:38:31 UTC
Fixed after updating TW to 20220210 snapshot
Comment 2 Artyom 2022-02-21 19:56:47 UTC
Created attachment 147014 [details]
New crash information added by DrKonqi

kmail (5.19.2 (21.12.2)) using Qt 5.15.2

- What I was doing when the application crashed:
This problem is repeated again (open pdf file)

-- Backtrace (Reduced):
#4  0x00007f9089288844 in KMime::Content::parent (this=this@entry=0x55d5b2514030) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:823
#5  0x00007f908928885a in KMime::Content::topLevel (this=this@entry=0x55d5b2514030) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:829
#6  0x00007f9089289f06 in KMime::Content::index (this=this@entry=0x55d5b2514030) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:840
#7  0x00007f90898f0cf5 in MimeTreeParser::NodeHelper::persistentIndex (this=this@entry=0x55d5ac9d3020, node=node@entry=0x55d5b2514030) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:704
#8  0x00007f90898f20fb in MimeTreeParser::NodeHelper::tempFileUrlFromNode (this=this@entry=0x55d5ac9d3020, node=node@entry=0x55d5b2514030) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:275
Comment 3 Artyom 2022-02-25 19:11:14 UTC
Created attachment 147119 [details]
New crash information added by DrKonqi

kmail (5.19.2 (21.12.2)) using Qt 5.15.2

- What I was doing when the application crashed:
open any email with attachment, open it or save

-- Backtrace (Reduced):
#4  0x00007f5bd2caa844 in KMime::Content::parent (this=this@entry=0x559c7245f260) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:823
#5  0x00007f5bd2caa85a in KMime::Content::topLevel (this=this@entry=0x559c7245f260) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:829
#6  0x00007f5bd2cabf06 in KMime::Content::index (this=this@entry=0x559c7245f260) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:840
#7  0x00007f5bd3312cf5 in MimeTreeParser::NodeHelper::persistentIndex (this=this@entry=0x559c6c8e6ef0, node=node@entry=0x559c7245f260) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:704
#8  0x00007f5bd33140fb in MimeTreeParser::NodeHelper::tempFileUrlFromNode (this=this@entry=0x559c6c8e6ef0, node=node@entry=0x559c7245f260) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:275
Comment 4 Artyom 2022-03-02 18:36:32 UTC
Created attachment 147248 [details]
New crash information added by DrKonqi

kmail (5.19.2 (21.12.2)) using Qt 5.15.2

- What I was doing when the application crashed:
open any attachment in email (such as pdf)

-- Backtrace (Reduced):
#4  0x00007f10a3200844 in KMime::Content::parent (this=this@entry=0x55601b3705b0) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:823
#5  0x00007f10a320085a in KMime::Content::topLevel (this=this@entry=0x55601b3705b0) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:829
#6  0x00007f10a3201f06 in KMime::Content::index (this=this@entry=0x55601b3705b0) at /usr/src/debug/kmime-21.12.2-1.1.x86_64/src/kmime_content.cpp:840
#7  0x00007f10a3868cf5 in MimeTreeParser::NodeHelper::persistentIndex (this=this@entry=0x5560156de9b0, node=node@entry=0x55601b3705b0) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:704
#8  0x00007f10a386a0fb in MimeTreeParser::NodeHelper::tempFileUrlFromNode (this=this@entry=0x5560156de9b0, node=node@entry=0x55601b3705b0) at /usr/src/debug/messagelib-21.12.2-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:275
Comment 5 Artyom 2022-03-05 16:18:22 UTC
Created attachment 147294 [details]
New crash information added by DrKonqi

kmail (5.19.3 (21.12.3)) using Qt 5.15.2

- What I was doing when the application crashed:
open/save any attachment in email (such as pdf)

-- Backtrace (Reduced):
#4  0x00007faa56693844 in KMime::Content::parent (this=this@entry=0x55dd12cff9f0) at /usr/src/debug/kmime-21.12.3-1.1.x86_64/src/kmime_content.cpp:823
#5  0x00007faa5669385a in KMime::Content::topLevel (this=this@entry=0x55dd12cff9f0) at /usr/src/debug/kmime-21.12.3-1.1.x86_64/src/kmime_content.cpp:829
#6  0x00007faa56694f06 in KMime::Content::index (this=this@entry=0x55dd12cff9f0) at /usr/src/debug/kmime-21.12.3-1.1.x86_64/src/kmime_content.cpp:840
#7  0x00007faa56cfccf5 in MimeTreeParser::NodeHelper::persistentIndex (this=this@entry=0x55dd0ecd9b00, node=node@entry=0x55dd12cff9f0) at /usr/src/debug/messagelib-21.12.3-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:704
#8  0x00007faa56cfe0fb in MimeTreeParser::NodeHelper::tempFileUrlFromNode (this=this@entry=0x55dd0ecd9b00, node=node@entry=0x55dd12cff9f0) at /usr/src/debug/messagelib-21.12.3-1.1.x86_64/mimetreeparser/src/nodehelper.cpp:275