"Assertion failure: flags_ & JSFRAME_HAS_PREVPC,"

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
critical
RESOLVED FIXED
8 years ago
6 years ago

People

(Reporter: gkw, Assigned: luke)

Tracking

(Blocks: 1 bug, {assertion, regression, testcase})

Trunk
x86
Mac OS X
assertion, regression, testcase
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(blocking2.0 betaN+)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
function g(code) {
  f = Function(code);
  for (a in f()) {}
}
g()
g("function(){}")
g()
g("yield")

asserts js debug shell on TM changeset edb0506b0c23 with -m at Assertion failure: flags_ & JSFRAME_HAS_PREVPC
(Reporter)

Comment 1

8 years ago
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   54765:32b049250e03
user:        David Anderson
date:        Mon Oct 04 14:13:33 2010 -0700
summary:     ICs for scripted new (bug 589398, r=luke,dmandelin).
Blocks: 589398
blocking2.0: --- → ?

Updated

8 years ago
blocking2.0: ? → betaN+

Comment 2

8 years ago
After the fix for bug 595555, the testcase needs a small change:

function g(code) {
  f = Function(code);
  for (a in f()) {}
}
g();
g("(function(){})");
g();
g("yield");
Assignee: general → lw
Created attachment 490186 [details] [diff] [review]
fix

This isn't a correctness bug (in release builds), but it was a slight unnecessary slow down.
Attachment #490186 - Flags: review?(dvander)
Attachment #490186 - Flags: review?(dvander) → review+

Comment 5

8 years ago
http://hg.mozilla.org/mozilla-central/rev/5b757ec177b1
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/testBug603193.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.