Crash [@ JSString::flags] with ES6 Classes
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox65 | --- | unaffected |
| firefox66 | --- | unaffected |
| firefox67 | --- | fixed |
People
(Reporter: gkw, Assigned: khyperia)
References
Details
(4 keywords, Whiteboard: [fuzzblocker][jsbugmon:update])
Crash Data
Attachments
(3 files)
The following testcase crashes on mozilla-central revision 6924dd16f7b1 (build with --enable-debug --enable-more-deterministic, run with --fuzzing-safe --no-threads --no-baseline --no-ion):
// Adapted from randomly chosen test: js/src/tests/test262/language/expressions/class/fields-init-value-defined-after-class.js
let z = class {
[x] = 0;
}
Backtrace:
#0 JSString::flags (this=0x0) at js/src/vm/StringType.h:397
#1 JSString::isLinear (this=0x0) at js/src/vm/StringType.h:484
#2 JSString::isFlat (this=0x0) at js/src/vm/StringType.h:504
#3 JSFlatString::isIndex (this=0x0, indexp=<optimized out>) at js/src/vm/StringType.h:992
#4 JSAtom::asPropertyName (this=0x0) at js/src/vm/StringType.h:1876
#5 0x000055dee2b9eca1 in js::frontend::GeneralParser<js::frontend::FullParseHandler, char16_t>::fieldInitializer (this=0x7ffc52ebef70, yieldHandling=(unknown: 1484419736), propAtom=...) at js/src/frontend/Parser.cpp:7366
/snip
For detailed crash information, see attachment.
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
autobisectjs shows this is probably related to the following changeset:
The first bad revision is:
changeset: https://hg.mozilla.org/mozilla-central/rev/49fda807b7c5
user: Ashley Hauck
date: Thu Feb 21 23:48:16 2019 +0000
summary: Bug 1499448 - Implement more field functionality. r=jorendorff
Setting [fuzzblocker] as this is happening very often. Ashley, is bug 1499448 a likely regressor?
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
Ashley, is bug 1499448 a likely regressor?
Yeah, very likely. Just added a patch that should fix it (it's a very quick fix patch, not the proper fix, which would take much more time).
Comment 6•7 years ago
|
||
| bugherder | ||
Updated•7 years ago
|
Comment 7•7 years ago
|
||
Can we land the testcase for this also?
| Assignee | ||
Comment 8•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
| bugherder | ||
Description
•