Closed Bug 1011730 Opened 10 years ago Closed 10 years ago

Assertion failure: containsPC(pc), at jsscript.h

Categories

(Core :: JavaScript Engine: JIT, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla32
Tracking Status
firefox31 --- unaffected
firefox32 --- fixed
firefox-esr24 --- unaffected

People

(Reporter: gkw, Unassigned)

References

Details

(4 keywords, Whiteboard: [fuzzblocker][jsbugmon:update])

Attachments

(1 file)

Attached file stack
enableSPSProfilingWithSlowAssertions()
function f() {
    if (!([] instanceof Array)) {
        throw (function() {})
    }
    return function() {
        for (var i = 0; i < 1; i++) {
            f()
        }
    };
}
f()()

asserts js debug shell on m-c changeset 616dc757d98a with --ion-eager --ion-parallel-compile=off at Assertion failure: containsPC(pc), at jsscript.h

My configure flags are:

CC="clang -Qunused-arguments" CXX="clang++ -Qunused-arguments" AR=ar sh /Users/skywalker/trees/mozilla-central/js/src/configure --target=x86_64-apple-darwin12.5.0 --enable-optimize --enable-debug --enable-profiling --enable-gczeal --enable-debug-symbols --disable-tests --with-ccache --enable-threadsafe <other NSPR options>

autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   http://hg.mozilla.org/mozilla-central/rev/19eafdcdefe3
user:        Dan Gohman
date:        Fri May 16 06:40:09 2014 -0700
summary:     Bug 844779 - IonMonkey: Make loops contiguous. r=h4writer

:sunfish, is bug 844779 a likely regressor?

Because this involves SPS, setting s-s and assuming sec-high for now. Also, this is flooding jsfunfuzz, so setting [fuzzblocker].
Flags: needinfo?(sunfish)
Group: javascript-core-security
The crash happens in the SPS instrumentation code. It happens only when the MakeLoopsContiguous code moves a block which ends in a throw. I'm unfamiliar with both SPS profiling and throwing, so I reverted the patch until I can investigate:

https://hg.mozilla.org/integration/mozilla-inbound/rev/28db7381c979
Flags: needinfo?(sunfish)
Fixed by the backout landing on m-c:

https://hg.mozilla.org/mozilla-central/rev/28db7381c979
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Status: RESOLVED → VERIFIED
JSBugMon: This bug has been automatically verified fixed.
Group: javascript-core-security
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: