Closed Bug 772215 Opened 12 years ago Closed 12 years ago

Crash with multiple compartments, nodeList, trickster proxy

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 767273

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: assertion, crash, testcase, Whiteboard: [js-triage-needed][sg:dupe 767273])

Attachments

(4 files)

Attached file testcase
Loading the testcase causes a crash [@ JSCompartment::wrap] or
Assertion failure: (ptrBits & 0x7) == 0, at jsval.h:700

This is the same kind of "trickster proxy" as in bug 767273, which has a shell testcase.  It might be the same bug.
Group: core-security
Attached file stack trace (crash)
When I load the testcase on osx64, I get:

JavaScript error: file:///Users/bholley/Desktop/tp.html, line 16: TypeError: can't convert null to primitive type

No crash. I'm betting my fix over in bug 767273 will fix this though.
Hmm, I can reproduce using a debug build I downloaded from Tinderbox, but not with a local debug build.
Whiteboard: [js-triage-needed]
Attached patch API initSplinter Review
This is definitely a dupe of bug 767273.  Here's a minimal fix for this particular entryway.  With badInit (and actually, without it on my particular build) the testcase here crashes.  With init, it doesn't crash.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Group: core-security
Whiteboard: [js-triage-needed] → [js-triage-needed][sg:dupe 767273]
A testcase for this bug was already added in the original bug (bug 767273).
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: