[SERVER-15505] When address sanitizer is active dump leaks before calling _exit Created: 02/Oct/14  Updated: 25/Oct/14  Resolved: 03/Oct/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.8

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-15504 Flow all _exit calls through an inter... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently the leak detection component of address sanitizer doesn't work because it doesn't dump leaks on calls to _exit. When SERVER-15504 is resolve, we can inject a call to __lsan_do_leak_check in our shim function that invokes _exit for us and get leak detection in the server.



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

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-15505 fix namespacing issue
Branch: master
https://github.com/mongodb/mongo/commit/69b34ef4b9fb1d7c3da37d62badc8b19b5757253

Comment by Githook User [ 03/Oct/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-15505 When asan is active dump leaks before a hard exit
Branch: master
https://github.com/mongodb/mongo/commit/68bdc94707b4541cf20a92d5460c08301c54fa45

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