Closed Bug 460444 Opened 17 years ago Closed 16 years ago

Potential crash in ~nsXBLAttributeEntry(), ~nsXBLProtoImplField(), ~nsXBLPrototypeHandler() , ~nsXBLParameter(), ~nsXBLProtoImplMember(), ~nsXBLResource()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

(Keywords: crash, fixed1.9.1, Whiteboard: [sg:dos] too much stack recursion)

Attachments

(3 files)

Yeah, this is crashing. See zipped up testcase. This crashes with this stacktrace: http://crash-stats.mozilla.com/report/index/d4ec50c7-9c54-11dd-82a8-001cc4e2bf68?p=1 0 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:67 1 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:70 2 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:70 3 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:70 4 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:70 5 xul.dll nsXBLResource::~nsXBLResource content/xbl/src/nsXBLResourceLoader.h:70 etc..
I crashed sometimes with a lot of fields, but not reproducable: http://crash-stats.mozilla.com/report/index/b52f9dee-9c59-11dd-9586-001cc45a2ce4?p=1 0 mozcrt19.dll arena_dalloc_small obj-firefox/memory/jemalloc/src/jemalloc.c:4267 1 mozcrt19.dll arena_dalloc obj-firefox/memory/jemalloc/src/jemalloc.c:4390 2 mozcrt19.dll free obj-firefox/memory/jemalloc/src/jemalloc.c:6207 3 xul.dll nsXBLProtoImplField::~nsXBLProtoImplField content/xbl/src/nsXBLProtoImplField.cpp:73 4 xul.dll nsXBLProtoImplField::~nsXBLProtoImplField content/xbl/src/nsXBLProtoImplField.cpp:74 5 xul.dll nsXBLProtoImplField::~nsXBLProtoImplField content/xbl/src/nsXBLProtoImplField.cpp:74 6 xul.dll nsXBLProtoImplField::~nsXBLProtoImplField content/xbl/src/nsXBLProtoImplField.cpp:74 7 xul.dll nsXBLProtoImplField::~nsXBLProtoImplField content/xbl/src/nsXBLProtoImplField.cpp:74 etc..
This one with a lot of constructors: http://crash-stats.mozilla.com/report/index/225d9cb3-9c5e-11dd-bfdf-0013211cbf8a?p=1 0 mozcrt19.dll arena_dalloc_small obj-firefox/memory/jemalloc/src/jemalloc.c:4257 1 mozcrt19.dll arena_dalloc obj-firefox/memory/jemalloc/src/jemalloc.c:4390 2 mozcrt19.dll free obj-firefox/memory/jemalloc/src/jemalloc.c:6207 3 xul.dll nsXBLProtoImplAnonymousMethod::`vector deleting destructor' 4 xul.dll nsXBLProtoImplAnonymousMethod::`vector deleting destructor' 5 xul.dll nsXBLProtoImplAnonymousMethod::`vector deleting destructor' 6 xul.dll nsXBLProtoImplAnonymousMethod::`vector deleting destructor' 7 xul.dll nsXBLProtoImplAnonymousMethod::`vector deleting destructor' etc.. The crash sometimes occurs when I close the testcase while it is still loading.
I think we need to fix all of these... (see also bug 460461)
Assignee: nobody → mats.palmgren
Severity: normal → critical
Keywords: crash
Whiteboard: [sg:nse dos] too much stack recursion
Whiteboard: [sg:nse dos] too much stack recursion → [sg:dos] too much stack recursion
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Patch rev. 1Splinter Review
Attachment #346668 - Flags: superreview?(dbaron)
Attachment #346668 - Flags: review?(dbaron)
Attachment #346668 - Flags: superreview?(dbaron)
Attachment #346668 - Flags: superreview+
Attachment #346668 - Flags: review?(jst)
Attachment #346668 - Flags: review?(dbaron)
Attachment #346668 - Flags: review+
Comment on attachment 346668 [details] [diff] [review] Patch rev. 1 r+sr=dbaron, although you probably want a content peer to say that it's ok to have this in nsINode.h
Attachment #346668 - Flags: review?(jst) → review+
Comment on attachment 346668 [details] [diff] [review] Patch rev. 1 Looks good to me.
Comment on attachment 346668 [details] [diff] [review] Patch rev. 1 ... though you could stick the definition of the macro in nsContentUtils.h rather than nsINode.h.
Moved the #define to nsContentUtils.h, no other significant changes, I'll land this when the tree opens.
You'll need to request approval1.9? to land after beta 2; see beltzner's dev-planning post on November 13.
Attachment #348691 - Flags: approval1.9.1?
Comment on attachment 348691 [details] [diff] [review] Patch rev. 2 (moved the #define to nsContentUtils.h) a191=beltzner
Attachment #348691 - Flags: approval1.9.1? → approval1.9.1+
http://hg.mozilla.org/mozilla-central/rev/e085f7a2037c No test checked in since it's 2MB big and takes a couple of minutes to load on a relatively fast PC. -> FIXED
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Do we want to fix this on the 1.9.0 branch?
Flags: wanted1.9.0.x?
Component: Content → DOM
QA Contact: content → general
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: