[SERVER-25488] Add shell function that reports UBSan status Created: 08/Aug/16  Updated: 19/Nov/16  Resolved: 15/Sep/16

Status: Closed
Project: Core Server
Component/s: Shell, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-25188 Add non-debug UBSan variant for jstes... Closed
Backwards Compatibility: Fully Compatible
Sprint: TIG 2016-09-19
Participants:
Linked BF Score: 0

 Description   

The shell has an _isAddressSanitizerActive function that reports whether the shell has been compiled with ASan flags.

We should have a similar function for UBSan to make it easier to blacklist parts of tests that trigger undefined behavior. This will allow us to add fuzzer builds to the UBSan variant earlier.



 Comments   
Comment by Githook User [ 15/Sep/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-25488 __sanitizeMatch needs a check for null
Branch: master
https://github.com/mongodb/mongo/commit/24c134c4fc2117c893f44902876a7ca329dccef5

Comment by Githook User [ 15/Sep/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-25488 fixed lint
Branch: master
https://github.com/mongodb/mongo/commit/2c44906471c2bab952bb14f662fcb24c8c644872

Comment by Githook User [ 15/Sep/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-25488 Added JavaScript funciton to mongo shell to check for sanitizer builds
_isAddressSanitizerActive()
_isLeakSanitizerActive()
_isThreadSanitizerActive()
_isUndefinedBehaviorSanitizerActive()
Branch: master
https://github.com/mongodb/mongo/commit/d0d28ea7b664cf1fefbc33fe4751e0a70d29b7fa

Comment by Jonathan Abrahams [ 09/Sep/16 ]

So far I have not been able to find a macro that provides this information. This question has been posted to Stack overflow.

Generated at Thu Feb 08 04:09:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.