While investigating WT-14121, I detected a Clang error when running our ASAN tests. The build currently fails during compilation, and the error message is included below.
I first tried limiting the number of parallel jobs to one based on online suggestions, but the build still failed with the same error. To speed up debugging, I worked with jeremy.thorp@mongodb.com on a spawn host instead of using Evergreen. We mimicked the Evergreen environment by setting up the files and paths matching with the Clang command, then running this build command to see if we can reproduce the failure.
To narrow down the issue, we started removing individual compiler flags one by one. After testing different configurations, we found that removing `-fsanitize=address` allows the build to compile successfully, regardless of what other flags are present. This makes it pretty clear that the issue is related to ASAN configuration.
At this point, we’re also wondering if this could be a compiler bug as the output from the compiler suggests "PLEASE submit a bug report" (see failure logs in the comment below).
- blocks
-
SERVER-101114 Installed v5 toolchain ASAN can't compile passing a local array to a function
-
- Closed
-
- related to
-
SERVER-101114 Installed v5 toolchain ASAN can't compile passing a local array to a function
-
- Closed
-