Closed Bug 1428515 Opened 6 years ago Closed 6 years ago

Intermittent dom/plugins/test/mochitest/test_npruntime_identifiers.html | application crashed [@ JS::ExposeObjectToActiveJS]

Categories

(Core Graveyard :: Plug-ins, defect, P5)

defect

Tracking

(firefox-esr52 unaffected, firefox57 wontfix, firefox58 wontfix, firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox-esr52 --- unaffected
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jonco)

References

Details

(Keywords: crash, intermittent-failure)

Crash Data

Attachments

(1 file)

nsJSNPRuntime::OnPluginDestroy() seems to be accessing an object that is about to be finalized.
This was caused by the incremental finalisation of foreground finalised objects in bug 1352430.

The sNPObjWrappers table can contain entries for dead JSObjects that have not yet been finalised.  We need to take care not to trigger mJSObj's read barrier for such entries since that will attempt to expose the object to JS and cause this assertion.

The patch does this by calling unbarrieredGetPtr() which avoids the barrier.

Note converting a TenuredHeap to bool and testing equality against a pointer don't trigger the barrier.
Assignee: nobody → jcoppeard
Attachment #8941889 - Flags: review?(bzbarsky)
It looks like this was previously filed as bug 1425751.
Comment on attachment 8941889 [details] [diff] [review]
bug1428515-plugin-wrappers

Most of comment 3 should be in the commit message here.

r=me with that.
Attachment #8941889 - Flags: review?(bzbarsky) → review+
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d119babafa27
Check for dying JSObjects when accessing plugin wrapper table r=bz
https://hg.mozilla.org/mozilla-central/rev/d119babafa27
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Too late for 58, unfortunately.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: