Closed Bug 489251 Opened 16 years ago Closed 16 years ago

Crash on shutdown after touching window.java or window.packages

Categories

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

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.1

People

(Reporter: mrbkap, Assigned: jst)

Details

(Keywords: fixed1.9.1, regression)

Attachments

(1 file)

During startup, Venkman has a line that touches "java" in the global scope. This causes nsGlobalWindow to instantiate an nsDummyJavaPluginOwner. This owner ends up being used-after-free (addref'd even). jst is on the case. It looks like a missing call to nsIPluginInstancePeer2::InvalidateOwner.
This crash can be triggered by typing javascript:alert(java); in the URL bar and then quitting. Patch coming up to fix the crash, but there's more problems here, like us never properly tearing down the dummy java plugin, leaking every instance of it etc, but that's a different bug (which I'll file).
Assignee: nobody → jst
Summary: Crash on shutdown after opening Venkman → Crash on shutdown after touching window.java or window.packages
We need to block on this, it's trivial to reproduce, and likely exploitable if someone tries hard enough. This is most likely a regression from bug 475646.
Flags: blocking1.9.1+
Keywords: regression
Attachment #373971 - Flags: superreview?(mrbkap)
Attachment #373971 - Flags: review?(mrbkap)
Priority: -- → P2
Target Milestone: --- → mozilla1.9.1
Attachment #373971 - Flags: superreview?(mrbkap)
Attachment #373971 - Flags: superreview+
Attachment #373971 - Flags: review?(mrbkap)
Attachment #373971 - Flags: review+
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: fixed1.9.1
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Group: core-security
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: