[jsdbg2] Assertion failure: (ptrBits & 0x7) == 0, at ../jsval.h:705

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
critical
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: decoder, Assigned: jorendorff)

Tracking

(Blocks: 1 bug, {assertion, testcase})

Other Branch
x86_64
Linux
assertion, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
The following code asserts on jsdbg2 branch (revision f189dd6316eb, options -j -m -a -d):


if (typeof assertThrowsInstanceOf === 'undefined') {
    var assertThrowsInstanceOf = function assertThrowsInstanceOf(f, ctor, msg) {
        try {
            f();
        } catch (exc) {
            if (exc instanceof ctor)
                return;
        }
    };
}
function check(val) {
    assertThrowsInstanceOf(function () { dbg.hasDebuggee( this ( ) ); }, TypeError);
    assertThrowsInstanceOf(function () { dbg.addDebuggee(val); }, TypeError);
    assertThrowsInstanceOf(function () { dbg.removeDebuggee(val); }, TypeError);
}
check(undefined);
var g = newGlobal('new-compartment');
var dbg = new Debugger;
var gobj = dbg.addDebuggee(g);
assertThrowsInstanceOf(function () { gobj.defineProperty( "\r\nb") ; }, TypeError);
(Assignee)

Comment 1

6 years ago
Created attachment 551861 [details] [diff] [review]
v1
Assignee: general → jorendorff
Attachment #551861 - Flags: review?(jimb)

Updated

6 years ago
Attachment #551861 - Flags: review?(jimb) → review+
(Assignee)

Comment 2

6 years ago
http://hg.mozilla.org/users/jblandy_mozilla.com/jsdbg2/rev/cb0579abe353
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.