Closed Bug 1094827 Opened 10 years ago Closed 10 years ago

Assertion failure in JSScript::maybeSweepTypes

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36
Tracking Status
firefox35 --- unaffected
firefox36 --- fixed
firefox-esr31 --- unaffected

People

(Reporter: jonco, Assigned: bhackett1024)

References

Details

(Keywords: regression, sec-high)

Attachments

(3 files)

Attached patch patch.txtSplinter Review
Building with the attached patch and running: JS_GC_ZEAL=14 gdb --args $JS/dist/bin/js jit-test/tests/debug/bug999655.js Yields the following assertion: Assertion failure: zone()->isGCSweepingOrCompacting() at js/src/jsinfer.cpp:4971 There doesn't appear to be anything in patch that could trigger this.
Attached file Stack backtrace
This looks like it's related to incremental sweeping of type objects. Brian, could you take a look?
Flags: needinfo?(bhackett1024)
What platform is this? I can't reproduce this.
I could only reproduce on linux x64
../configure --enable-debug --enable-optimize --enable-threadsafe --enable-build-nspr --enable-trace-malloc --disable-shared-js --enable-exact-rooting --enable-gccompacting as configure flag
Group: core-security
Flags: needinfo?(bhackett1024)
Attached patch fixSplinter Review
This is a regression from bug 999655, actually. When we analyze arguments usage from the debugger we end up analyzing a script in a different compartment from the one the context is in.
Assignee: nobody → bhackett1024
Attachment #8518339 - Flags: review?(jorendorff)
Attachment #8518339 - Flags: review?(jorendorff) → review+
And a followup since I forgot to add the second argument to AutoCompartment (I did test this patch, but on a different computer.) https://hg.mozilla.org/integration/mozilla-inbound/rev/02f36604f77b
I now see: TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/basic/bug656261.js | Timeout (code -9, args "--ion-eager --ion-offthread-compile=off") TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/basic/bug656261.js | Timeout (code -9, args "--ion-eager --ion-offthread-compile=off --ion-check-range-analysis --no-sse3 --no-threads") TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/gc/bug-975959.js | Assertion failure: activeParallelEntryScripts_ && activeParallelEntryScripts_->has(script), at /builds/slave/try_l64-d_sm-ggc-0000000000000/src/js/src/jit/Ion.cpp:557 (code -11, args "--ion-eager --ion-offthread-compile=off") INFO stderr 2> Assertion failure: activeParallelEntryScripts_ && activeParallelEntryScripts_->has(script), at /builds/slave/try_l64-d_sm-ggc-0000000000000/src/js/src/jit/Ion.cpp:557 make[1]: *** [check-jit-test] Error 2 make: *** [check-jit-test] Error 2 https://treeherder.mozilla.org/ui/logviewer.html#?job_id=3052525&repo=try Is this related, or is this another bug?
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: