View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000555 | Other Unix Port | Bug | public | 2012-12-11 08:27 | 2020-08-24 03:13 |
Reporter | Steven Levine | Assigned To | psmedley | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | eCS/OS2 | OS | eComstation or OS/2 | OS Version | 1.x 2.x or 4.5 |
Summary | 0000555: hg mercurial fails attempting to access /dev/urandom | ||||
Description | Mercurial needs to avoid unprotected attempts to access /dev/urandom | ||||
Steps To Reproduce | From an existing mozilla repo (or probably any hg repo) do hg pull -u This results in pulling from http://hg.mozilla.org/mozilla-central/ searching for changes adding changesets adding manifests adding file changes added 431 changesets with 1801 changes to 1136 files abort: No such file or directory: /dev/urandom | ||||
Additional Information | It is the update operation that is triggering the abort. To locate the code that needs to be modified, do hg --traceback update which results in the attached tmp.out. The output indicates that File "D:/usr/python27/Lib/random.py", line 111, in seed a = long(_hexlify(_urandom(16)), 16) needs to be dealt with. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
|
I fixed this. I triggered the bug testing virtualenv. New python27.dll is at http://smedley.id.au/python-2.7.3-fix.zip New diff - http://smedley.id.au/Python-2.7.3.diff see random.c for the fix - which is to use the openssl random stuff like vms does. |
|
Works fine here. I'm working with the mozilla sources, which is a good stress test. Thanks. |
|
Fixed in latest 2.7.3 code that's currently on my hd :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-12-11 08:27 | Steven Levine | New Issue | |
2012-12-11 08:33 | Steven Levine | File Added: tmp.out | |
2012-12-11 08:35 | Steven Levine | Additional Information Updated | |
2012-12-13 08:22 | psmedley | Note Added: 0002369 | |
2012-12-14 01:29 | Steven Levine | Note Added: 0002370 | |
2012-12-15 21:58 | psmedley | Note Added: 0002371 | |
2012-12-15 21:58 | psmedley | Status | new => resolved |
2012-12-15 21:58 | psmedley | Resolution | open => fixed |
2012-12-15 21:58 | psmedley | Assigned To | => psmedley |
2020-08-24 03:13 | psmedley | Status | resolved => closed |