[Bug 275892] Adding -fsanitize=fuzzer,a ddress on main-amd64-default causes the link failure: ld: error: undefined symbol: __sanit izer::ThreadArgRetval::GetAllPtrsLocked(__san itizer::InternalMmapVector<unsigned long>*)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Dec 2023 19:59:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275892

            Bug ID: 275892
           Summary: Adding -fsanitize=fuzzer,address on main-amd64-default
                    causes the link failure: ld: error: undefined symbol:
                    __sanitizer::ThreadArgRetval::GetAllPtrsLocked(__sanit
                    izer::InternalMmapVector<unsigned long>*)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

The port www/wabt (version 1.0.33_1) builds the executable wasm2wat-fuzz with
-fsanitize=fuzzer,address.

The build fails on main-amd64-default:

> /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wold-style-cast -fno-exceptions -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG -fstack-protector-strong -L/usr/local/lib    -fsanitize=fuzzer,address CMakeFiles/wasm2wat-fuzz.dir/src/tools/wasm2wat-fuzz.cc.o -o wasm2wat-fuzz  -Wl,-rpath,/wrkdirs/usr/ports/www/wabt/work/.build:  libwabt-fuzz.so  libwabt.so  /usr/lib/libcrypto.so && :
> ld: error: undefined symbol: __sanitizer::ThreadArgRetval::GetAllPtrsLocked(__sanitizer::InternalMmapVector<unsigned long>*)


Log:
https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p95fa05afac27_seac3646fcd/logs/wabt-1.0.33_1.log

-- 
You are receiving this mail because:
You are the assignee for the bug.