Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3651

Core dump on OCSP test Ubuntu 20.04 PyPy 3.8

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.4
    • Affects Version/s: None
    • Component/s: None
    • None

      OCSP test Ubuntu 20.04 PyPy 3.8 is failing with core dump. Looks like a pypy interpreter crash:

       [2023/03/30 21:20:49.560] Requirement already satisfied: cffi>=1.12 in /opt/python/pypy3.8/lib/pypy3.8 (from cryptography<41,>=38.0.0->pyopenssl) (1.15.0)
       [2023/03/30 21:20:50.032] Installing collected packages: pyasn1, urllib3, six, pyasn1-modules, idna, cryptography, charset-normalizer, certifi, attrs, service_identity, requests, pyopenssl
       [2023/03/30 21:20:51.137] Successfully installed attrs-22.2.0 certifi-2022.12.7 charset-normalizer-3.1.0 cryptography-40.0.1 idna-3.4 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyopenssl-23.1.1 requests-2.28.2 service_identity-21.1.0 six-1.16.0 urllib3-1.26.15
       [2023/03/30 21:20:51.156] + python -m pip install --prefer-binary pyopenssl requests service_identity
       [2023/03/30 21:20:51.156] + OCSP_TLS_SHOULD_SUCCEED=false
       [2023/03/30 21:20:51.156] + CA_FILE=/data/mci/01d38f9b952a09a0f66e30b051956efc/drivers-tools/.evergreen/ocsp/ecdsa/ca.pem
       [2023/03/30 21:20:51.156] + python test/ocsp/test_ocsp.py
       [2023/03/30 21:20:51.559] Error in cpyext, CPython compatibility layer:
       [2023/03/30 21:20:51.559] PyThreadState_Swap() cannot be used to switch to another
       [2023/03/30 21:20:51.559] different PyThreadState right now
       [2023/03/30 21:20:51.559] RPython traceback:
       [2023/03/30 21:20:51.559]   File "pypy_module_cpyext_2.c", line 30672, in unwrapper__StdObjSpaceConst_PyThreadStatePtr_sta
       [2023/03/30 21:20:51.559]   File "pypy_module_cpyext_2.c", line 1298, in PyThreadState_Swap
       [2023/03/30 21:20:51.559] Fatal RPython error: AssertionError
       [2023/03/30 21:20:51.731] /data/mci/01d38f9b952a09a0f66e30b051956efc/src/.evergreen/run-ocsp-tests.sh: line 25: 34162 Aborted                 (core dumped) OCSP_TLS_SHOULD_SUCCEED=${OCSP_TLS_SHOULD_SUCCEED} CA_FILE=${CA_FILE} python test/ocsp/test_ocsp.py
      

      https://evergreen.mongodb.com/task/mongo_python_driver_ocsp_test__platform~ubuntu_20.04_auth~noauth_ssl~ssl_mongodb_version~4.4_python_version~pypy3.8_test_ocsp_ecdsa_delegate_invalid_cert_server_does_not_staple_9d65395d7f240e187c5744e601c0eb31d3a039d2_23_03_28_21_51_08

      There's a core file attached to the evg task. To analyze it we need to spawn a Ubuntu host and use gdb.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: