[SERVER-6814] memory leak on page fault exception in BtreeCursorImpl::init() Created: 21/Aug/12 Updated: 11/Jul/16 Resolved: 21/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.0-rc2, 2.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
BtreeCursor::make() does not use smart pointers to guard the BtreeCursorImpl objects it allocates. If a page fault exception is thrown in BtreeCursorImpl::init() while the btree data is traversed to find the starting key, the BtreeCursorImpl will be orphaned. |
| Comments |
| Comment by auto [ 21/Aug/12 ] |
|
Author: {u'date': u'2012-08-21T14:06:10-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}Message: |
| Comment by auto [ 21/Aug/12 ] |
|
Author: {u'date': u'2012-08-21T14:06:10-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}Message: |