[Bug 23983] New: TestFdLeak fails due to Python /dev/urandom leak

Bug ID 23983
Summary TestFdLeak fails due to Python /dev/urandom leak
Product lldb
Version unspecified
Hardware PC
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter emaste@freebsd.org
Classification Unclassified

Somehow Python issue 23458[1] has resurfaced on my development machine.
Submitting this issue for tracking and xfail.

>From ktrace, /dev/random (via symlink) is opened by lldb and inherited by the
test case:

 66490 lldb-3.7.0 NAMI  "/dev/urandom"
 66490 lldb-3.7.0 RET   openat 10/0xa
 66492 a.out    STRU  struct stat {dev=1895890688, ino=19, mode=020666,
 uid=0, gid=0, rdev=19, atime=1435590013.570031000, stime=1434918424.911347000, 
ctime=1434918424.911347000, birthtime=-1, size=0, blksize=4096, blocks=0,
flags=0x0 }

[1] [http://bugs.python.org/issue23458](https://urldefense.proofpoint.com/v2/url?u=http-3A__bugs.python.org_issue23458&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=DDUMf06MYELAe1Nlv7KChiwJLLHbYha4jtK_AOiWqwQ&m=ivOYadzIO1pCacDPEsIxP5OtaD8bze6yhlBmhMjTsKw&s=QuHED4ImbzIMYD8jyquoMFaHLwwLXxO6GIS9VAp5nkY&e=)

emaste@freebsd.org changed bug 23983

What | Removed | Added |

  • | - | - |
    Status | NEW | RESOLVED |
    Resolution | — | FIXED |

Comment # 1 on bug 23983 from emaste@freebsd.org

The underlying Python issue was not fixed - there was just an incorrect
decorator (Flakey vs Fail) on a newly added test. Updated in:

Sending        test/functionalities/avoids-fd-leak/TestFdLeak.py
Transmitting file data .
Committed revision 240958.

This should be fixed in Python 2.7.10 for at least some operating systems.