United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6589458 Some memory leaks/allocation conflicts in printing and fonts code, Win32
JDK-6589458 : Some memory leaks/allocation conflicts in printing and fonts code, Win32

Details
Type:
Bug
Submit Date:
2007-08-06
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2007-12-10
Component:
client-libs
OS:
windows
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Cannot Reproduce
Affected Versions:
6u3
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

Description
While working with 6536107 (GDI leak detected by opening the Print Dialog repeatedly), QA team performed some analysis against win32 native code. They have compiled JRE native code with a special compiler that inserts some additional checks when allocating/freeing native objects and found several problems. It's stated these problems may lead to some crashes and/or leaks.

See attached report for details.

                                    

Comments
EVALUATION

I have looked at the printing related ones and do not find any of them to be
real. ie they are all false positives

- the tool cannot identify when a pointer is stored in a Java object and freed
later by GC

- the tool cannot identify when a pointer is assigned by passing its address
to a function.

- there are a couple of claimed conflicts where new is not used to allocate an object
but delete is used to reclaim it. In the source "new" is in fact used but awt_new.cpp
has apparently overriden the C++ new operator but not the delete operator.
I doubt this is a real issue but should be addressed at an AWT level.

I have attached an annotated version of the log with "ANALYSIS" comments.
The attachment is analysis.txt

The rest of the claimed problems are in awt_Font and related classes so since
those and awt_new are owned by AWT I am re-assigning this to AWT for further
evaluation.
                                     
2007-08-07



Hardware and Software, Engineered to Work Together