New issue
Advanced search Search tips

Issue 902371 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Nov 7
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug
Build-Toolchain



Sign in to add a comment

Python not implemented errors with glibc2.27

Project Member Reported by manojgupta@chromium.org, Nov 6

Issue description

When running graphics_webGLAquarium on peach_pit with glibc 2.27, I see following errors:

Traceback (most recent call last):
  File "/usr/local/autotest/bin/autotest", line 8, in <module>
    from autotest_lib.client.bin import job
  File "/usr/local/autotest/bin/job.py", line 25, in <module>
    from autotest_lib.client.bin import client_logging_config
  File "/usr/local/autotest/bin/client_logging_config.py", line 3, in <module>
    from autotest_lib.client.common_lib import logging_config, global_config
  File "/usr/local/autotest/common_lib/logging_config.py", line 5, in <module>
    from autotest_lib.client.common_lib import utils
  File "/usr/local/autotest/common_lib/utils.py", line 24, in <module>
    import random
  File "/usr/local/lib64/python2.7/random.py", line 885, in <module>
    _inst = Random()
  File "/usr/local/lib64/python2.7/random.py", line 97, in __init__
    self.seed(x)
  File "/usr/local/lib64/python2.7/random.py", line 113, in seed
    a = long(_hexlify(_urandom(2500)), 16)
OSError: [Errno 38] Function not implemented
 
Project Member

Comment 1 by bugdroid1@chromium.org, Nov 7

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/8565770c32c59d1d309b14578cae98b588fff58e

commit 8565770c32c59d1d309b14578cae98b588fff58e
Author: Manoj Gupta <manojgupta@google.com>
Date: Wed Nov 07 19:40:53 2018

python: Backport patch: Do not use getentropy on Linux.

Backport upstream fix for glibc 2.24 for python 2.7.17.
Had to be modified from original patch for applying to
python 2.7.10 in Chrome OS.

Original patch details:

https://hg.python.org/cpython/rev/13a39142c047

Don't use getentropy() on Linux

 Issue #29188 : Support glibc 2.24 on Linux: don't use getentropy()
function but
read from /dev/urandom to get random bytes, for example in
os.urandom().  On
Linux, getentropy() is implemented which getrandom() is blocking mode,
whereas
os.urandom() should not block. [#29188]
author	Victor Stinner <victor.stinner@gmail.com>
date	Mon, 09 Jan 2017 11:10:41 +0100 (22 months ago)

BUG= chromium:834385 
BUG= chromium:902371 
TEST=graphics_webGLAquarium passes on peach_pit with glibc 2.27

Change-Id: Ic9f57373a5b8867ba16dfefa5dba2227474c7922
Reviewed-on: https://chromium-review.googlesource.com/1318314
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@chromium.org>

[rename] https://crrev.com/8565770c32c59d1d309b14578cae98b588fff58e/dev-lang/python/python-2.7.10-r5.ebuild
[add] https://crrev.com/8565770c32c59d1d309b14578cae98b588fff58e/dev-lang/python/files/python-2.7.17-getentropy.patch
[modify] https://crrev.com/8565770c32c59d1d309b14578cae98b588fff58e/dev-lang/python/python-2.7.10.ebuild

Status: Verified (was: Untriaged)

Sign in to add a comment