Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.12, 6.2.7, 6.4.1, 6.4, 6.5.0 Beta1
-
6.3.1
-
-
ffecc122d7 (qt/qtdeclarative/dev) ffecc122d7 (qt/tqtc-qtdeclarative/dev) ee9a7b1bee (qt/qtdeclarative/6.4) ee9a7b1bee (qt/tqtc-qtdeclarative/6.4) 38e9472d91 (qt/tqtc-qtdeclarative/6.2) 89fc2b5730 (qt/tqtc-qtdeclarative/5.15)
Description
After upgrading to Qt 6, we noticed that our Qt Quick app immediately crashes on our Android 6 devices. Even a hello world app crashes.
The device runs Linux kernel 3.4.48.
We traced down the crash to OSAllocatorPosix.cpp where the code expects madvise() to succeed with provided memory, but it fails with EBADF. Given how unimportant these madvise() calls are, I find it excessive to crash the whole app.
EBADF is to be expected according to Linux man pages:
EBADF The map exists, but the area maps something that isn't a file.
Our patch fixing the issue can be seen here.
Attachments
Issue Links
- is duplicated by
-
QTBUG-106864 Reg-5.15.9->5.15.10: Android crash on startup on armv7 (32bit) devices
- Closed
- relates to
-
QTBUG-107774 madvise() terminates application due to EBADF code
- Closed