Assertion failure: isThrowingOutOfMemory(), at js/src/vm/JSContext.cpp:1162 with BigInt
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | fixed |
People
(Reporter: gkw, Assigned: wingo)
References
Details
(4 keywords, Whiteboard: [jsbugmon:update])
Attachments
(3 files)
The following testcase crashes on mozilla-central revision b9187fa10f13 (build with --enable-debug --enable-more-deterministic, run with --fuzzing-safe --no-threads --no-baseline --no-ion):
See attachment.
Backtrace:
#0 JSContext::alreadyReportedOOM (this=0x7ffa36d17000) at js/src/vm/JSContext.cpp:1162
#1 0x000055ea5f59cebb in js::StringToBigInt (cx=0x7ffa36d17000, str=...) at /home/ubuntu/shell-cache/js-dbg-64-dm-linux-x86_64-b9187fa10f13/objdir-js/dist/include/mozilla/Maybe.h:443
#2 0x000055ea5f59c5f9 in js::ToBigInt (cx=0x7ffa36d17000, val=...) at js/src/vm/BigIntType.cpp:2633
#3 0x000055ea5f7e2448 in BigIntConstructor (cx=0x7ffa36d17000, argc=<optimized out>, vp=<optimized out>) at js/src/builtin/BigInt.cpp:47
#4 0x000055ea5f57e300 in CallJSNative (cx=0x7ffa36d17000, native=0x55ea5f7e22f0 <BigIntConstructor(JSContext*, unsigned int, JS::Value*)>, args=...) at js/src/vm/Interpreter.cpp:442
/snip
For detailed crash information, see attachment.
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 3•5 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/4b74d76e55a8
user: Andy Wingo
date: Wed Feb 06 13:41:56 2019 +0000
summary: Bug 1522436 - Enable BigInt compilation by default r=jandem,terpri,froydnj
Andy, again related to BigInt?
Reporter | ||
Comment 4•5 years ago
|
||
The testcase seems to be resistant against further line-based reduction so I just went ahead to file for good measure...
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Attached patch fixes the error. Thanks for the report gkw!
Updated•5 years ago
|
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9ae214a9c414
Uniformly signal OOM if StringToBigInt result too large r=jwalden,terpri
Comment 10•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Description
•