[issue31255] Test getrandom before using it

STINNER Victor report at bugs.python.org
Tue Aug 22 10:04:34 EDT 2017


STINNER Victor added the comment:

If I understand correctly, Python 3.4 and 3.5 simply don't work on Linux < 3.17 with glibc >= 2.25.

The question is which OS make such change. It seems like the issue is more with binary packages when the builder is older or newer than the OS used by end users.

Since the bug prevents to start Python and cannot be worked again, maybe we need to fix Python 3.4... *but* this branch becomes old, Python 3.5 recently reached the security fixes only.

The pratical issue is that my changes os Python/random.c are large. I refactored the code to fix different issues.

I suggest to fix how binary packages are compiled, upgrade to Python 3.5 or newer, and more generally try to avoid the bad version combo (Linux < 3.17 with glibc >= 2.25) ;-)

I wrote articles on my os.urandom() changes:

* https://haypo.github.io/pep-524-os-urandom-blocking.html
* https://haypo.github.io/contrib-cpython-2017q1.html § os.urandom() and getrandom()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31255>
_______________________________________


More information about the Python-bugs-list mailing list