Open Bug 397854 Opened 18 years ago Updated 3 years ago

need leak tests for measuring kernel, gdi, and user handles

Categories

(Testing :: General, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: dbaron, Unassigned)

Details

We should have a leak measurement tool (parallel to, or perhaps attached to one of the nsTraceRefcnt or trace-malloc ways of measuring leaks) that measures leaks of User, GDI, and Kernel handles on Windows. See http://msdn2.microsoft.com/en-us/library/ms724457.aspx for some basic documentation and The based way to debug them may be to hook all the functions that allocate and release them (like trace-malloc does for the allocation functions). These functions are: for GDI object handles: http://msdn2.microsoft.com/en-us/library/ms724291.aspx for User object handles: http://msdn2.microsoft.com/en-us/library/ms725486.aspx for Kernel object handles: http://msdn2.microsoft.com/en-us/library/ms724485.aspx
Component: Testing → General
Product: Core → Testing
QA Contact: testing → general
Mass closing bugs with no activity in 2+ years. If this bug is important to you, please re-open.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Is this still worthwhile, or has it become less relevant over time?
Flags: needinfo?(bas)
(In reply to David Baron :dbaron: ⌚️UTC-8 from comment #2) > Is this still worthwhile, or has it become less relevant over time? Essentially this has become a lot less relevant since we don't use cairo anymore to access GDI, in other words we're using significantly less 'large' handle based objects. However of course leaking kernel handles could still be bad, and one might argue our increased use of shmems may have increased our usage there somewhat.
Flags: needinfo?(bas)
OK... I think this is still a known gap in our testing that we should consider working on, so I'm going to reopen.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.