Closed Bug 600933 Opened 14 years ago Closed 14 years ago

points.initialize causes nsDocument leak and "ABORT: Tear-off objects remain in hashtable at shutdown"

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME
Tracking Status
blocking2.0 --- final+

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: assertion, memory-leak, testcase)

Attachments

(3 files)

1. Temporarily install 'DOM Fuzz Lite' from
    https://www.squarefree.com/extensions/domFuzzLite.xpi
2. Load one of the testcases.

Result: leak nsDocument / abort
###!!! ABORT: Tear-off objects remain in hashtable at shutdown.: 'mTable.Count() == 0', file content/svg/content/src/nsSVGAttrTearoffTable.h, line 54

At nsSVGAttrTearoffTable<nsSVGLength2, nsIDOMSVGAnimatedLength>::
  ~nsSVGAttrTearoffTable()
Blocks: 515116
blocking2.0: --- → final+
No longer blocks: 515116
blocking2.0: final+ → ---
The line
  x.points.initialize({})

now triggers
  Error: uncaught exception: [Exception... "Unknown or invalid type"  code: "0" nsresult: "0x80620000 (NS_ERROR_DOM_SVG_WRONG_TYPE_ERR)"  location: "file:///Users/jruderman/Desktop/s.svg Line: 14"]
... thanks to the fix for bug 601251.
Did that fix the leak bug, or just break the testcase?
blocking2.0: --- → ?
It stopped you being able to pass random weird things to most SVG DOM methods. The leak may well no longer be triggerable.
You'll have to try harder from now on ;-)
Fair enough ;)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: