Bug 481228 - Crashes when trying to edit a failed mail from Outbox
Summary: Crashes when trying to edit a failed mail from Outbox
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.24.4
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-11 14:35 UTC by Mehrad Mahmoudian
Modified: 2024-02-11 14:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mehrad Mahmoudian 2024-02-11 14:35:48 UTC
**Disclaimer**: I tried to follow KDE guideline ( https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports ) to provide backtrace, but my lack of familiarity with gdb and poor KDE documentation lead to waste of my time and getting stuck at `(gdb)` after running `gdb kmail ~/core.core`. No GUI window openned, and typing `help` told showed some commands such as "status", but none of them were valid commands and they resaulted in gdb error! Well, I tried! If there is anything I can provide, please give me a step-by-step guide and I will follow and report back. Until then, this bug report is to  the best of my efforts.

SUMMARY

Opening the signed (not encrypted, just signed) from the outbox causes crash.

I was sending an email with a ZIP attachment which contained a js file. KMail failed to send the email and put it inside Outbox. This is the error I got: "Failed to transport message. Server error: Rejected: forbidden file type in zip attachment: test/static/script.js"

I opened Outbox, right-clicked on the email and pressed "Edit as new" and it crashed. removing the singing solves the issue. It is possible that its is also due to having a Zip file.

STEPS TO REPRODUCE
1. create an email that will fail (add a javascript file to a zip file and send to gmail)
2. when the sending fails, it goes to outbox. open the outbox
3. right-click and select "Edit as new"
4. observe the crash

OBSERVED RESULT
Crash.


EXPECTED RESULT
Not to crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Manjaro KDE Plasma Wayland
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12
Kernel Version: 6.6.10-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7440HQ CPU @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Manufacturer: LENOVO

ADDITIONAL INFORMATION

❯  kmail
org.kde.pim.kmail: setFcc: collection invalid  ""
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x558a3c27c750) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x558a3b93e660) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
gpg.qgpgme: found no group for entry verbose of component "tpm2daemon"
gpg.qgpgme: found no group for entry quiet of component "tpm2daemon"
gpg.qgpgme: found no group for entry debug-level of component "tpm2daemon"
gpg.qgpgme: found no group for entry log-file of component "tpm2daemon"
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x558a3c27c750) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x558a3b1c92a0) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x558a3c27c750) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x558a3b1c92a0) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x558a3c27c750) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x558a3ca2dd80) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
/tmp/messageviewer_bDNqOv.index.1.2 was not removed .
/tmp/messageviewer_eueWeE.index.1.2 was not removed .
/tmp/messageviewer_YpRDbE.index.2 was not removed .
/tmp/messageviewer_bDNqOv.index.1.2 was removed .
/tmp/messageviewer_eueWeE.index.1.2 was removed .
/tmp/messageviewer_YpRDbE.index.2 was removed .
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = /usr/bin pid = 119850
KCrash: Arguments: /usr/bin/kmail
[1]    119850 segmentation fault (core dumped)  kmail

Error code 139