Odd ubsan issue when building on macOS
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- macos, shell
- Domain
- build-system, operating-systems
Research direction
Start with fuzzbuild.sh and the generic arguments shown in the issue, then reproduce by launching out/fuzzbuild/d8 from the build directory and from another working directory on macOS. The work is done when d8 no longer fails to locate libclang_rt.ubsan_osx_dynamic.dylib when launched outside out/fuzzbuild/.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Swift
- Stars
- 2.3k
- Forks
- 367
- Avg merge
- 23h 53m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleprojectzero/fuzzilli
-
Crash Open
Difficulty 4/5 3-5 days Newbie friendliness 38/100
googleprojectzero/fuzzilli#556 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
googleprojectzero/fuzzilli#555 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
googleprojectzero/fuzzilli#552 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
googleprojectzero/fuzzilli#551 · 1 comment ·
-
NJS Fuzz BUILD Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
googleprojectzero/fuzzilli#548 · 1 comment ·
All issues in googleprojectzero/fuzzilli
Similar issues
-
🎉 Add KinetTask Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
jaywcjlove/awesome-mac#2932 ·
-
tvOS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
skiptools/skip-fuse-ui#147 ·
-
area:collectors P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
catehstn/social-brain-app#183 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100