Bugs item #1344508, was opened at 2005-10-31 19:46 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1344508&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Erwin S. Andreasen (drylock) >Assigned to: Neal Norwitz (nnorwitz) Summary: UNIX mmap leaks file descriptors Initial Comment: The commit from 2.49 to 2.50 in Modules/mmapmodule.c has made mmap under UNIX leak a file descriptor: - m_obj->fd = fd; + m_obj->fd = dup(fd); The FD given is dup'ed in order to allow ftruncation later, but no close of it is done in dealloc/close. A test case attached, using lsof after some mmaps/unmaps to show leak. Version: Python 2.4.2 (#2, Sep 29 2005, 00:23:59) [GCC 4.0.2 (Debian 4.0.1-9)] on linux2 ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2005-11-01 21:46 Message: Logged In: YES user_id=33168 Thanks! Committed revision 41366. Committed revision 41367. (cleanup) Committed revision 41368. (2.4) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1344508&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com