Closed Bug 511938 Opened 16 years ago Closed 15 years ago

TM: "Assertion failure: *(uint64*)&global[STOBJ_NSLOTS(JS_GetGlobalForObject(cx, cx->fp->scopeChain))] == 0xdeadbeefdeadbeefLL, at ../jstracer.cpp"

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: gkw, Unassigned)

References

Details

(Keywords: assertion, regression, testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

(function () { for (let x = 0; x < 4; ++x) { gczeal(2) } })() asserts dbg js shell on TM branch with -j at Assertion failure: *(uint64*)&global[STOBJ_NSLOTS(JS_GetGlobalForObject(cx, cx->fp->scopeChain))] == 0xdeadbeefdeadbeefLL, at ../jstracer.cpp:5894 Setting security-sensitive due to gczeal. autoBisect coming up after sleep.
Flags: blocking1.9.2?
So I stayed up. autoBisect shows this is probably related to bug 504478: The first bad revision is: changeset: 30365:1440f40669a7 user: Andreas Gal date: Thu Jul 16 18:42:54 2009 -0700 summary: Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor).
Blocks: 504478
Just talked with Andreas about this. Problem is that we set a poison value using STOBJ_NSLOTS(globalObj), and check it again later. But in between NSLOTS(globalObj) could have changed because of ShrinkSlots. So, just a bogus assertion. Should be moved to ExecuteTree.
(In reply to comment #2) > So, just a bogus assertion. Should be moved to ExecuteTree. Could this then be easily fixed? It's happening with moderate frequency in jsfunfuzz now...
Attachment #399359 - Flags: review?(dvander)
Attachment #399359 - Flags: review?(dvander) → review+
Looks good.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Not blocking.
Flags: blocking1.9.2? → blocking1.9.2-
Group: core-security
Automatically extracted testcase for this bug was committed: https://hg.mozilla.org/mozilla-central/rev/efaf8960a929
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: