Bug 416086

Summary: kmail crashes when opening message (small 7bit empty html table, editor viewable)
Product: [Applications] kmail2 Reporter: Axel Hinrichs <kde>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: faure, montel
Priority: NOR    
Version: 5.13.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: example mime message (7bit, so editor readable)
crashlog (unfortunately without debug information)
Crashlog with Qt debuging (qt5-base-debug + messagelib)
Crashlog with Qt debuging (qt5-base-debug, qt5-webengine-debug, messagelib)

Description Axel Hinrichs 2020-01-10 12:46:52 UTC
Created attachment 125014 [details]
example mime message (7bit, so editor readable)

SUMMARY

kmail crashes every time I try to open this message. I stripped down the real message (daily report) to this minimal empty html table with one css style.

STEPS TO REPRODUCE
1. kmail --view attached-mime.eml

OBSERVED RESULT

Crash

EXPECTED RESULT

Should show the message window (empty html table)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.4.10-arch1-1
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0

Appeared (I think) with kmail 5.13.0 and still exists in kmail 5.13.1

ADDITIONAL INFORMATION

I tried with all modules switched off in kmail but it still crashes. Host uses german localization. Original message is a daily report with html and images as mime multipart. I tried the minimal crash triggering html as mime multipart and as plain html text. Both crashes kmail here.

If I can provide more helpfull information, please let me know. But I would be very thankful if someone at least could try to open the mime message and reports whether this is reproducible or just local here.

Thanks in advance

For convenience, here is the full content payload of the mime file:
-------------------
<html>
<head>
<meta http-equiv="Content-Type"
  content="text/html; charset=utf-8">
  <style type="text/css">
    tr, td {
      border-width: 0px;
    }
  </style>
</head>
<body>        
  <table>
    <tr>
      <td></td>
    </tr>
  </table>
</body>
</html>
-------------------

If you split the css style like this (order does not matter):
-------------------
    tr {
      border-width: 0px;
    }
    td {
      border-width: 0px;
    }
-------------------

Or remove the td tag in the table it works.
Comment 1 Axel Hinrichs 2020-01-10 12:54:06 UTC
Created attachment 125015 [details]
crashlog (unfortunately without debug information)
Comment 2 Laurent Montel 2020-01-10 13:37:32 UTC
Qt version ?
It doesn't crash here.
Comment 3 Axel Hinrichs 2020-01-10 14:05:25 UTC
QT 5.14.0

Ok, I will continue to inspect my environment here and report back.
Comment 4 Axel Hinrichs 2020-01-10 14:42:51 UTC
Created attachment 125016 [details]
Crashlog with Qt debuging (qt5-base-debug + messagelib)
Comment 5 Axel Hinrichs 2020-01-10 14:48:01 UTC
Created attachment 125017 [details]
Crashlog with Qt debuging (qt5-base-debug, qt5-webengine-debug, messagelib)
Comment 6 David Faure 2020-01-10 16:39:16 UTC
I fixed this in https://bugreports.qt.io/browse/QTBUG-80496
Comment 7 Axel Hinrichs 2020-01-10 18:08:55 UTC
Thanks, yes that was it.