Closed
Bug 615423
Opened 14 years ago
Closed 14 years ago
Shutdown crash [@ mozilla::imagelib::SVGDocumentWrapper::StartAnimation]
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla2.0b9
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: jruderman, Assigned: dholbert)
References
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(4 files, 1 obsolete file)
No description provided.
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
Reporter | ||
Comment 3•14 years ago
|
||
Steps to reproduce: 1. Save inner.svg and c.svg to the same directory. 2. Load c.svg. 3. Quit Firefox. Result: Crash during shutdown [@ mozilla::imagelib::SVGDocumentWrapper::StartAnimation]
Reporter | ||
Comment 4•14 years ago
|
||
bp-bfe4f4b6-6db4-4fa7-844e-83fff2101129 (no other reports with this signature).
Assignee | ||
Comment 5•14 years ago
|
||
Looks like we just need to handle the case where document teardown triggers a spurious (ignorable) StartAnimation call after XPCOM shutdown. This patch should fix it. (just adding a null-check before the null-deref that's crashing here.)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•14 years ago
|
||
(Will request review after I verify that this fixes it & write an automated test.)
blocking2.0: --- → ?
Assignee | ||
Updated•14 years ago
|
Summary: Crash [@ mozilla::imagelib::SVGDocumentWrapper::StartAnimation] → Shutdown crash [@ mozilla::imagelib::SVGDocumentWrapper::StartAnimation]
blocking2.0: ? → final+
Assignee | ||
Comment 7•14 years ago
|
||
Here's the fix again. I verified that it fixes the crash. It turns out that creating an automated test for this is non-trivial, though... The attached testcase only crashes if you quit Firefox (run mozilla::ShutdownXPCOM) *while* viewing the testcase. As soon as you navigate to a different page (which the crashtest suite does many times before shutdown), you're safe from crashing. dbaron says that this might be testable with an xpcshell test, but that this would be a fair amount of work to write. So, I'm tempted to skip the automated test for this bug, since this is just a null-check to prevent a null-deref at shutdown (which only happens with a semi-crazy fuzzer testcase)...
Attachment #496023 -
Attachment is obsolete: true
Attachment #498363 -
Flags: review?(roc)
Assignee | ||
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 8•14 years ago
|
||
(btw, new fix is identical to old fix - I just tweaked the comment slightly)
Attachment #498363 -
Flags: review?(roc) → review+
Comment 9•14 years ago
|
||
(In reply to comment #7) > dbaron says that this might be testable with an xpcshell test, but that this > would be a fair amount of work to write. So, I'm tempted to skip the automated > test for this bug, since this is just a null-check Yeah, don't spend lots of time on that. Let's land this and move on to more pressing things.
Assignee | ||
Comment 10•14 years ago
|
||
Landed: http://hg.mozilla.org/mozilla-central/rev/bc5f97f02556
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b9
Updated•13 years ago
|
Crash Signature: [@ mozilla::imagelib::SVGDocumentWrapper::StartAnimation]
You need to log in
before you can comment on or make changes to this bug.
Description
•