Last Comment Bug 677593 - [jsdbg2] Assertion failure: (ptrBits & 0x7) == 0, at ../jsval.h:705
: [jsdbg2] Assertion failure: (ptrBits & 0x7) == 0, at ../jsval.h:705
Status: RESOLVED FIXED
: assertion, testcase
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Other Branch
: x86_64 Linux
: -- critical (vote)
: ---
Assigned To: Jason Orendorff [:jorendorff]
:
Mentors:
Depends on:
Blocks: langfuzz
  Show dependency treegraph
 
Reported: 2011-08-09 10:33 PDT by Christian Holler (:decoder)
Modified: 2011-08-09 14:28 PDT (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
v1 (1.52 KB, patch)
2011-08-09 12:40 PDT, Jason Orendorff [:jorendorff]
jimb: review+
Details | Diff | Review

Description Christian Holler (:decoder) 2011-08-09 10:33:49 PDT
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);
Comment 1 Jason Orendorff [:jorendorff] 2011-08-09 12:40:07 PDT
Created attachment 551861 [details] [diff] [review]
v1
Comment 2 Jason Orendorff [:jorendorff] 2011-08-09 14:28:22 PDT
http://hg.mozilla.org/users/jblandy_mozilla.com/jsdbg2/rev/cb0579abe353

Note You need to log in before you can comment on or make changes to this bug.