[SERVER-19582] v8 out of memory issue from creation of large string Created: 24/Jul/15  Updated: 10/Aug/15  Resolved: 10/Aug/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 3.1.6
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: William Cross Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

1. Go into the mongo shell (version 3.1.6 or earlier)
2. Run the following:

y = Math.pow(10, 8)
var x = 'asdf'.pad(y);

Expected result: x becomes a giant string that I was planning to use to generate a DocumentTooLarge error

Actual result: the shell breaks.

Participants:

 Description   

This issue is gone as of this morning's build but was present in 3.1.6.

If I try to create a large (100 MB) string, v8 stops working and says it's out of memory.

This was a bummer because people might end up frustrated with a non-working shell.


Generated at Thu Feb 08 03:51:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.