[SERVER-47312] Run hang_analyzer.py via assert.soon() without calling gcore on ASan builders Created: 02/Apr/20  Updated: 29/Oct/23  Resolved: 05/Jun/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.4.0-rc9

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Richard Samuels (Inactive)
Resolution: Fixed Votes: 0
Labels: bkp, tig-hanganalyzer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-45884 Don't run the hang analyzer on ASAN b... Closed
is related to SERVER-29886 Hang analyzer shouldn't produce core ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: STM 2020-06-15
Participants:
Story Points: 3

 Description   

The changes from e89c041 as part of SERVER-45884 disabled running the hang analyzer on ASan build variant (i.e. builders using --sanitize=address) via assert.soon() due to gcore not respecting the madvise() settings on the 20TB of shadow memory. This had come up previously in SERVER-29886 for the "timeout" phase in the etc/evergreen.yml project configuration and was resolved by running hang_analyzer.py without the -c option in order to avoid producing core dumps.

We could similarly have the mongo shell omit the c option when running hang_analyzer.py. On a related note - the mongo shell offers an _isAddressSanitizerActive() function which returns true if it was compiled with -sanitize=address (we generally assume the server binaries have the same build flags), so we should consider removing TestData.isAsanBuild to avoid there being two ways of expressing the same thing.

Add a test to check that the hang_analyzer still runs on ASan without dumping core.



 Comments   
Comment by Githook User [ 05/Jun/20 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.samuels@mongodb.com', 'username': 'richardsamuels'}

Message: SERVER-47312 hang_analyzer: enable on ASAN builders without running gcore

(cherry picked from commit 38b125fc08c34b67aedf04d47a77c0dda45a7b89)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d57593228bcda502ea4f652eadf7c13d2b3e2c4c

Comment by Githook User [ 05/Jun/20 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.samuels@mongodb.com', 'username': 'richardsamuels'}

Message: SERVER-47312 hang_analyzer: enable on ASAN builders without running gcore
Branch: master
https://github.com/mongodb/mongo/commit/38b125fc08c34b67aedf04d47a77c0dda45a7b89

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