Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
got confirmation from customer immediately: crash seems to be fixed :) I updated the repo: https://github.com/ekke/android-openssl-qt ekke Am 13.03.17 um 17:33 schrieb ekke: > Am 13.03.17 um 16:34 schrieb Thiago Macieira: >> On segunda-feira, 13 de março de 2017 08:19:22 PDT ekke wrote: >>> I'm using openssl only on Android because of Android7 where Google >>> removed openssl >> I thought you said you were using macOS. That's what I get for not clicking >> the links... > my origin problem was building openssl for Android on OSX because of > -mandroid error (https://bugreports.qt.io/browse/QTBUG-59375 and others) > > -- > Just built openssl again with -DOPENSSL_THREADS > couldn't reproduce the crash anymore :) > tomorrow will send out to customer to test again > > ekke > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
Am 13.03.17 um 16:34 schrieb Thiago Macieira: > On segunda-feira, 13 de março de 2017 08:19:22 PDT ekke wrote: >> I'm using openssl only on Android because of Android7 where Google >> removed openssl > I thought you said you were using macOS. That's what I get for not clicking > the links... my origin problem was building openssl for Android on OSX because of -mandroid error (https://bugreports.qt.io/browse/QTBUG-59375 and others) -- Just built openssl again with -DOPENSSL_THREADS couldn't reproduce the crash anymore :) tomorrow will send out to customer to test again ekke ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
On segunda-feira, 13 de março de 2017 08:19:22 PDT ekke wrote: > I'm using openssl only on Android because of Android7 where Google > removed openssl I thought you said you were using macOS. That's what I get for not clicking the links... > > Am 13.03.17 um 16:13 schrieb Thiago Macieira: > > On segunda-feira, 13 de março de 2017 03:30:09 PDT ekke wrote: > >> as you know from previous discussions I had trouble compiling openssl on > >> OSX, > > > > Why are you using OpenSSL on macOS? Qt can use the SecureTransport API > > there and not use OpenSSL. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
sorry - forget to mention: I'm using openssl only on Android because of Android7 where Google removed openssl Am 13.03.17 um 16:13 schrieb Thiago Macieira: > On segunda-feira, 13 de março de 2017 03:30:09 PDT ekke wrote: >> as you know from previous discussions I had trouble compiling openssl on >> OSX, > Why are you using OpenSSL on macOS? Qt can use the SecureTransport API there > and not use OpenSSL. > >> seems openssl must be compiled with >> OPENSSL_THREADS >> to deal with QNAM processing multiple requests async > Makes sense, yes. > >> 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 > Try not to use OpenSSL in the first place. Use SecureTransport. > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
On segunda-feira, 13 de março de 2017 03:30:09 PDT ekke wrote: > as you know from previous discussions I had trouble compiling openssl on > OSX, Why are you using OpenSSL on macOS? Qt can use the SecureTransport API there and not use OpenSSL. > seems openssl must be compiled with > OPENSSL_THREADS > to deal with QNAM processing multiple requests async Makes sense, yes. > 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 Try not to use OpenSSL in the first place. Use SecureTransport. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
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=117861757322237=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 > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt 5.8 openssl QNAM crash (OPENSSL_THREADS?)
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=117861757322237=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 ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest