[SERVER-6251] mongod 2.1.2 crashes when indexing deeply nested arrays Created: 29/Jun/12  Updated: 06/Dec/22  Resolved: 14/Nov/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Storage
Affects Version/s: 2.1.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Steve Briskin (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongod.log     File nestedarr2.js     File nestedobj2.js    
Issue Links:
Depends
depends on SERVER-6462 stack overflow when comparing deeply ... Closed
Related
related to SERVER-5127 Limit recursion depth of BSONObj::toS... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

Reproduced issue from (SERVER-5036) in version 2.1.2.
Was able to insert nested arrays and object exceeding 1000 levels deep. ensureIndex failure (via crash) after nesting exceeds 579 levels and more than 1 record in collection.

Illegal instruction: 4 mongod --dbpath dbs/testdb -vvvv > mongod.log



 Comments   
Comment by Eric Milkie [ 14/Nov/16 ]

Recursion depth limit for arrays and objects is now 150.

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