A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-bugs-list/2005-November/030897.html below:

[ python-Bugs-1344508 ] UNIX mmap leaks file descriptors

[ python-Bugs-1344508 ] UNIX mmap leaks file descriptorsSourceForge.net noreply at sourceforge.net
Wed Nov 2 06:46:40 CET 2005
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
More information about the Python-bugs-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4