[SERVER-8308] Javascript shell max call stack exceeded on deeply nested json object Created: 23/Jan/13 Updated: 05/Apr/17 Resolved: 29/Nov/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jared Rosoff | Assignee: | Matt Cotter |
| Resolution: | Done | Votes: | 0 |
| Labels: | platforms-re-triaged | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Minor Change | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | MongoDB shell version: 2.3.3-pre- > |
||||||||
| Sprint: | Platforms 2017-01-23 | ||||||||
| Participants: | |||||||||
| Description |
|
trying to create a deeply nested json document. shell gives error when trying to display. |
| Comments |
| Comment by Githook User [ 30/Nov/16 ] | |||||||||||||||||||||||||
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: | |||||||||||||||||||||||||
| Comment by Githook User [ 29/Nov/16 ] | |||||||||||||||||||||||||
|
Author: {u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}Message: | |||||||||||||||||||||||||
| Comment by Matt Cotter [ 28/Nov/16 ] | |||||||||||||||||||||||||
|
Looks like node handles this similarly to how I wanted to:
Where the functions are defined as follows
| |||||||||||||||||||||||||
| Comment by Matt Cotter [ 28/Nov/16 ] | |||||||||||||||||||||||||
|
This is the same issue as
I will try just truncating for now and seeing what happens. FWIW the spidermonkey shell chokes on this too basically in the same way.
vs.
| |||||||||||||||||||||||||
| Comment by Tad Marshall [ 24/Jan/13 ] | |||||||||||||||||||||||||
|
Similar, but slightly different, result from SpiderMonkey:
|