[SERVER-17761] RestAdminAccess/NoAdminAccess objects leak at shutdown Created: 26/Mar/15  Updated: 18/Sep/15  Resolved: 27/Mar/15

Status: Closed
Project: Core Server
Component/s: HTTP Console
Affects Version/s: None
Fix Version/s: 3.0.3, 3.1.1

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: address-sanitizer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-17994 AdminAccess object leaks after shutdo... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:

 Description   

	
=================================================================
==2125==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x948659 in operator new(unsigned long) (/data/mci/shell/src/mongod+0x948659)
    #1 0x9603bb in mongo::_initAndListen(int) /data/mci/shell/src/src/mongo/db/db.cpp:459
    #2 0x95e2bb in mongo::initAndListen(int) /data/mci/shell/src/src/mongo/db/db.cpp:653
    #3 0x97488c in mongoDbMain(int, char**, char**) /data/mci/shell/src/src/mongo/db/db.cpp:900
    #4 0x97488c in main /data/mci/shell/src/src/mongo/db/db.cpp:702
    #5 0x7f6028e05ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
-----------------------------------------------------
Suppressions used:
  count      bytes template
     28      34816 mongo::Client::Client



 Comments   
Comment by Githook User [ 10/Apr/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-17761 DbWebServer should own the AdminAccess pointer

(cherry picked from commit e29ff8af63903ee88f44ad38cac780bd20cf6543)
Branch: v3.0
https://github.com/mongodb/mongo/commit/79b7d1d1d84c127a860d9130325000ada9783d58

Comment by Githook User [ 27/Mar/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-17761 DbWebServer should own the AdminAccess pointer
Branch: master
https://github.com/mongodb/mongo/commit/e29ff8af63903ee88f44ad38cac780bd20cf6543

Comment by Kaloian Manassiev [ 26/Mar/15 ]

Introduced by 8136a4d3138ab17188e6eab14c42cf61444f901b. The leaked object is of type RestAdminAccess/NoAdminAccess. It is not a problem in practice, because the object lives until shutdown.

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