[SERVER-18597] Add support for dumping ASan code coverage data Created: 20/May/15  Updated: 19/Sep/15  Resolved: 26/May/15

Status: Closed
Project: Core Server
Component/s: Internal Code, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.4

Type: Improvement Priority: Minor - P4
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-18893 Re-enable ASan coverage support Closed
is related to SERVER-18440 Can't pass -fsanitize-coverage to sco... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

ASan can be configured to provide code coverage information since at least clang-3.4. quickExit needs to be modified to write the coverage information to disk before exiting.

Version reference:

Version CCFLAGS
3.4 -fsanitize=address -mllvm -asan-coverage=1
3.5 -fsanitize=address -mllvm -asan-coverage=1
3.6 -fsanitize=address -fsanitize-coverage=1
3.7 -fsanitize=address -fsanitize-coverage=func


 Comments   
Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: Revert "SERVER-18597 Add support for writing ASan code coverage data on exit"

This reverts commit 6fc1d7c617db0f9da9100f4ed3c929f0d76567b1.

JS-test tasks for the ASan build are failing with this error:

CHECK failed: sanitizer_common.h:323 "((initial_capacity)) > ((0))" (0x0, 0x0)
Branch: master
https://github.com/mongodb/mongo/commit/e5f22add58bb3daed24e5a5787fddafec4de17ea

Comment by Githook User [ 26/May/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: SERVER-18597 Add support for writing ASan code coverage data on exit

The coverage data is only written when the appropriate compiler flags
are passed (-mllvm -asan-coverage for clang-3.4 and clang-3.5,
-fsanitize-coverage for clang-3.6 and clang-3.7) and coverage options
are specified in ASAN_OPTIONS.
Branch: master
https://github.com/mongodb/mongo/commit/6fc1d7c617db0f9da9100f4ed3c929f0d76567b1

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