[SERVER-80153] UBsan core dumps are not being uploaded properly Created: 16/Aug/23  Updated: 29/Oct/23  Resolved: 21/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.1

Type: Bug Priority: Major - P3
Reporter: Trevor Guidry Assignee: Trevor Guidry
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-72356 llvm symbolizer broke with v4 Closed
Related
related to SERVER-81123 Hang analyzer is attempting to genera... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Participants:
Linked BF Score: 0

 Description   

Resmoke sets the "take core dump" flag for the hang analyzer when `ASAN_OPTIONS` is not set to avoid taking core dumps on asan because of shadow memory.

https://github.com/10gen/mongo/blob/2a0652d07064e8078d089f9e3924e2f4a0feb158/buildscripts/resmokelib/sighandler.py#L160

 

However, we share our sanatizer options between asan, aubsan, and ubsan so this is always set for our ubsan variants currently https://github.com/mongodb/mongo/blob/6888a1472e002d9e1fe741a670261b28e45b2ab7/etc/evergreen.yml#L2084

 

We also check for `ASAN_OPTIONS` here https://github.com/mongodb/mongo/blob/2a0652d07064e8078d089f9e3924e2f4a0feb158/buildscripts/resmokelib/testing/hooks/cleanup.py#L23-L24 which restarts the test fixture more often which isn't needed on UBSan because we don't be doing leak detection without ASan

 

Original slack thread: https://mongodb.slack.com/archives/C0V79S1PY/p1692207555012019



 Comments   
Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com', 'username': ''}

Message: SERVER-80153 set ubsan options individually
Branch: v7.0
https://github.com/mongodb/mongo/commit/1ad521b9ad10cbb3f08b22692b27382b3ab4b660

Comment by Githook User [ 21/Aug/23 ]

Author:

{'name': 'Trevor Guidry', 'email': 'trevor.guidry@mongodb.com', 'username': ''}

Message: SERVER-80153 set ubsan options individually
Branch: master
https://github.com/mongodb/mongo/commit/b8f2f954dd79b3734f789fb971c03d156658311d

Generated at Thu Feb 08 06:42:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.