Details
Description
I've build Qt5.6.0 Android for armv5 with the following configuration
configure -v -commercial -no-icu -release -confirm-license -sysconfdir /etc/xdg -xplatform android-g++ -opengl es2 -android-arch armeabi \ -skip qt3d -skip qtwebengine -skip qtactiveqt -skip qtwayland -skip qtenginio \ -skip qtx11extras -skip qtwinextras -skip qtmacextras -no-compile-examples -nomake tests -nomake examples \ -skip qttranslations -skip qtserialport \ -openssl -I /opt/android/openssl/include \ -android-ndk /opt/android/android-ndk-r11b -android-sdk /opt/android/android-sdk-linux -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -no-warnings-are-errors
This builds without problems but any qml app (even the hello world app created by QtCreator->New Project) crashes on startup on the device (Android 2.3.6)
logcat:
428fa74 4486a54e 4438fac4 44864870 00000000 I/DEBUG ( 5194): I/DEBUG ( 5194): stack: I/DEBUG ( 5194): be87afe0 00000015 I/DEBUG ( 5194): be87afe4 afd188af /system/lib/libc.so I/DEBUG ( 5194): be87afe8 afd42794 I/DEBUG ( 5194): be87afec afd42740 I/DEBUG ( 5194): be87aff0 00000000 I/DEBUG ( 5194): be87aff4 afd1981d /system/lib/libc.so I/DEBUG ( 5194): be87aff8 00000000 I/DEBUG ( 5194): be87affc afd18881 /system/lib/libc.so I/DEBUG ( 5194): be87b000 00000001 I/DEBUG ( 5194): be87b004 00000000 I/DEBUG ( 5194): be87b008 afd466e8 I/DEBUG ( 5194): be87b00c 00000004 I/DEBUG ( 5194): be87b010 00000000 I/DEBUG ( 5194): be87b014 afd18b1f /system/lib/libc.so I/DEBUG ( 5194): be87b018 df002777 I/DEBUG ( 5194): be87b01c e3a070ad I/DEBUG ( 5194): #00 be87b020 813259a4 /mnt/asec/org.qtproject.example.testArmv5-1/lib/libQt5Core.so I/DEBUG ( 5194): be87b024 00000000 I/DEBUG ( 5194): be87b028 00000002 I/DEBUG ( 5194): be87b02c 00000004 I/DEBUG ( 5194): be87b030 00000000 I/DEBUG ( 5194): be87b034 fffffbdf I/DEBUG ( 5194): be87b038 0000cec8 I/DEBUG ( 5194): be87b03c 814a45d8 I/DEBUG ( 5194): be87b040 00000002 I/DEBUG ( 5194): be87b044 812ee728 /mnt/asec/org.qtproject.example.testArmv5-1/lib/libQt5Core.so I/DEBUG ( 5194): #01 be87b048 814a45d8 I/DEBUG ( 5194): be87b04c 812ee728 /mnt/asec/org.qtproject.example.testArmv5-1/lib/libQt5Core.so I/DEBUG ( 5194): be87b050 00000000 I/DEBUG ( 5194): be87b054 656e2041 I/DEBUG ( 5194): be87b058 20726577 I/DEBUG ( 5194): be87b05c 6e72656b I/DEBUG ( 5194): be87b060 69206c65 I/DEBUG ( 5194): be87b064 65722073 I/DEBUG ( 5194): be87b068 72697571 I/DEBUG ( 5194): be87b06c 74206465 I/DEBUG ( 5194): be87b070 7572206f I/DEBUG ( 5194): be87b074 6874206e I/DEBUG ( 5194): be87b078 62207369 I/DEBUG ( 5194): be87b07c 72616e69 I/DEBUG ( 5194): be87b080 28202e79 I/DEBUG ( 5194): be87b084 656b5f5f I/DEBUG ( 5194): be87b088 6c656e72 I/DEBUG ( 5194): be87b08c 706d635f I/DEBUG ( 5194): be87b090 67686378 I/DEBUG ( 5194): be87b094 68203436 I/DEBUG ( 5194): be87b098 65706c65 I/DEBUG ( 5194): be87b09c 000a2972 I/DEBUG ( 5194): be87b0a0 00000000 I/DEBUG ( 5194): be87b0a4 b00037f5 /system/bin/linker I/DEBUG ( 5194): be87b0a8 b000e2e4 I/DEBUG ( 5194): be87b0ac b000e2e0 I/DEBUG ( 5194): be87b0b0 00002753 I/DEBUG ( 5194): be87b0b4 b00038a9 /system/bin/linker I/DEBUG ( 5194): be87b0b8 004a8000 I/DEBUG ( 5194): be87b0bc 80900000 /mnt/asec/org.qtproject.example.testArmv5-1/lib/libgnustl_shared.so I/DEBUG ( 5194): be87b0c0 00000020 I/DEBUG ( 5194): be87b0c4 b000e200 I/DEBUG ( 5194): be87b0c8 814a46bc I/DEBUG ( 5194): be87b0cc b000e200
ndk-stack says:
********** Crash dump: ********** Build fingerprint: 'samsung/GT-S6102/GT-S6102:2.3.6/GINGERBREAD/XXMA3:user/release-keys' pid: 6331, tid: 6331 >>> org.qtproject.example.testArmv5 <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad Stack frame #00 pc 0001603c /system/lib/libc.so Stack frame #01 pc 002ee724 /mnt/asec/org.qtproject.example.testArmv5-1/lib/libQt5Core.so: Routine QMetaProperty::read(QObject const*) const at /space/qt/qt-everywhere-opensource-src-5.6.0/qtbase/src/corelib/kernel/qmetaobject.cpp:3024 (discriminator 2)
The same app works without problems on Qt5.5.1 (using self compiled Qt and using the official packages).
Since there are no official packages for Qt5.6 on armv5 anymore, is there something special to consider when building Qt for armv5?
Attachments
For Gerrit Dashboard: QTBUG-52923 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
161639,2 | Android: Fix possible crash on startup with armv5 build | 5.6 | qt/qtbase | Status: ABANDONED | -2 | 0 |