WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 1404] New: File descriptor leak in function find_cap_off

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1404] New: File descriptor leak in function find_cap_offset in file tools/python/xen/util/pci.py
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 12 Jan 2009 13:56:42 -0800
Delivery-date: Mon, 12 Jan 2009 13:56:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1404

           Summary: File descriptor leak in function find_cap_offset in file
                    tools/python/xen/util/pci.py
           Product: Xen
           Version: unspecified
          Platform: Unspecified
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: ajcg@xxxxxxxxxxx


In file tools/python/xen/util/pci.py:528 (of Xen 3.3.0 stable release).  In
function find_cap_offset, a file is opened using the lowlevel 'os.open'.  If
the 'if' statement 3 lines below it is taken then the function is left without
closing the file descriptor.  Eventually this problem causes Xend to use up all
of its file descriptors and become essentially unusable.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>