Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57922

QNetworkAccessManager crashes with SIGSEGV on Android 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.8.0 RC
    • Network: SSL
    • None
    • Android 7
    • Android

    Description

      QNetworkAccessManager form 5.8.0 RC crushes with SIGSEGV on Android 7 when executing connectToHostEncrypted, get, put or post commands.
      On Qt 5.7.1 it emits error: "SSL handshake failed" but not crush (SSLErrors signal not emitted).
      Console log when app loads:
      W linker : /data/app/org.qtproject.example-1/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/app/org.qtproject.example-1/lib/x86/libQt5Widgets.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/app/org.qtproject.example-1/lib/x86/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
      I Qt : qt start
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unsupported flags DT_FLAGS_1=0x81
      I art : Do partial code cache collection, code=14KB, data=29KB
      I art : After code cache collection, code=14KB, data=29KB
      I art : Increasing code cache capacity to 128KB
      W linker : /data/app/org.qtproject.example-1/lib/x86/libNetworkTest.so: unused DT entry: type 0xf arg 0x4bd2
      W gralloc_ranchu: Gralloc pipe failed
      D : HostConnection::get() New Host Connection established 0x8cbfe500, tid 3398
      D : HostConnection::get() New Host Connection established 0x8cbfe700, tid 3418
      I OpenGLRenderer: Initialized EGL, version 1.4
      D OpenGLRenderer: Swap behavior 1
      W linker : library "libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/org.qtproject.example-1/lib/x86/libQt5Core.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
      W linker : library "libssl.so" ("/system/lib/libssl.so") needed or dlopened by "/data/app/org.qtproject.example-1/lib/x86/libQt5Core.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EVP_CipherFinal
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_ctrl
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_ctrl
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_get_builtin_curves
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_curve_nist2nid
      W libNetworkTest.so: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_conf
      D libNetworkTest.so: (null):0 ((null)): SSL support: true
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so: unsupported flags DT_FLAGS_1=0x81
      W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so: unsupported flags DT_FLAGS_1=0x81

      Console log when executing nam.connectToHostEncrypted("https://eschool.center/ec-server"):
      F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 3419 (QtThread)

      On Android 6 and above all works fine.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            alexxey593 Stolyarov Aleksey
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes