[Interest] Qt Android app crashing on Android 6.0 -

Nuno Santos nunosantos at imaginando.pt
Tue Nov 3 12:50:03 CET 2015


I’m trying to add shared openssl support to my Qt app.

I’m currently following the instructions available on Qt documentation page and it says the following:

Note: You must consider enabling/disabling the SSL features based on the legal restrictions in the region where your application is available.

I’m completely in the dark here and if someone with more experience with this could give me some light, that would be awesome.

My SSL needs are basically for making https requests to websites.

Does anyone has an idea of what are the minimum features that needed to be enabled for this to happen? 

Does that minimum set of features has legal problems? 

Thanks in advance,

Regards,

Nuno Santos

> On 26 Oct 2015, at 13:29, Turunen Tuukka <tuukka.turunen at theqtcompany.com> wrote:
> 
> 
> Hi,
> 
> When we have been running Android 6 and itse development versions we have not experienced such crashes. The crash you sent is in libcrypto.so though, which is not part of the Android NDK, so if you're using the system version, you're a bit on your own. As we've said in our documentation, you have to bundle OpenSSL with your application if you want to make sure it works with future versions of Android. That said, one of our developers recently tested a Qt example that uses OpenSSL as well, and that also works fine on Android 6.0.
> 
> Here's the docs about OpenSSL: http://doc.qt.io/qt-5/opensslsupport.html
> 
> Once you have narrowed this down, please make a bug report.
> 
> Yours,
> 
> 	Tuukka
> 
>> -----Original Message-----
>> From: interest-bounces+tuukka.turunen=theqtcompany.com at qt-project.org
>> [mailto:interest-bounces+tuukka.turunen=theqtcompany.com at qt-
>> project.org] On Behalf Of Nuno Santos
>> Sent: maanantaina 26. lokakuuta 2015 11.06
>> To: interest <interest at qt-project.org>
>> Subject: [Interest] Qt Android app crashing on Android 6.0 -
>> 
>> Hi,
>> 
>> My users are reporting crashes on Android 6.0 when trying to start the app.
>> 
>> Below is what I got from Google Developer Console. Does anyone know what
>> is happening here? Is anyone having the same problem?
>> 
>> What can I do to address this?
>> 
>> Thanks in advance,
>> 
>> Regards,
>> 
>> Nuno
>> 
>> *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build
>> fingerprint: 'google/volantis/flounder:6.0/MRA58K/2256973:user/release-
>> keys'
>> Revision: '0'
>> ABI: 'arm'
>> pid: 2307, tid: 2397, name: QtThread  >>> com.imaginando.lk <<< signal 11
>> (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
>>    r0 00000008  r1 00000000  r2 00000000  r3 00000002
>>    r4 ac6026c8  r5 ac935680  r6 00000000  r7 00000008
>>    r8 00000001  r9 de12f518  sl ac93583c  fp ac6930a8
>>    ip f69fd9b0  sp de12f4b8  lr f69c1a59  pc f6fa0542  cpsr 40030030
>> 
>> backtrace:
>>    #00 pc 00042542  /system/lib/libc.so (pthread_rwlock_wrlock+1)
>>    #01 pc 0005fa55  /system/lib/libcrypto.so (CRYPTO_MUTEX_lock_write+2)
>>    #02 pc 000640ff  /system/lib/libcrypto.so (X509_STORE_add_cert+62)
>>    #03 pc 00073579  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #04 pc 0006f069  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #05 pc 00070bf1  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #06 pc 000718bf  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #07 pc 0006aa15  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so (QSslSocket::startClientEncryption()+116)
>>    #08 pc 0006b1cd  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #09 pc 001cd2b7  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QMetaObject::activate(QObject*, int, int, void**)+1146)
>>    #10 pc 0005e9c3  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #11 pc 00060b31  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #12 pc 00059951  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #13 pc 000640d3  /data/app/com.imaginando.lk-
>> 1/lib/arm/libQt5Network.so
>>    #14 pc 001ae739  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QCoreApplicationPrivate::notify_helper(QObject*, QEvent*)+40)
>>    #15 pc 001ae767  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QCoreApplication::notify(QObject*, QEvent*)+42)
>>    #16 pc 001ae583  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QCoreApplication::notifyInternal(QObject*, QEvent*)+62)
>>    #17 pc 001e412d  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QEventDispatcherUNIX::activateSocketNotifiers()+128)
>>    #18 pc 001e42e9  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEvents
>> Flag>, timespec*)+408)
>>    #19 pc 001e44ff  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFl
>> ag>)+178)
>>    #20 pc 001ad6a7  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+14)
>>    #21 pc 001add87  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+226)
>>    #22 pc 000751f1  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>> (QThread::exec()+84)
>>    #23 pc 00077899  /data/app/com.imaginando.lk-1/lib/arm/libQt5Core.so
>>    #24 pc 00041537  /system/lib/libc.so (__pthread_start(void*)+30)
>>    #25 pc 0001918b  /system/lib/libc.so (__start_thread+6)
>> 
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151103/cffd851d/attachment.html>


More information about the Interest mailing list