bugzilla | 7 Apr 2010 10:21
Picon
Favicon

DO NOT REPLY [Bug 49060] New: File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

           Summary: File Descriptor leak in AFP renderer
           Product: Fop
           Version: 1.0dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev <at> xmlgraphics.apache.org
        ReportedBy: peter.hancock <at> gmail.com

When rendering AFP, FOP creates a temp file with name beginning with
AFPDataStream_.  This file is deleted during the 'document end' cleanup,
however a the outputstream to the file is not currently closed first.  

The attached patch addresses this.

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

bugzilla | 7 Apr 2010 10:22
Picon
Favicon

DO NOT REPLY [Bug 49060] File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

--- Comment #1 from Peter Hancock <peter.hancock <at> gmail.com> 2010-04-07 08:21:59 UTC ---
Created an attachment (id=25238)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25238)
patch of fix

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

bugzilla | 7 Apr 2010 10:22
Picon
Favicon

DO NOT REPLY [Bug 49060] [PATCH] File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

Peter Hancock <peter.hancock <at> gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|File Descriptor leak in AFP |[PATCH] File Descriptor
                   |renderer                    |leak in AFP renderer

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

bugzilla | 8 Apr 2010 13:09
Picon
Favicon

DO NOT REPLY [Bug 49060] [PATCH] File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

--- Comment #2 from Chris Bowditch <bowditch_chris <at> hotmail.com> 2010-04-08 11:09:48 UTC ---
For the benefit of others who are wondering what the purpose of this patch is;
If the file is not closed before it is deleted then on some operatin systems,
e.g. AIX, an open file handle is left. After creating several thousand AFP File
you soon find that the Operating system has exhausted all its Open File
Handles.

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

bugzilla | 16 Dec 2010 20:18
Picon
Favicon

DO NOT REPLY [Bug 49060] [PATCH] File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

Vincent Hennebert <vhennebert <at> gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Vincent Hennebert <vhennebert <at> gmail.com> 2010-12-16 14:18:44 EST ---
Applied in rev. 1050104:
http://svn.apache.org/viewvc?rev=1050104&view=rev

Thanks!
Vincent

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

bugzilla | 28 Mar 2012 08:31
Picon
Favicon

DO NOT REPLY [Bug 49060] [PATCH] File Descriptor leak in AFP renderer

https://issues.apache.org/bugzilla/show_bug.cgi?id=49060

Peter Hancock <peter.hancock <at> gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Gmane