Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Issue 1818273002: [libfuzzer] supporting libfuzzer on mac with asan (Closed)

Created:
4 years, 9 months ago by aizatsky
Modified:
4 years, 7 months ago
CC:
chromium-reviews, kjellander_chromium, pbos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Experimental support for fuzzing on mac. BUG=597066 Committed: https://crrev.com/e9aba58f6cbfee6fec2af0ec4832a3c23ec66b9f Cr-Commit-Position: refs/heads/master@{#383389}

Patch Set 1 #

Patch Set 2 : review #

Patch Set 3 : cleanup #

Patch Set 4 : cleanup #

Patch Set 5 : moved dynamic library copy #

Total comments: 8

Patch Set 6 : wrapping copy in if (is_mac) #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -5 lines) Patch
M BUILD.gn View 2 chunks +7 lines, -2 lines 0 comments Download
M build/config/sanitizers/BUILD.gn View 1 2 3 4 5 3 chunks +24 lines, -1 line 3 comments Download
M build/config/sanitizers/sanitizers.gni View 1 1 chunk +2 lines, -2 lines 0 comments Download
M testing/libfuzzer/BUILD.gn View 1 1 chunk +10 lines, -0 lines 0 comments Download
M testing/libfuzzer/fuzzer_test.gni View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
aizatsky
4 years, 9 months ago (2016-03-23 18:02:14 UTC) #4
Dirk Pranke
lgtm
4 years, 9 months ago (2016-03-23 19:08:30 UTC) #5
Alexander Potapenko
LGTM + a couple of questions. https://codereview.chromium.org/1818273002/diff/80001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1818273002/diff/80001/BUILD.gn#newcode1 BUILD.gn:1: # Copyright (c) ...
4 years, 9 months ago (2016-03-24 21:58:43 UTC) #6
aizatsky
https://codereview.chromium.org/1818273002/diff/80001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1818273002/diff/80001/BUILD.gn#newcode1 BUILD.gn:1: # Copyright (c) 2013 The Chromium Authors. All rights ...
4 years, 9 months ago (2016-03-24 22:31:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818273002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818273002/80001
4 years, 9 months ago (2016-03-25 21:13:55 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/149272)
4 years, 9 months ago (2016-03-25 21:33:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1818273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1818273002/100001
4 years, 9 months ago (2016-03-25 21:59:35 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-25 22:37:28 UTC) #16
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/e9aba58f6cbfee6fec2af0ec4832a3c23ec66b9f Cr-Commit-Position: refs/heads/master@{#383389}
4 years, 9 months ago (2016-03-25 22:39:27 UTC) #18
Alexander Potapenko
Mike, Henrik and Peter say trybots can't find asan_osx_dynamic.dylib (see https://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_rel/builds/8169/steps/compile/logs/stdio) Looks like the path ...
4 years, 8 months ago (2016-03-30 11:05:00 UTC) #19
kjellander_chromium
https://codereview.chromium.org/1818273002/diff/100001/build/config/sanitizers/BUILD.gn File build/config/sanitizers/BUILD.gn (right): https://codereview.chromium.org/1818273002/diff/100001/build/config/sanitizers/BUILD.gn#newcode311 build/config/sanitizers/BUILD.gn:311: "//third_party/llvm-build/Release+Asserts/compiler-rt/lib/darwin/libclang_rt.asan_osx_dynamic.dylib", On 2016/03/30 11:05:00, Alexander Potapenko wrote: > This ...
4 years, 8 months ago (2016-03-30 14:25:08 UTC) #21
kjellander_chromium
4 years, 8 months ago (2016-03-31 15:06:24 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1847803003/ by kjellander@chromium.org.

The reason for reverting is: I've spent a fair amount of time trying to debug
this and come up with a workaround for us. 
Our bot
(https://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_rel/builds/8218/)
doesn't have ASan enabled do I don't even see why we're hit by the error we're
seeing.

I'll revert this for now waiting for the correct fix since there were several
problems with this CL.

FYI: I'm also unable to locate the tsan and ubsan libraries in LLVM: my checkout
only has the asan one:
$ find third_party/llvm-build/Release+Asserts/ -name libclang* 
third_party/llvm-build/Release+Asserts//lib/clang/3.9.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
third_party/llvm-build/Release+Asserts//lib/clang/3.9.0/lib/darwin/libclang_rt.profile_osx.a
.

Powered by Google App Engine
This is Rietveld 408576698