Closed Bug 610582 Opened 14 years ago Closed 14 years ago

TMFLAGS=tracer is broken

Categories

(Core :: JavaScript Engine, defect, P1)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

BUILD: Current tip TM

STEPS TO REPRODUCE:
1)  Build debug shell
2)  Stick https://bugzilla.mozilla.org/attachment.cgi?id=489101 in ~/test.js
2)  env TMFLAGS=tracer js -j ~/test.js

EXPECTED RESULTS: Some information on side exits

ACTUAL RESULTS:
Assertion failure: str, at /Users/bzbarsky/mozilla/tracemonkey/mozilla/js/src/jsval.h:603
And in particular, js::TraceRecorder::record_EnterFrame does this:

  js_AtomToPrintableString(cx, cx->fp()->fun()->atom)

but cx->fp()->fun()->atom is null, so we propagate the null all the way through js_ValueToPrintableString to js::StringValue to js::Value::setString to STRING_TO_JSVAL_IMPL where we assert.
This particular function looks like this, I think:

    rotateLeft: function(n, s) {
        var t4 = ( n << s ) | (n >>> (32 - s));
        return t4;
    },
Assignee: general → bzbarsky
Priority: -- → P1
Whiteboard: [need review]
Attachment #489111 - Flags: review?(dvander)
Attachment #489111 - Flags: review?(dvander) → review+
Whiteboard: [need review]
Whiteboard: [need approval]
Attachment #489111 - Flags: approval2.0?
Pushed http://hg.mozilla.org/tracemonkey/rev/c1c10304f991
Whiteboard: [need approval] → fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/c1c10304f991
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #489111 - Flags: approval2.0? → approval2.0+
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: