[Android-development] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)

ekke ekke at ekkes-corner.org
Mon Mar 13 16:06:39 CET 2017


found another makefile (https://gist.github.com/rvagg/3ab9a1a7e16b576caef5)

in my
https://github.com/ekke/android-openssl-qt/blob/master/build-all-arch.sh
probably I should insert -DOPENSSL_THREADS here:

|xCFLAGS="-DSHARED_EXTENSION=.so -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-DDSO_DLFCN -DHAVE_DLFCN_H -mandroid -I$ANDROID_DEV/include
-B$ANDROID_DEV/$xLIB -O3 -fomit-frame-pointer -Wall" |

what do you think ?

should using this option be safe with Qt 5.8?

thx

ekke


Am 13.03.17 um 11:30 schrieb ekke:
> as you know from previous discussions I had trouble compiling openssl on
> OSX,
> but finally did it and provided a repo with all scripts:
> https://github.com/ekke/android-openssl-qt
>
> today sent out a complex Qt 5.8 QQC2 App to customer to test
> the app randomly is crashing
> happens while new user logs in and some data was downloaded from REST server
> GET requests are done with QNAM and I'm firing some requests and wait
> until all got a response
>
> logged error:
> F libc    : md_rand.c:327: ssleay_rand_add: assertion "md_c[1] ==
> md_count[1]" failed
> F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 10989 (QtThread)
>
> searched for the reason and found an old topic:
> http://marc.info/?l=openssl-users&m=117861757322237&w=2
>
> seems openssl must be compiled with
> OPENSSL_THREADS
> to deal with QNAM processing multiple requests async
>
> I have no idea where in
> https://github.com/ekke/android-openssl-qt/blob/master/build-all-arch.sh
> I should add this option
>
> And I don't know if this will be safe with Qt 5.8
>
> thx for helping
>
> ekke
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20170313/26f7cb2e/attachment.html>


More information about the Android-development mailing list