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

Issue 891320 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocked on:
issue 891181

Blocking:
issue 891322



Sign in to add a comment

Coverage: Failed to compile components/viz/host/hit_test/hit_test_query.cc with coverage intrumentation

Project Member Reported by liaoyuke@chromium.org, Oct 2

Issue description

Clang++ fails to compile components/viz/host/hit_test/hit_test_query.cc with coverage instrumentation, and this is causing a lot of test targets fail to build, such as unit_tests, browser_tests.

I'll investigate this issue some time this week.
 
Detailed errors:

ninja: Entering directory `out/coverage/'
[9828/33644] CXX obj/components/viz/host/host/hit_test_query.o
FAILED: obj/components/viz/host/host/hit_test_query.o
/usr/local/google/home/liaoyuke/goma/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/components/viz/host/host/hit_test_query.o.d -DVIZ_HOST_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DDCHECK_ALWAYS_ON=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DCLANG_COVERAGE -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"343342-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DCR_LIBCXX_REVISION=332543 -DCR_LIBCXXABI_REVISION=331450 -DCR_SYSROOT_HASH=815a8c22f8657fe57d02e2c2d893bcdc25a243cf -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DWEBP_EXTERN=extern -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DANGLE_ENABLE_RELEASE_ASSERTS -DVK_NO_PROTOTYPES -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSKCMS_API=__attribute__\(\(visibility\(\"default\"\)\)\) -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DPROTOBUF_USE_DLLS -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_SHARED_LIBRARY -I../.. -Igen -I../../third_party/khronos -I../../gpu -I../../third_party/libwebp/src -I../../third_party/libyuv/include -I../../third_party/vulkan/include -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/docs -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/include/codec -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/ced/src -I../../third_party/protobuf/src -I../../third_party/libwebm/source -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/mesa_headers -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -fcomplete-member-pointers -m64 -march=x86-64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fprofile-instr-generate -fcoverage-mapping -mllvm -limited-coverage-experimental=true -fno-use-cxa-atexit -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang enforce-in-thirdparty-webkit -Xclang -plugin-arg-find-bad-constructs -Xclang check-enum-max-value -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0 -isystem../../build/linux/debian_sid_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-shorten-64-to-32 -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fvisibility-inlines-hidden -c ../../components/viz/host/hit_test/hit_test_query.cc -o obj/components/viz/host/host/hit_test_query.o
clang++: /b/swarming/w/ir/kitchen-workdir/src/third_party/llvm/tools/clang/lib/CodeGen/CoverageMappingGen.cpp:592: void (anonymous namespace)::CounterCoverageMappingBuilder::popRegions(size_t): Assertion `SpellingRegion(SM, Region).isInSourceOrder()' failed.
Stack dump:
0.	Program arguments: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name hit_test_query.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -fmerge-all-constants -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -fprofile-instrument=clang -fcoverage-mapping -coverage-notes-file /usr/local/google/home/liaoyuke/chromium/src/out/coverage/obj/components/viz/host/host/hit_test_query.gcno -nostdinc++ -resource-dir ../../third_party/llvm-build/Release+Asserts/lib/clang/8.0.0 -dependency-file obj/components/viz/host/host/hit_test_query.o.d -MT obj/components/viz/host/host/hit_test_query.o -isystem ../../build/linux/debian_sid_amd64-sysroot/usr/include/glib-2.0 -isystem ../../build/linux/debian_sid_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem ../../buildtools/third_party/libc++/trunk/include -isystem ../../buildtools/third_party/libc++abi/trunk/include -D VIZ_HOST_IMPLEMENTATION -D V8_DEPRECATION_WARNINGS -D DCHECK_ALWAYS_ON=1 -D USE_UDEV -D USE_AURA=1 -D USE_GLIB=1 -D USE_NSS_CERTS=1 -D USE_X11=1 -D CLANG_COVERAGE -D FULL_SAFE_BROWSING -D SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D _GNU_SOURCE -D CR_CLANG_REVISION="343342-1" -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D COMPONENT_BUILD -D CR_LIBCXX_REVISION=332543 -D CR_LIBCXXABI_REVISION=331450 -D CR_SYSROOT_HASH=815a8c22f8657fe57d02e2c2d893bcdc25a243cf -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -D GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -D WEBP_EXTERN=extern -D GL_GLEXT_PROTOTYPES -D USE_GLX -D USE_EGL -D ANGLE_ENABLE_RELEASE_ASSERTS -D VK_NO_PROTOTYPES -D SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -D SK_HAS_PNG_LIBRARY -D SK_HAS_WEBP_LIBRARY -D SK_HAS_JPEG_LIBRARY -D SK_VULKAN_HEADER="../../skia/config/SkVulkanConfig.h" -D SK_VULKAN=1 -D SKIA_DLL -D GR_GL_IGNORE_ES3_MSAA=0 -D SKCMS_API=__attribute__((visibility("default"))) -D SK_SUPPORT_GPU=1 -D SK_GPU_WORKAROUNDS_HEADER="gpu/config/gpu_driver_bug_workaround_autogen.h" -D VK_NO_PROTOTYPES -D U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0 -D USE_CHROMIUM_ICU=1 -D ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -D UCHAR_TYPE=uint16_t -D GOOGLE_PROTOBUF_NO_RTTI -D GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -D HAVE_PTHREAD -D PROTOBUF_USE_DLLS -D LEVELDB_PLATFORM_CHROMIUM=1 -D LEVELDB_PLATFORM_CHROMIUM=1 -D LEVELDB_SHARED_LIBRARY -I ../.. -I gen -I ../../third_party/khronos -I ../../gpu -I ../../third_party/libwebp/src -I ../../third_party/libyuv/include -I ../../third_party/vulkan/include -I ../../skia/config -I ../../skia/ext -I ../../third_party/skia/include/c -I ../../third_party/skia/include/config -I ../../third_party/skia/include/core -I ../../third_party/skia/include/docs -I ../../third_party/skia/include/effects -I ../../third_party/skia/include/encode -I ../../third_party/skia/include/gpu -I ../../third_party/skia/include/pathops -I ../../third_party/skia/include/ports -I ../../third_party/skia/include/utils -I ../../third_party/vulkan/include -I ../../third_party/skia/third_party/vulkanmemoryallocator -I ../../third_party/skia/include/codec -I ../../third_party/skia/src/gpu -I ../../third_party/skia/src/sksl -I ../../third_party/skia/modules/skottie/include -I ../../third_party/vulkan/include -I ../../third_party/icu/source/common -I ../../third_party/icu/source/i18n -I ../../third_party/ced/src -I ../../third_party/protobuf/src -I ../../third_party/libwebm/source -I ../../third_party/protobuf/src -I gen/protoc_out -I ../../third_party/leveldatabase -I ../../third_party/leveldatabase/src -I ../../third_party/leveldatabase/src/include -I ../../third_party/mesa_headers -D __DATE__= -D __TIME__= -D __TIMESTAMP__= -isysroot ../../build/linux/debian_sid_amd64-sysroot -internal-isystem ../../build/linux/debian_sid_amd64-sysroot/usr/local/include -internal-isystem ../../third_party/llvm-build/Release+Asserts/lib/clang/8.0.0/include -internal-externc-isystem ../../build/linux/debian_sid_amd64-sysroot/usr/include/x86_64-linux-gnu -internal-externc-isystem ../../build/linux/debian_sid_amd64-sysroot/include -internal-externc-isystem ../../build/linux/debian_sid_amd64-sysroot/usr/include -O2 -Wno-builtin-macro-redefined -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shorten-64-to-32 -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /usr/local/google/home/liaoyuke/chromium/src/out/coverage -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread -stack-protector 1 -stack-protector-buffer-size 4 -fno-rtti -fno-use-cxa-atexit -fobjc-runtime=gcc -Qn -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -instcombine-lower-dbg-declare=0 -load ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs enforce-in-thirdparty-webkit -plugin-arg-find-bad-constructs check-enum-max-value -plugin-arg-find-bad-constructs check-ipc -mllvm -limited-coverage-experimental=true -o obj/components/viz/host/host/hit_test_query.o -x c++ ../../components/viz/host/hit_test/hit_test_query.cc -fcomplete-member-pointers -faddrsig
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	../../components/viz/host/hit_test/hit_test_query.cc:33:19: Generating code for declaration 'viz::(anonymous namespace)::GetFlagNames'
#0 0x0000000002128564 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2128564)
#1 0x000000000212642e llvm::sys::RunSignalHandlers() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x212642e)
#2 0x0000000002128722 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2128722)
#3 0x00007f37223f30c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x00007f37211aefcf gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x32fcf)
#5 0x00007f37211b03fa abort (/lib/x86_64-linux-gnu/libc.so.6+0x343fa)
#6 0x00007f37211a7e37 (/lib/x86_64-linux-gnu/libc.so.6+0x2be37)
#7 0x00007f37211a7ee2 (/lib/x86_64-linux-gnu/libc.so.6+0x2bee2)
#8 0x000000000240f9d7 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240f9d7)
#9 0x000000000240bc95 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240bc95)
#10 0x0000000002411585 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2411585)
#11 0x000000000240c58f (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240c58f)
#12 0x000000000240d11a (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240d11a)
#13 0x0000000002411585 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2411585)
#14 0x000000000240bc76 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240bc76)
#15 0x000000000240d450 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240d450)
#16 0x0000000002411585 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2411585)
#17 0x000000000240bc76 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240bc76)
#18 0x000000000240a02a clang::CodeGen::CoverageMappingGen::emitCounterMapping(clang::Decl const*, llvm::raw_ostream&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x240a02a)
#19 0x00000000023e6770 clang::CodeGen::CodeGenPGO::emitCounterRegionMapping(clang::Decl const*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x23e6770)
#20 0x00000000023e63d0 clang::CodeGen::CodeGenPGO::assignRegionCounters(clang::GlobalDecl, llvm::Function*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x23e63d0)
#21 0x00000000023926c4 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x23926c4)
#22 0x00000000023ae4c7 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x23ae4c7)
#23 0x00000000023a6b15 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x23a6b15)
#24 0x000000000239d635 clang::CodeGen::CodeGenModule::EmitDeferred() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x239d635)
#25 0x000000000239cab9 clang::CodeGen::CodeGenModule::Release() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x239cab9)
#26 0x0000000002b571e4 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2b571e4)
#27 0x0000000002b54387 (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x2b54387)
#28 0x00000000027f9d1c clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x27f9d1c)
#29 0x0000000003352303 clang::ParseAST(clang::Sema&, bool, bool) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x3352303)
#30 0x00000000027c22e0 clang::FrontendAction::Execute() (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x27c22e0)
#31 0x000000000276a971 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x276a971)
#32 0x00000000028649db clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x28649db)
#33 0x00000000008e04a4 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8e04a4)
#34 0x00000000008ddca5 main (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8ddca5)
#35 0x00007f372119c2b1 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#36 0x00000000008dacad _start (../../third_party/llvm-build/Release+Asserts/bin/clang+++0x8dacad)
clang++: error: unable to execute command: Aborted
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 8.0.0 (trunk 343342)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: ../../third_party/llvm-build/Release+Asserts/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/hit_test_query-778dd3.cpp
clang++: note: diagnostic msg: /tmp/hit_test_query-778dd3.sh
clang++: note: diagnostic msg:
Blocking: 891322
Cc: h...@chromium.org thakis@chromium.org r...@chromium.org
This is pretty bad :( Since the latest clang roll ( issue 888476 ), the build is failing for a bunch of targets on the coverage bots:

ERROR [Thu Oct  4 17:20:22 UTC 2018]: Restarting the loop as too many targets failed to build:
accessibility_unittests
app_shell_unittests
aura_unittests
blink_heap_unittests
blink_platform_unittests
browser_tests
cc_unittests
chrome_app_unittests
components_browsertests
components_unittests
compositor_unittests
content_browsertests
content_unittests
extensions_browsertests
extensions_unittests
headless_browsertests
headless_unittests
interactive_ui_tests
media_blink_unittests
media_unittests
message_center_unittests
nacl_loader_unittests
pdf_unittests
printing_unittests
remoting_unittests
services_unittests
skia_unittests
snapshot_unittests
sync_integration_tests
ui_touch_selection_unittests
unit_tests
views_unittests
viz_unittests
vr_common_unittests
webkit_unit_tests
wm_unittests
blink_tests
appcache_manifest_parser_fuzzer
audio_decoder_fuzzer
ax_tree_fuzzer
blink_harfbuzz_shaper_fuzzer
blink_html_tokenizer_fuzzer
blink_http_parsers_fuzzer
blink_json_parser_fuzzer
blink_png_decoder_fuzzer
blink_text_codec_UTF_8_fuzzer
blink_text_codec_WINDOWS_1252_fuzzer
cast_message_fuzzer
clear_site_data_fuzzer
content_security_policy_fuzzer
css_parser_fast_paths_fuzzer
css_parser_proto_fuzzer
csv_reader_fuzzer
feature_policy_fuzzer
fingerprint_fuzzer
form_structure_fuzzer
form_structure_process_query_response_fuzzer
hit_test_manager_fuzzer
hit_test_query_fuzzer
html_preload_scanner_fuzzer
lookup_affiliation_response_parser_fuzzer
merkle_integrity_source_stream_fuzzer
mhtml_parser_fuzzer
origin_policy_parser_fuzzer
origin_trial_token_fuzzer
paint_op_buffer_eq_fuzzer
paint_op_buffer_fuzzer
password_manager_form_parser_fuzzer
password_manager_form_parser_generic_fuzzer
password_manager_form_parser_proto_fuzzer
password_manager_form_parser_proto_generic_fuzzer
payment_method_manifest_fuzzer
payment_web_app_manifest_fuzzer
renderer_fuzzer
sequence_manager_fuzzer
signed_exchange_certificate_chain_fuzzer
signed_exchange_envelope_fuzzer
signed_exchange_signature_header_field_fuzzer
stylesheet_contents_fuzzer
template_url_parser_fuzzer
text_resource_decoder_fuzzer
transfer_cache_fuzzer
v4_get_hash_protocol_manager_fuzzer
v8_serialized_script_value_fuzzer
web_icon_sizes_fuzzer



I guess we should add many more targets to the ToT testbots in order to prevent issues like this.
Yep, I filed a separate bug to add unit_tests to the bot after this is fixed. Hey Max, I'm curious how did you get the logs for unfinished builds?
From code-coverage-linux-0004 bot from /home/coverage-bot/bot.log file.
> I guess we should add many more targets to the ToT testbots in order to prevent issues like this.

Yes, let's file a bug for that. It should probably wait until after the LUCI migration.

I repro'd the crash and I'll make a reduction.
Blockedon: 891181
I'm going to try to put together a roll and fix this forward, so let's block it on the roll bug.
Thanks rnk@!
It looks like this wasn't a regression from the last roll. The reduction is still going.
Wow, but the builds broke on the bots exactly 2 days ago... Based on what I see in the logs, the regression range in Chromium should be 595540:595761: https://chromium.googlesource.com/chromium/src/+log/31e4dccfb1777b8a6c31255872682d10bc32492c..0530624701d02b73eda440b0efc127f70098f513?pretty=fuller&n=10000

0001:
+ REVISION=595463
+ REVISION=
+ REVISION=595807
ERROR [Tue Oct  2 16:32:22 UTC 2018]: Restarting the loop as too many targets failed to build:


0002:
+ REVISION=595472
+ REVISION=
+ REVISION=595824
ERROR [Tue Oct  2 17:27:37 UTC 2018]: Restarting the loop as too many targets failed to build:


0003:
+ REVISION=595479
+ REVISION=
+ REVISION=595850
ERROR [Tue Oct  2 19:07:15 UTC 2018]: Restarting the loop as too many targets failed to build:
+ REVISION=


0004:
+ REVISION=595540
+ REVISION=
+ REVISION=595915
ERROR [Tue Oct  2 21:33:48 UTC 2018]: Restarting the loop as too many targets failed to build:


0005:
+ REVISION=595424
+ REVISION=
+ REVISION=595761
ERROR [Tue Oct  2 12:18:50 UTC 2018]: Restarting the loop as too many targets failed to build:

Cc: sadrul@chromium.org
https://chromium-review.googlesource.com/c/chromium/src/+/1226099 might be the culprit then, at least for the failure mentioned in c#1. Let me see where the other targets are breaking.
Owner: sadrul@chromium.org
Well, apparently that's the only problem:

mmoroz@code-coverage-linux-0001:/chromium/src/logs$ cat *.log | egrep 'clang\+\+: error: unable to execute command: Aborted' -c
62
mmoroz@code-coverage-linux-0001:/chromium/src/logs$ cat *.log | egrep 'components/viz/host/hit_test/hit_test_query.cc:33:19: Generating code for declaratio\n' -c
62


Sadrul, could you please either fix or revert your CL https://chromium-review.googlesource.com/c/chromium/src/+/1226099 ?

We should also try to make a smaller reproducer out of it and report it to LLVM, but to keep things working in Chromium we would have to change the code a little bit.
Owner: zandershah@google.com
Actually, it's zandershah@'s CL, not sadrul@'s
Reverting the CL, as it's already 6:30 PM for zandershah@.

https://chromium-review.googlesource.com/c/chromium/src/+/1262926

Reid, thank you for jumping on this! Sorry for the false alarm, who knew that things can collide so weirdly...
Project Member

Comment 15 by bugdroid1@chromium.org, Oct 4

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/37dda234a8f8245675c7e4f7d64402fe21926d16

commit 37dda234a8f8245675c7e4f7d64402fe21926d16
Author: Max Moroz <mmoroz@chromium.org>
Date: Thu Oct 04 23:37:52 2018

Revert "viz: HitTest debug logging."

This reverts commit 535e31ec622d308b10ce7e7ac913595c76bcee1e.

Reason for revert: Broke code coverage builds: crbug.com/891320

Bug: 891320

Original change's description:
> viz: HitTest debug logging.
>
> Ctrl+Shift+H to trigger. Requires --enable-viz-hit-test-debug flag and logging level of 1 on hit_test_debug_key_event_observer.
>
> Adds observer to render_widget_host_impl to act on OnInputEventAck.
>
> Example: https://pastebin.com/pcxrZv6A
>
> R=​riajiang@chromium.org
>
> Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
> Change-Id: I1c9a0867debe5b4aa670a51f85fe24909073374c
> Reviewed-on: https://chromium-review.googlesource.com/1226099
> Commit-Queue: Alexander Shah <zandershah@google.com>
> Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org>
> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
> Reviewed-by: Ria Jiang <riajiang@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#595563}

TBR=sadrul@chromium.org,nzolghadr@chromium.org,riajiang@chromium.org,zandershah@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I51780234c0ee6ed9e4cdae71ef839cc5b4f633f7
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Reviewed-on: https://chromium-review.googlesource.com/c/1262926
Commit-Queue: Max Moroz <mmoroz@chromium.org>
Reviewed-by: Max Moroz <mmoroz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596925}
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/components/viz/common/hit_test/hit_test_region_list.h
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/components/viz/host/hit_test/hit_test_query.cc
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/components/viz/host/hit_test/hit_test_query.h
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/content/browser/BUILD.gn
[delete] https://crrev.com/d2187d5fd9cb3ce36583a36af3633badb1a753df/content/browser/renderer_host/hit_test_debug_key_event_observer.cc
[delete] https://crrev.com/d2187d5fd9cb3ce36583a36af3633badb1a753df/content/browser/renderer_host/hit_test_debug_key_event_observer.h
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/content/browser/renderer_host/render_widget_host_view_event_handler.cc
[modify] https://crrev.com/37dda234a8f8245675c7e4f7d64402fe21926d16/content/browser/renderer_host/render_widget_host_view_event_handler.h

Is that config covered on the CQ? If not, can it be?
@sadrul, hard to say, probably not, I bet coverage builds are slow. The waterfall bot itself didn't actually uncover the bug to begin with.

I got a reduction:

$ cat hit.cpp
class a {
public:
  a(const char *);
  bool ak();
};
a c() {
  a an = "";
#define ao(b) an.ak() ? #b : "" #b
  ao();
  return an;
}

$ ./bin/clang -c  -fprofile-instr-generate -fcoverage-mapping hit.cpp
clang-8: /usr/local/google/home/rnk/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:592: void (anonymous namespace)::CounterCoverageMappingBuilder::popRegions(size_t): Assertion `SpellingRegion(SM, Region).isInSourceOrder()' failed.
...

I'll file a bug for it upstream. Fixing it doesn't seem trivial, so I'm not going to try to get a fix into this clang roll. We'll probably wait for the next one.
I am afraid I don't completely understand. What do we need to do before we re-submit the CL?
The way the CL uses xmacro #defines happens to cause clang's code coverage emission code to crash. You can resubmit the CL with a workaround, or wait for us to fix the bug in the compiler and roll in a new version.

It usually takes us around two weeks to fix a bug and push a new compiler version. In the mean time, if you avoid the xmacro pattern for the switch/case in the CL, you can probably resubmit the change without breaking the code coverage build. If you still prefer the #define version you can leave a TODO to this bug to put back the macros after we fix the compiler bug.
Re c#16, Reid is right, coverage builds are quite slow, so we don't have them in the CQ.
Project Member

Comment 21 by bugdroid1@chromium.org, Oct 11

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d

commit 77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d
Author: Alexander Shah <zandershah@google.com>
Date: Thu Oct 11 20:33:45 2018

Reland viz: HitTest debug logging.

Original CL: https://chromium-review.googlesource.com/c/chromium/src/+/1226099

Only change is a fix for the xdefine macro issue in hit_test_query.cc.

Bug: 891320

R=riajiang@chromium.org

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: Ief766fbd9a9bc5c41a0a7b087c318af5e09e8d81
Reviewed-on: https://chromium-review.googlesource.com/c/1269760
Reviewed-by: Ria Jiang <riajiang@chromium.org>
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Alexander Shah <zandershah@google.com>
Cr-Commit-Position: refs/heads/master@{#598917}
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/components/viz/common/hit_test/hit_test_region_list.h
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/components/viz/host/hit_test/hit_test_query.cc
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/components/viz/host/hit_test/hit_test_query.h
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/content/browser/BUILD.gn
[add] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/content/browser/renderer_host/hit_test_debug_key_event_observer.cc
[add] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/content/browser/renderer_host/hit_test_debug_key_event_observer.h
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/content/browser/renderer_host/render_widget_host_view_event_handler.cc
[modify] https://crrev.com/77c6f62e39c351d19c460e4d0fbb9b65c5ccff5d/content/browser/renderer_host/render_widget_host_view_event_handler.h

Sign in to add a comment