fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

Odd ubsan issue when building on macOS

Open ghost opened this issue 5 months ago • 0 comments

I've noticed that when building d8 on macOS using the generic fuzzbuild.sh args. 'is_debug=false dcheck_always_on=true v8_static_library=true v8_enable_verify_heap=true v8_fuzzilli=true sanitizer_coverage_flags="trace-pc-guard" target_cpu="x64"' It tries to statically load a ubsan library via a ../../ path which works fine when d8 is launched from <v8>/out/fuzzbuild/ but fails when launching from anywhere else.

 % ~/project/v8/out/fuzzbuild/d8
dyld[30191]: Library not loaded: @rpath/libclang_rt.ubsan_osx_dynamic.dylib
  Referenced from: <4C4C4449-5555-3144-A1CD-576D2F414F8F> /Users/emma/project/v8/out/fuzzbuild/d8
  Reason: tried: '/Users/emma/project/v8/out/fuzzbuild/libclang_rt.ubsan_osx_dynamic.dylib' (no such file), '../../third_party/llvm-build/Release+Asserts/lib/clang/21/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib' (no such file), '/Users/emma/project/v8/out/fuzzbuild/libclang_rt.ubsan_osx_dynamic.dylib' (no such file), '../../third_party/llvm-build/Release+Asserts/lib/clang/21/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib' (no such file)
zsh: abort      ~/project/v8/out/fuzzbuild/d8

I've temporarily solved this problem by copying third_party to ~/ and then launching fuzzilli from two nested folders. Not sure why this occurring though

ghost avatar Jul 03 '25 16:07 ghost