[CXX-115] Phantom memory leaks Created: 20/Sep/11 Updated: 07/Jan/15 Resolved: 07/Jan/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jamie Seward | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | cxxmove, leak, legacy-cxx, memory | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Visual Studio 2010 |
||
| Description |
|
If _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF) is set mongo will report memory leaks upon exiting the app. First cause seems to be tests = new vector<UnitTest*>(), there are probably more. It would be nice to get a clean exit. |
| Comments |
| Comment by Adam Midvidy [ 07/Jan/15 ] |
|
currently we run the driver under ASAN and no leaks are reported. Closing as "Cannot Reproduce", please reopen if you are continuing to have issues. |
| Comment by Andrew Morrow (Inactive) [ 25/Jun/14 ] |
|
jseward Will your debugging configuration report still reachable blocks as leaks? Valgrind, unless explicitly asked, does not consider those to be leaks. |
| Comment by Jamie Seward [ 21/Sep/11 ] |
|
Yes, sorry I should have been more specific. |
| Comment by Kyle Banker [ 21/Sep/11 ] |
|
This appears to be the C++ driver (the one bundled with the core server). Is that correct? |