Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2216

Crash on supportsSsl()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.4.2
    • PySide
    • None
    • Windows 10
    • Windows

    Description

      This code crashes the Python interpreter, as evidenced by not printing "Done":

      python -c "from PySide6.QtNetwork import QSslSocket; QSslSocket.supportsSsl(); print('Done')" 

      Output:

      C:\Code>python -c "from PySide6.QtNetwork import QSslSocket; QSslSocket.supportsSsl(); print('Done')" 
      qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter
      

      This is using Python 3.11.1.

       

      On WSL, Ubuntu 22.04, Python 3.10.6, I am getting the same mysterious warning ("invalid nullptr parameter"), but Python does not crash at least:

      /mnt/c/Code$ python -c "from PySide6.QtNetwork import QSslSocket; QSslSocket.supportsSsl(); print('Done')"
      qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter
      qt.tlsbackend.ossl: Incompatible version of OpenSSL (built with OpenSSL 1.x, runtime version is >= 3.x)
      Done

       

      I would expect no crash nor warning.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            bers bers bers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes