https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197376

            Bug ID: 197376
           Summary: lang/python27: random module leaks file descriptor
                    into child process
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pyt...@freebsd.org
          Reporter: ema...@freebsd.org
             Flags: maintainer-feedback?(pyt...@freebsd.org)
          Assignee: pyt...@freebsd.org

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 <bugzi...@freebsd.org> ---
Auto-assigned to maintainer pyt...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-python@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"

Reply via email to