[pypy-issue] Issue #3156: Exception when creating SSLContext (pypy/pypy)

Robert Borys issues-reply at bitbucket.org
Sat Jan 18 17:01:50 EST 2020


New issue 3156: Exception when creating SSLContext
https://bitbucket.org/pypy/pypy/issues/3156/exception-when-creating-sslcontext

Robert Borys:

I’m getting the following exception when calling ssl.SSLContext\(\)

‌

```
c:\prog\pypy36\pypy3.exe my_file.py
RPython traceback:
  File "pypy_interpreter.c", line 44890, in BuiltinCode2_fastcall_2
  File "implement_4.c", line 45668, in fastfunc_descr_getattribute_2_1
  File "pypy_module__cffi_backend.c", line 23310, in W_LibObject__get_attr
  File "pypy_module__cffi_backend_1.c", line 5824, in W_LibObject__build_attr
  File "pypy_module__cffi_backend_1.c", line 33180, in W_LibObject__build_cpython_func
  File "pypy_module__cffi_backend_1.c", line 42652, in W_RawFuncType_prepare_nostruct_fnptr
  File "pypy_module__cffi_backend_1.c", line 18993, in W_RawFuncType__unpack
  File "pypy_module__cffi_backend_1.c", line 30181, in realize_c_type
  File "pypy_module__cffi_backend_1.c", line 31910, in realize_c_type_or_func
  File "pypy_module__cffi_backend_1.c", line 42405, in __exit____star_3_1
RPython traceback:
  File "pypy_interpreter.c", line 44890, in BuiltinCode2_fastcall_2
  File "implement_4.c", line 45668, in fastfunc_descr_getattribute_2_1
  File "pypy_module__cffi_backend.c", line 23310, in W_LibObject__get_attr
  File "pypy_module__cffi_backend_1.c", line 5824, in W_LibObject__build_attr
  File "pypy_module__cffi_backend_1.c", line 33154, in W_LibObject__build_cpython_func
  File "pypy_module__cffi_backend_1.c", line 31910, in realize_c_type_or_func
  File "pypy_module__cffi_backend_1.c", line 42405, in __exit____star_3_1
Traceback (most recent call last):
  File "my_file.py", line 121, in <module>
    my_function()
  File "my_file.py", line 43, in another_function
    ssl_context = ssl.SSLContext()
  File "c:\prog\pypy36\lib-python\3\ssl.py", line 391, in __new__
    self = _SSLContext.__new__(cls, protocol)
  File "c:\prog\pypy36\lib_pypy\_cffi_ssl\_stdssl\__init__.py", line 933, in __new__
    self.verify_mode = CERT_NONE
  File "c:\prog\pypy36\lib-python\3\ssl.py", line 485, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "c:\prog\pypy36\lib_pypy\_cffi_ssl\_stdssl\__init__.py", line 1024, in verify_mode
    verify_cb = lib.SSL_CTX_get_verify_callback(self.ctx)
SystemError: unexpected internal exception (please report a bug): <RThreadError object at 0x6899b4ec>; internal traceback was dumped to stderr
```

‌




More information about the pypy-issue mailing list