[SERVER-16407] lock_mgr_test reports leaks under the ASAN build Created: 03/Dec/14  Updated: 18/Dec/14  Resolved: 03/Dec/14

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 2.8.0-rc2

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: address-sanitizer, leak-sanitizer, memory-leak
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

scons --cc=/usr/bin/clang-3.5 --cxx=/usr/bin/clang++-3.5 --cache --ssl --dbg=on --opt=on --sanitize=address,leak --llvm-symbolizer=<path-to-symbolizer> --allocator=system --build-fast-and-loose=off --mute -j25 build/cached/mongo/db/concurrency/lock_mgr_test

LSAN_OPTIONS="suppressions=etc/lsan.suppressions" ASAN_OPTIONS=detect_leaks=1 ASAN_SYMBOLIZER_PATH=<path-to-symbolizer> build/cached/mongo/db/concurrency/lock_mgr_test

Participants:

 Description   

First failed build here: https://mci.10gen.com/build/mongodb_mongo_master_sanitize_ubuntu1404_debug_asan_5598c216ca28234735999ca25b3f6f9a030f51e6_14_12_03_17_59_14

The failure is in the C++ unit test for the lock manager:

https://mci.10gen.com/task/mongodb_mongo_master_sanitize_ubuntu1404_debug_asan_5598c216ca28234735999ca25b3f6f9a030f51e6_14_12_03_17_59_14_compile_ubuntu1404_debug_asan

http://buildlogs.mongodb.org/MCI_asan_ubuntu1404-debug-asan/builds/959/test/compile_0/lock_mgr_test

This test was passing under asan+lsan in commit 9872c67daf.

Bisecting 9872c67daf..master says:

6cab2a29c7dcb56ce132c200321bd1424f977f55 is the first bad commit
commit 6cab2a29c7dcb56ce132c200321bd1424f977f55
Author: Geert Bosch <geert@mongodb.com>
Date: Tue Dec 2 14:11:17 2014 -0500

SERVER-16067: Partition intent locks in the lock manager

:040000 040000 15ee981b633c5dcbc19b554269964b140f1c13de 46a2ef22d596320bb19dd36448620ef4efe65e33 M src



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

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-16407: Fix lock_mgr_test memory leak for ASAN build
Branch: master
https://github.com/mongodb/mongo/commit/6751cc2c645cd1976ecc729af881a5bc3b672c0e

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