[SERVER-48887] C++ death tests should fail on TSAN exit code Created: 16/Jun/20  Updated: 29/Oct/23  Resolved: 03/Jul/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: thread-sanitizer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2020-06-29, Security 2020-07-13
Participants:

 Description   

If a fork() child of a death test fails due to a thread sanitizer failure, it is only detected as a failure due to SERVER-48661.

Since tests are typically run as follows:
TSAN_OPTIONS="suppressions=etc/tsan.suppressions:halt_on_error=1" ./cpp_unit_test

we should instead assert the child exit code is not 66 (default TSAN exit code).



 Comments   
Comment by Githook User [ 03/Jul/20 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-48887 C++ death tests should fail on TSAN exit code
Branch: master
https://github.com/mongodb/mongo/commit/bf36c726bd2befb026236b10c962e5cb55bceadc

Generated at Thu Feb 08 05:18:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.