[SERVER-15899] Querying against path in document containing long array of subdocuments with nested arrays causes stack overflow Created: 31/Oct/14 Updated: 11/Jul/16 Resolved: 18/Nov/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.5, 2.7.8 |
| Fix Version/s: | 2.6.6, 2.8.0-rc1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Bruce Lucas (Inactive) | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Backport Completed: | |||||
| Participants: | |||||
| Description |
|
Issue Status as of Dec 10, 2014 ISSUE SUMMARY For example:
In this example, the issue is triggered when the number of consecutive array elements that do not match the "arr.elem.x" path is sufficiently large. USER IMPACT WORKAROUNDS AFFECTED VERSIONS FIX VERSION RESOLUTION DETAILS |
| Comments |
| Comment by Githook User [ 25/Nov/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: BSONElementIterator::more() was using a stack frame per array (cherry picked from commit 20c218d3d3df17c820b9cd3e6399a2dec6755d94) |
| Comment by Githook User [ 18/Nov/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: BSONElementIterator::more() was using a stack frame per array |
| Comment by Bruce Lucas (Inactive) [ 31/Oct/14 ] |
|
It doesn't seem to. I increased n to 100000 with no problem. |
| Comment by J Rassi [ 31/Oct/14 ] |
|
Bruce, does this affect 2.4.12? |