Closed Bug 352208 Opened 18 years ago Closed 18 years ago

"Assertion failure: ts->lookahead == 0 || ON_CURRENT_LINE(ts, CURRENT_TOKEN(ts).pos) || ts->tokens[(ts->cursor + ts->lookahead) & NTOKENS_MASK].type == TOK_EOL" [@ js_PeekTokenSameLine]

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: crash, testcase, verified1.8.1)

Crash Data

Attachments

(2 files)

js> new Function("setter/*\n"); Assertion failure: ts->lookahead == 0 || ON_CURRENT_LINE(ts, CURRENT_TOKEN(ts).pos) || ts->tokens[(ts->cursor + ts->lookahead) & NTOKENS_MASK].type == TOK_EOL, at jsscan.c:1017 #0 0x0000a370 in JS_Assert #1 0x00080e64 in js_PeekTokenSameLine (cx=0x500180, ts=0x1814a10) at jsscan.c:1014 #2 0x000d3ce8 in CheckGetterOrSetter (cx=0x500180, ts=0x1814a10, tt=TOK_FUNCTION) at jsparse.c:349 #3 0x000e2038 in PrimaryExpr (cx=0x500180, ts=0x1814a10, tc=0xbfffd63c, tt=TOK_NAME, afterDot=0) at jsparse.c:5102 #4 0x000df724 in MemberExpr (cx=0x500180, ts=0x1814a10, tc=0xbfffd63c, allowCallSyntax=1) at jsparse.c:4229 #5 0x000df264 in UnaryExpr (cx=0x500180, ts=0x1814a10, tc=0xbfffd63c) at jsparse.c:4139 #6 0x000de8c0 in MulExpr (cx=0x500180, ts=0x1814a10, tc=0xbfffd63c) at jsparse.c:3982 #7 0x000de7a8 in AddExpr (cx=0x500180, ts=0x1814a10, tc=0xbfffd63c) at jsparse.c:3964 ...
I'm checking this into trunk and 1.8 branch now. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #237804 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Not fixed for the case where the comment is terminated: js> new Function("setter/*\n*/"); Assertion failure: ts->lookahead == 0 || (ts->flags & TSF_ERROR) || ON_CURRENT_LINE(ts, CURRENT_TOKEN(ts).pos) || ts->tokens[(ts->cursor + ts->lookahead) & NTOKENS_MASK].type == TOK_EOL, at jsscan.c:1018
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: fixed1.8.1
Why didn't you say so? :-P /be
Attachment #237810 - Flags: review+
Fixed harder on trunk and 1.8 branch. /be
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Keywords: fixed1.8.1
More ways to hit the assertion in bug 352372.
Checking in regress-352208.js; /cvsroot/mozilla/js/tests/js1_5/Regress/regress-352208.js,v <-- regress-352208.js initial revision: 1.1 done
Flags: in-testsuite+
verified fixed 1.8 20060914 windows/linux 1.9 20060914 windows/mac*/linux
Status: RESOLVED → VERIFIED
Crash Signature: [@ js_PeekTokenSameLine]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: