[pypy-issue] [issue1162] Abort with OpenSSL and threads

Tobias Oberstein tracker at bugs.pypy.org
Sun Jun 10 21:56:59 CEST 2012

Tobias Oberstein <tobias.oberstein at gmail.com> added the comment:

Few more notes:

 - testcase4.py will abort on FreeBSD, and deadlock on Linux (using PyPy 1.9

 - testcase4.py can be made work by doing either of the following

    a) add a "_ssl.py" file with contents "raise ImportError"
    b) add a "import socket" line as the very first line

 - testcase.py will NOT work, even with the the a) and/or b) tricks


Hence, testcase.py should be considered.

testcase.py depends on Twisted. To install, get the following 2 and do a regular
"pypy setup.py install":



Then run

    pypy testcase.py pool ssl

and point your browser to 


On Linux, this will deadlock, on FreeBSD abort.

If you leave out either "pool" or "ssl" from the command line, it will work.

"pool" will start a thread pool under the hood.

"ssl" will run HTTPS instead of HTTP, and thus involve OpenSSL.

status: unread -> chatting

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list