Closed Bug 601299 Opened 15 years ago Closed 15 years ago

"Assertion failure: hasfp()" [@ JSContext::regExpStatics]

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: jruderman, Assigned: cdleary)

Details

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

Attachments

(2 files, 1 obsolete file)

Assertion failure: hasfp(), at js/src/jscntxtinlines.h:59 Might be a regression from bug 571355.
In an opt build, I get a null deref [@ __ZL18regexp_compile_subP9JSContextP8JSObjectjPN2js5ValueES5_].
Another way to reproduce is to paste this into xpcshell: new new XPCSafeJSObjectWrapper(/x/)
Thet xpcshell testcase no longer does anything (XPCSafeJSObjectWrapper is not defined), but the browser testcase still hits the assertion failure.
Makes sense, fast native executed from browser as a callback. I remember deliberately not relying on cx->globalObject, but I guess you have to in these kinds of situations. Need to test before requesting review.
Assignee: general → cdleary
Status: NEW → ASSIGNED
It works when I test it manually -- I can't figure out what the mochitest TEST_PATH is to get it run with the make target though... is there a rule of thumb for how to find that?
Attachment #485951 - Attachment is obsolete: true
Attachment #485971 - Flags: review?(mrbkap)
Comment on attachment 485971 [details] [diff] [review] use JS_GetGlobalForScopeChain If you want, you could create an internal (js_*) API to do this since I think this is the second time that we've had to use this external API in js/src. r=me either way.
Attachment #485971 - Flags: review?(mrbkap) → review+
blocking2.0: --- → ?
Whiteboard: fixed-in-tracemonkey
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
blocking2.0: ? → betaN+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: