[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
Release)

 - 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

https://github.com/oberstet/scratchbox/blob/master/python/twisted/pypybug1/testcase.py

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":

   
http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.8.0.tar.gz

    http://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2

Then run

    pypy testcase.py pool ssl

and point your browser to 

    https://<IP>:8090

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>
<https://bugs.pypy.org/issue1162>
________________________________________


More information about the pypy-issue mailing list