Bug 446981

Summary: Kmail crash everytime on Arch Linux
Product: [Applications] kmail2 Reporter: Alpha <kgbook.sz>
Component: commands and actionsAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: critical    
Priority: NOR    
Version First Reported In: 5.19.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alpha 2021-12-14 14:46:57 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

System info:
```
$ uname -a
Linux arch 5.15.7-arch1-1 #1 SMP PREEMPT Wed, 08 Dec 2021 14:33:16 +0000 x86_64 GNU/Linux
```

Kmail crash log:
```
 Icon theme "oxygen" not found.
 Error loading text-to-speech plug-in "speechd"
 WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
 QGLXContext: Failed to create dummy context
 Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
 Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0,      swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
 *** KMail got signal 6 (Exiting)
 *** Dead letters dumped.
 19 -- exe=/usr/bin/kmail
 13 -- platform=xcb
 11 -- display=:0
 14 -- appname=kmail
 17 -- apppath=/usr/bin
 9 -- signal=6
 10 -- pid=49853
 28 -- appversion=5.19.0 (21.12.0)
 18 -- programname=KMail
 31 -- bugaddress=submit@bugs.kde.org
 12 -- startupid=0
 KCrash: crashing... crashRecursionCounter = 2
 KCrash: Application Name = kmail path = /usr/bin pid = 49853
 KCrash: Arguments: /usr/bin/kmail
 [warn] epoll_wait: Bad file descriptor
```

see kmail-crash.log for detailed.

STEPS TO REPRODUCE
1.  Did nothing but upgrade system with the command below, then lunch the Kmail
```
sudo pacman -Syu
```

OBSERVED RESULT
kmail crash everytime.

EXPECTED RESULT
kmail lunch successfully.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.15.7-arch1-1 x86_64
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.23.4 [KCrashBackend]

-- Information about the crash:
just upgrade the system or package with the command `sudo pacman -Syu`.

The crash can be reproduced every time.

-- Backtrace:
```
Application: KMail (kmail), signal: Aborted

[KCrash Handler]
#4  0x00007f8f58e78d22 in raise () at /usr/lib/libc.so.6
#5  0x00007f8f58e62862 in abort () at /usr/lib/libc.so.6
#6  0x00007f8f592b0910 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f8f522693c5 in  () at /usr/lib/libQt5QuickWidgets.so.5
#8  0x00007f8f52269740 in  () at /usr/lib/libQt5QuickWidgets.so.5
#9  0x00007f8f5226b98d in QQuickWidget::resizeEvent(QResizeEvent*) () at /usr/lib/libQt5QuickWidgets.so.5
#10 0x00007f8f526b32aa in  () at /usr/lib/libQt5WebEngineWidgets.so.5
#11 0x00007f8f59ff2b6e in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f8f59faed62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f8f594d941a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f8f59fe9c18 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f8f59fee864 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f8f59fee7fa in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f8f59fee7fa in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#20 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#23 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#26 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#27 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#30 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#31 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#32 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#35 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#37 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#38 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#39 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#40 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#42 0x00007f8f59fee7db in QWidgetPrivate::showChildren(bool) () at /usr/lib/libQt5Widgets.so.5
#43 0x00007f8f59fee882 in QWidgetPrivate::show_helper() () at /usr/lib/libQt5Widgets.so.5
#44 0x00007f8f59ff1bbd in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#45 0x00007f8f624d8e4a in KMMainWin::showAndActivateWindow() () at /usr/lib/libkmailprivate.so.5
#46 0x00007f8f624eaef9 in KMKernel::openReader(bool, bool) () at /usr/lib/libkmailprivate.so.5
#47 0x00007f8f624f0328 in KMKernel::action(bool, bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, QUrl const&, QList<QUrl> const&, QStringList const&, QString const&, QString const&, QString const&) () at /usr/lib/libkmailprivate.so.5
#48 0x00007f8f624f1cb6 in KMKernel::handleCommandLine(bool, QStringList const&, QString const&) () at /usr/lib/libkmailprivate.so.5
#49 0x0000563e346e4559 in  ()
#50 0x0000563e346e416a in  ()
#51 0x00007f8f58e63b25 in __libc_start_main () at /usr/lib/libc.so.6
#52 0x0000563e346e440e in  ()
[Inferior 1 (process 50770) detached]
```

ADDITIONAL INFORMATION