[SERVER-17226] 'top' command with 64MB result document can terminate server Created: 09/Feb/15 Updated: 18/Sep/15 Resolved: 13/Mar/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics |
| Affects Version/s: | 3.0.0-rc8 |
| Fix Version/s: | 2.6.9, 3.0.1, 3.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kamran K. | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | 28qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Completed: | |||||||||
| Participants: | |||||||||
| Description |
|
A top command that produces a document that is ~64MB can terminate the server. See top.cpp below (and db/stats/top.cpp
If b.append throws, the destructor for b will call BSONObjBuilder::_done. _done will throw an exception if result is 64MB because it will attempt to grow to accommodate EOO, which pushes it past the internal 64MB limit. |
| Comments |
| Comment by Githook User [ 06/Mar/15 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Since _done() is called from ~BSONObjBuilder we need to ensure that it cannot This also resolves (cherry picked from commit a0db9321139e8da657638ddbe7e86d8bac9ea3cc) |
| Comment by Githook User [ 05/Mar/15 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Since _done() is called from ~BSONObjBuilder we need to ensure that it cannot This also resolves (cherry picked from commit a0db9321139e8da657638ddbe7e86d8bac9ea3cc) |
| Comment by Githook User [ 05/Mar/15 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Since _done() is called from ~BSONObjBuilder we need to ensure that it cannot This also resolves |