This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python3.7.3 - ssl.SSLContext() - "Killed"
Type: crash Stage: resolved
Components: SSL Versions: Python 3.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, hgmmym, terry.reedy
Priority: normal Keywords:

Created on 2020-12-25 23:36 by hgmmym, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg383779 - (view) Author: yaksha nyx (hgmmym) Date: 2020-12-25 23:36
I got a very strange issue with my Python3.7.3.
I use ssl module with urllin.request , when I visit some https website my script always die .so I got this :

*******************************************************************
Python 3.7.3 (default, Dec 26 2020, 06:35:45)
[GCC 6.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl                                                                 >>> ssl.OPENSSL_VERSION
'LibreSSL 3.1.1'
>>> ssl.SSLContext()
Killed
*******************************************************************

Just "Killed" , no more infomation . 
How to check this problem ?
msg384432 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-01-05 21:20
3.7.3 is an old release of an old version.  It has already been patched a few times.  If you cannot upgrade to at least the last bugfix release of 3.7, you are somewhat on your own.

The word 'Killed' in not in the ssl module, so I presume it comes from the LibreSSL, which on your system is what is imported as _ssl.  On Win 10, 'import ssl' prints nothing (normal for most imports) and ssl.SSLContext returns an instance of class SSLContext.

You question would be better asked on a help forum, such as python-list or stackoverflow.
msg384441 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-01-05 22:58
What exactly happens when you try to instantiate an SSLContext() object? Does it just print the string "Killed" or does the process stop and segfault immediately?

If it's a segfault then it is likely caused by an incompatibility between recent LibreSSL and old Python 3.7.3. Can you switch to OpenSSL? LibreSSL isn't well supported.
msg391294 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-04-17 18:13
The op hasn't replied in over 3 months. I'm closing the bug as staled.
History
Date User Action Args
2022-04-11 14:59:39adminsetgithub: 86912
2021-04-17 18:13:02christian.heimessetstatus: open -> closed
resolution: out of date
messages: + msg391294

stage: resolved
2021-01-05 22:58:00christian.heimessetmessages: + msg384441
2021-01-05 21:20:39terry.reedysetnosy: + terry.reedy
messages: + msg384432
2020-12-25 23:36:19hgmmymcreate