Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 2015 16:35:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 197376] lang/python27: random module leaks file descriptor into child process
Message-ID:  <bug-197376-21822-ZiBGsSQ6lp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197376-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197376-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Ed Maste <emaste@freebsd.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to python@FreeBSD.org:
Bug 197376: lang/python27: random module leaks file descriptor into child
process
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197376



--- Description ---
Created attachment 152624
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152624&action=edit
leaked fd test program from LLDB test suite

Version: python27-2.7.9

LLDB recently added a test that the debugger is not leaking file descriptors
into child processes. This fails on FreeBSD, and the leaked fd comes from
Python's random. I've attached the test program from LLDB.

To reproduce:

- Build test program and confirm it returns 0:
% clang main.c && ./a.out
% echo $?
0

- Invoke it from python without using random and confirm it returns 0:
>>> import os
>>> os.system("./a.out")
0

- Invoke it from python with random:

>>> import os, random
>>> os.system("./a.out")
File descriptor 4 is open.
512

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer python@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197376-21822-ZiBGsSQ6lp>