[SERVER-16661] GlobalCursorIdCache leaks a SecureRandom Created: 24/Dec/14  Updated: 15/Jan/15  Resolved: 24/Dec/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.8.0-rc4
Fix Version/s: 2.8.0-rc5

Type: Bug Priority: Minor - P4
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: address-sanitizer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-16659 Cleanup pass for CursorManager/getMor... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

compile mock_stage_test with -fsanitize=address and run with LSAN enabled... or just patch against the compile stage of the ASAN build on MCI

Participants:

 Description   

Although there is a comment in the GlobalCursorIdCache destructor that "we're just going to leak everything, as it doesn't matter", this is currently breaking the ASAN build.

It seems like it would be simple to just wrap it in a boost::scoped_ptr.

http://buildlogs.mongodb.org/MCI_ubuntu1404-debug-asan/builds/476704/test/compile_0/mock_stage_test



 Comments   
Comment by Githook User [ 24/Dec/14 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-16661 fix leak in GlobalCursorIdCache

Closes #891

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/be65a960b1a808ce244fcd4496dcfb20b53fcedd

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