New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 618534 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug

Blocked on:
issue 621972

Blocking:
issue 432959
issue 605732



Sign in to add a comment

ClangToTLinuxUBSanVptr fails to compile due to unused argument warning for -fsanitize=edge

Project Member Reported by r...@chromium.org, Jun 9 2016

Issue description

https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr/builds/1994/steps/compile/logs/stdio
FAILED: obj/third_party/mesa/mesa/enums.o 
...
clang-3.9: error: argument unused during compilation: '-fsanitize-coverage=edge'

The change could have happened anywhere between these builds:
https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr/builds/1875
https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr/builds/1953

That's a big range, due to the -Wnon-portable-include dance. I'm hoping somebody knows about related changes in this area and can diagnose it before I take the time to look further.
 
Labels: -Pri-3 Pri-2
Owner: krasin@chromium.org
Status: Assigned (was: Untriaged)
I will take a look a this issue tomorrow.
Thank you for filing it.

Comment 2 by krasin@chromium.org, Jun 10 2016

Looking...

Comment 3 by krasin@chromium.org, Jun 10 2016

It works for me locally:

$ gn gen //out/gn-vptr '--args=is_ubsan_vptr=true is_ubsan_no_recover=true is_debug=false is_component_build=false symbol_level=1 dcheck_always_on=true' --check
$ ninja -C out/gn-vptr/ all

For some reason, the bot has different gn flags:

Writing """\
clang_use_chrome_plugins = false
is_clang = true
is_component_build = false
is_debug = false
is_ubsan_no_recover = true
is_ubsan_vptr = true
llvm_force_head_revision = true
sanitizer_coverage_flags = "edge"
""" to /b/build/slave/ClangToTLinuxUBSanVptr/build/src/out/Release/args.gn.

I don't see a reason to have sanitizer_coverage_flags = "edge" on the bot.

Comment 4 by krasin@chromium.org, Jun 10 2016

The last related change was https://codereview.chromium.org/2000413002 (flipping the bot to GN), and the GYP bot supposedly had this flag set.

Comment 5 by krasin@chromium.org, Jun 10 2016

It does not fail on GYP, because -fsanitize-coverage= flags are filtered for mesa: https://cs.chromium.org/chromium/src/third_party/mesa/mesa.gyp?dr=C&q=file:mesa+file:gyp+sani&sq=package:chromium&l=85

In GN, it only filters out -fsanitize=vptr, as some mesa code is compiled w/o rtti.

I am trying to understand:

1. If we actually want to do that in GN
2. Why does it actually complain about the unused arg

Comment 6 by krasin@chromium.org, Jun 10 2016

... and I have lost a connection to my desktop. Great!

Comment 7 by thakis@chromium.org, Jun 13 2016

Blocking: 605732
This is blocking switching the lkgr waterfall to gn.

Comment 8 by krasin@chromium.org, Jun 13 2016

The CL has been out for a while: https://codereview.chromium.org/2055323002/

Comment 9 by krasin@chromium.org, Jun 13 2016

Cc: och...@chromium.org mmoroz@chromium.org mbarbe...@chromium.org infe...@chromium.org
+ClusterFuzz folks

Do you need -fsanitize-coverage=edge on the UBSan bots? If yes, how is it used? I am somewhat confused.
Sanitizer coverage is used on all sanitizer bots (including ubsan ones) to show coverage data in dashboard - https://cluster-fuzz.appspot.com/#coverage
Thank you, Abhishek!

It seems to me that -fsanitize-coverage=edge should not require to specify at least one sanitizer, like it does now.
Owner: ----
Status: Available (was: Assigned)
Sorry, I didn't have time to work on this today, and it seems that I am out for 3 weeks.

There're a few other hanging ends for me, but they are mostly fixes under review, and I hope to push them. On this one, I declare a bankruptcy.

Comment 13 by euge...@google.com, Jun 13 2016

Owner: euge...@chromium.org
Status: Started (was: Available)
I guess I'll take this as this week's ToT sheriff.

Comment 14 by euge...@google.com, Jun 14 2016

http://reviews.llvm.org/rL272717 should fix this, we'll see the result on the ToT bots soon.

Blocking: 432959
The bot has been green for a while now: https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr/builds/2311

Thank you, Evgenii for fixing it!
Status: Fixed (was: Started)
Guess we should roll clang soon. Eugenis should we wait for your send() interpose patch, or will that take a while? (Or maybe it already landed and I missed it?)

Comment 19 by euge...@google.com, Jun 16 2016

I have not worked on the send() yet. It should not take long, let my try.
Status: Started (was: Fixed)
Apparently this'll still break on the chromium.lkgr builders, since we haven't rolled clang yet ( bug 621581 ). Re-opening ...
Blockedon: 621972
Status: Fixed (was: Started)
This is fixed: https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr

Thx, Eugenii!

Sign in to add a comment