[SERVER-16221] Support server builds under the undefined behavior sanitizer Created: 18/Nov/14  Updated: 26/Apr/16  Resolved: 19/Apr/16

Status: Closed
Project: Core Server
Component/s: Build, Diagnostics
Affects Version/s: None
Fix Version/s: 3.3.5

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 1
Labels: undefined-sanitizer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 13 (04/22/16)
Participants:

 Description   

While we currently offer support for building with the undefined behavior sanitizer, it doesn't currently work as a diagnostic tool, due to a few issues:

  • We haven't scrubbed all of the flagged issues, so we can't make it fail-fast yet.
  • Some libraries, especially those in third_party like v8, may issue diagnostics under ubsan that we either can't or don't want to address
  • Some implicit dependency cycles in the LIBDEPS graph cause linking errors when building with the undefined behavior sanitizer, but those edges cannot be made explicit because it trips the cycle detector.

This ticket exists to track work towards fixing these various issues so that we can get green fail-fast undefined behavior sanitizer builds up on the CI system.



 Comments   
Comment by Githook User [ 19/Apr/16 ]

Author:

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

Message: SERVER-16221 Enable UBSAN build and unittest
Branch: master
https://github.com/mongodb/mongo/commit/f2ec414e9c21f09fe7e5009efe00a8934743c0db

Comment by Githook User [ 19/Apr/16 ]

Author:

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

Message: SERVER-16221 Enterprise UBSAN compile fixes
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/8e2089900837a3604b38b68605ebea5a7d1eb921

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-22703 ObOpserver may be nullptr in tests
Branch: master
https://github.com/mongodb/mongo/commit/9f1b2799bf446d8aea806523a574878fcfa6be62

Comment by Githook User [ 15/Apr/16 ]

Author:

{u'username': u'judahschvimer', u'name': u'Judah Schvimer', u'email': u'judah@mongodb.com'}

Message: Revert "SERVER-16221 SERVER-22703 ObOpserver may be nullptr in tests"

This reverts commit 716e0fa71c1e75fe5e0c791993f175f6b6407b39.
Branch: master
https://github.com/mongodb/mongo/commit/63d021f4107f4e48aa3c76629dd6dbd6abecb8e3

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23713 Blacklist subset of aggregation that has numeric UB
Branch: master
https://github.com/mongodb/mongo/commit/5b177d096afbf77d322cbdbba5b9b5db075ca92c

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23710 Result of fromHex must be cast before becoming a BinDataType
Branch: master
https://github.com/mongodb/mongo/commit/177d955e1e47535141edfb6205ba8fd7004b2aa2

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23712 Aggregation unit tests should not rely on signed overflow
Branch: master
https://github.com/mongodb/mongo/commit/ce3bc4719ce77a82ed179ac15934e47767cfda8c

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-22706 Don't negate integral minima in KeyString test
Branch: master
https://github.com/mongodb/mongo/commit/0656cf72fe049204a1cc13991953cd7682411792

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23710 BinDataType should be read as unsigned in Value
Branch: master
https://github.com/mongodb/mongo/commit/c1fcce5c1e5ed72c634c5a6d0deaa373b1960839

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-22712 Don't form invalid FailPoint::Mode values
Branch: master
https://github.com/mongodb/mongo/commit/001b19777899b65a8c9227c64efa3f370921cbb1

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23711 Don't attempt to coerce non-normal double to int
Branch: master
https://github.com/mongodb/mongo/commit/53ca7d82c8203f85ca846fa6ece37257b0ec6717

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-22703 ObOpserver may be nullptr in tests
Branch: master
https://github.com/mongodb/mongo/commit/716e0fa71c1e75fe5e0c791993f175f6b6407b39

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23709 Fix out of bounds array access in ValueStorage dassert
Branch: master
https://github.com/mongodb/mongo/commit/1261405f121b0d3dfe28e2ee04e425de0c118cea

Comment by Githook User [ 15/Apr/16 ]

Author:

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

Message: SERVER-16221 SERVER-23708 Remove invalid cast in DocumentSource test
Branch: master
https://github.com/mongodb/mongo/commit/54cf694d82050cc695f826fdc6d0b063a157682c

Comment by Githook User [ 17/Feb/16 ]

Author:

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

Message: SERVER-16221 Improve support for running with ubsan
Branch: master
https://github.com/mongodb/mongo/commit/75dfb6a2597d84a8828c9e683449c2f66e1e0420

Comment by Githook User [ 18/Nov/14 ]

Author:

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

Message: SERVER-16221 Add a missing dependency edge exposed by ubsan
Branch: master
https://github.com/mongodb/mongo/commit/5cd68e1a6846ebdd07e5a75753108baab2e4af11

Comment by Githook User [ 18/Nov/14 ]

Author:

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

Message: SERVER-16221 Don't instrument third_party when using ubsan
Branch: master
https://github.com/mongodb/mongo/commit/eb1dc0918fc0a964ed7dbff31a0b815d0081e14c

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