[SERVER-77772] ASAN crashes on 5.0 with v3 clang Created: 02/Jun/23  Updated: 06/Jun/23  Resolved: 06/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Daniel Moody Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Operating System: ALL
Steps To Reproduce:

git checkout v5.0
/buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --ninja generate-ninja ICECC=icecc CCACHE=ccache --modules="" --dbg=on --opt=off --link-model=dynamic --sanitize=address --allocator=system NINJA_PREFIX=asan VARIANT_DIR=asandebug
ninja -f asan.ninja -j400 +executor_test

Participants:

 Description   

It appears there was some bug in our v3 clang ASAN which prevents this from happening: https://github.com/llvm/llvm-project/issues/55785. It seems related to this GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114.

The GCC bug was fixed and backported and the fix exists in our v3 gcc but not v3 clang. V4 clang has similar changes that represent the fix. Possibly we could backport some fix.

The workaround is use_sigaltstack=false in ASAN_OPTIONS.



 Comments   
Comment by Alex Neben [ 06/Jun/23 ]

This is a real bug but the workaround is simple enough that I don't think we are going to go through the work or backporting and creating a new toolchain for this.

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