Closed
Bug 1640475
Opened 5 years ago
Closed 5 years ago
Missing OOM handling after js_malloc in RegExpShared::initializeNamedCaptures
Categories
(Core :: JavaScript Engine, defect, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: anba, Assigned: iain)
References
Details
Attachments
(1 file)
Test case:
var i = 0;
oomTest(function() {
for (var j = 0; j < 10; ++j) {
var r = RegExp(`(?<_${(i++).toString(32)}>a)`);
r.exec("a");
}
});
Asserts with:
Assertion failure: cx->isExceptionPending() (Thunk execution failed but no exception was raised - missing call to js::ReportOutOfMemory()?)
Reason:
OOM after js_malloc
not handled in RegExpShared::initializeNamedCaptures
.
Comment 1•5 years ago
|
||
Iain, could you look at this bug
Severity: -- → S3
Flags: needinfo?(iireland)
Priority: -- → P2
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → iireland
Status: NEW → ASSIGNED
Assignee | ||
Updated•5 years ago
|
Flags: needinfo?(iireland)
Pushed by iireland@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4c531b04559
Report OOM in initializeNamedCaptures r=mgaudet
Comment 4•5 years ago
|
||
Backed out for SM bustages on bug1640475.js.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=303987999&repo=autoland&lineNumber=14488
Backout: https://hg.mozilla.org/integration/autoland/rev/ca57ba90ff1ab5c8ca519bdeef486f4f65fdecd7
Flags: needinfo?(iireland)
Assignee | ||
Comment 5•5 years ago
|
||
Forgot to make the testcase conditional on oomTest being defined.
Flags: needinfo?(iireland)
Pushed by iireland@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/08de9180d90c
Report OOM in initializeNamedCaptures r=mgaudet
Comment 7•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in
before you can comment on or make changes to this bug.
Description
•