Closed Bug 368224 Opened 18 years ago Closed 18 years ago

"Assertion failure: pnprop->pn_type == TOK_COLON" or crash [@ CheckDestructuring] with sharp declaration

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha5

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: crash, testcase)

Crash Data

Attachments

(1 file, 1 obsolete file)

js> ({ x: [] }) = #3={} Assertion failure: pnprop->pn_type == TOK_COLON, at jsparse.c:2065 In opt, instead of an assertion failure, I get a null-deref crash [@ CheckDestructuring].
Blocks: 368267
Attached patch fix (obsolete) — Splinter Review
Trivially correct. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #263417 - Flags: review?(igor)
OS: Mac OS X → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha5
Comment on attachment 263417 [details] [diff] [review] fix >Index: jsparse.c >=================================================================== >RCS file: /cvsroot/mozilla/js/src/jsparse.c,v >retrieving revision 3.277 >diff -p -u -8 -r3.277 jsparse.c >--- jsparse.c 10 Apr 2007 13:29:10 -0000 3.277 >+++ jsparse.c 2 May 2007 01:49:01 -0000 >@@ -2046,31 +2046,34 @@ FindPropertyValue(JSParseNode *pn, JSPar There is a loop that fills the table at the end of FindPropertyValue. Should it also skip the first pn when it is a defsharp?
Attached patch fix, v2Splinter Review
Ugh, should have seen that. Not sure about the worth of this hashing code, but separate bug if need be. /be
Attachment #263417 - Attachment is obsolete: true
Attachment #263440 - Flags: review?(igor)
Attachment #263417 - Flags: review?(igor)
Attachment #263440 - Flags: review?(igor) → review+
Fixed on trunk: js/src/jsparse.c 3.278 /be
Blocks: js1.7src
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Depends on: 379442
/cvsroot/mozilla/js/tests/js1_7/extensions/regress-368224.js,v <-- regress-368224.js initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.9.0 linux/mac* 2007-05-05 shell.
Status: RESOLVED → VERIFIED
Flags: wanted1.8.1.x+
Crash Signature: [@ CheckDestructuring]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: