Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Cannot Build Chromium With Centipede

144 views
Skip to first unread message

Sakana

unread,
Nov 18, 2024, 10:52:46 AM11/18/24
to Chromium-dev
Hi All.

I used the following args.gn file to try fuzzing with centipede on chromium (branch 6835).

is_asan = true
is_debug = false
enable_nacl = false
symbol_level = 1
is_component_build = false
dcheck_always_on = false
optimize_for_fuzzing = true
use_sanitizer_coverage = true
use_centipede = true

I then run “autoninja -C {Build Dir} atspi_in_process_fuzzer”.
Then I get the following error.

[1/1] LINK ./atspi_in_process_fuzzer
FAILED: atspi_in_process_fuzzer
"python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./atspi_in_process_fuzzer" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Werror -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=fast -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--color-diagnostics -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -m64 -no-canonical-prefixes -Wl,--gc-sections -nostdlib++ --sysroot=../../build/linux/debian_bullseye_amd64-sysroot -fsanitize=address -fsanitize-coverage=trace-pc-guard,pc-table,trace-cmp,control-flow,trace-loads -rdynamic -pie -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN -fsanitize=address -fsanitize-coverage=trace-pc-guard,pc-table,trace-cmp,control-flow,trace-loads -Wl,-u_sanitizer_options_link_helper -o "./atspi_in_process_fuzzer" -Wl,--start-group @"./atspi_in_process_fuzzer.rsp" -Wl,--end-group  ./libtest_trace_processor.so ../../third_party/llvm-build/Release+Asserts/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.builtins.a -ldl -lpthread -lrt -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -latspi -lresolv -lgio-2.0 -luuid -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lgbm -lEGL -ldrm -lxcb -lxkbcommon -lXi -lpci -lffi_pic -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -ludev -lasound -lm -lz -lstdc++ -lxshmfence -lgtk-3 -lgdk-3 -lcairo-gobject -lgdk_pixbuf-2.0 -Wl,--start-group obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins_compiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core_rustc_std_workspace_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libprofiler_builtins_profiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if_cfg_if.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown_hashbrown.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc_rustc_std_workspace_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr_memchr.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_abort_panic_abort.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc_libc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind_panic_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle_rustc_demangle.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect_std_detect.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line_addr2line.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli_gimli.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide_miniz_oxide.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler_adler.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject_object.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts_getopts.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std_rustc_std_workspace_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width_unicode_width.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest_test.rlib obj/base/libbase_crust_ulogger.rlib obj/base/libbase_clogging_ulog_useverity_ubindgen.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/base/libbase_clogging_urust_ulog_uintegration_ubindgen.rlib obj/third_party/rust/log/v0_4/lib/liblog_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib obj/third_party/rust/serde/v1/lib/libserde_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib obj/third_party/rust/itoa/v1/lib/libitoa_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib obj/skia/libskia_cbridge_urust_uside.rlib obj/third_party/rust/font_types/v0_7/lib/libfont_types_lib.rlib obj/third_party/rust/bytemuck/v1/lib/libbytemuck_lib.rlib obj/third_party/rust/read_fonts/v0_23/lib/libread_fonts_lib.rlib obj/third_party/rust/skrifa/v0_24/lib/libskrifa_lib.rlib obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib obj/third_party/crabbyavif/libdav1d_sys.rlib obj/third_party/crabbyavif/liblibyuv_sys.rlib obj/third_party/rust/libc/v0_2/lib/liblibc_lib.rlib obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib obj/base/test/libbase_stest_ctest_urust_ulogger_uconsumer.rlib -Wl,--end-group
ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0x9e0): relocation R_X86_64_PC32 out of range: 2485229788 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::MetaData(): .text+0x15): relocation R_X86_64_PC32 out of range: 2481082903 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x19): relocation R_X86_64_PC32 out of range: 2489356147 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:32 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:32)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0x9ec): relocation R_X86_64_PC32 out of range: 2485229776 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x25): relocation R_X86_64_PC32 out of range: 2489356135 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:32 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:32)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::MetaData(): .text+0x21): relocation R_X86_64_PC32 out of range: 2481082890 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0xa1a): relocation R_X86_64_PC32 out of range: 2485229698 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by scoped_refptr.h:317 (../../base/memory/scoped_refptr.h:317)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x4b): relocation R_X86_64_PC32 out of range: 2489356001 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:26 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:26)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::MetaData(): .text+0x62): relocation R_X86_64_PC32 out of range: 2481082826 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0xa4b): relocation R_X86_64_PC32 out of range: 2485229681 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x63): relocation R_X86_64_PC32 out of range: 2489356073 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:32 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:32)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0xa57): relocation R_X86_64_PC32 out of range: 2485229669 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::MetaData(): .text+0x69): relocation R_X86_64_PC32 out of range: 2481082819 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x8c): relocation R_X86_64_PC32 out of range: 2489355936 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:32 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:32)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0xc36): relocation R_X86_64_PC32 out of range: 2485229158 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:152 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:152)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::MetaData(): .text+0x75): relocation R_X86_64_PC32 out of range: 2481082807 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/isolated_web_app_reader_registry_factory.o:(function web_app::IsolatedWebAppReaderRegistryFactory::GetForProfile(Profile*): .text+0x98): relocation R_X86_64_PC32 out of range: 2489356020 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by isolated_web_app_reader_registry_factory.cc:32 (../../chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.cc:32)

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0x10c4): relocation R_X86_64_PC32 out of range: 2485228024 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o:(function ToolbarButton::GetClassMetaData() const: .text+0x15): relocation R_X86_64_PC32 out of range: 2481082775 is not in [-2147483648, 2147483647]; references 'ToolbarButton::ToolbarButton_MetaData::meta_data_'
>>> referenced by toolbar_button.cc:741 (../../chrome/browser/ui/views/toolbar/toolbar_button.cc:741)
>>> defined in obj/chrome/browser/ui/views/toolbar/toolbar/toolbar_button.o

ld.lld: error: obj/chrome/browser/web_applications/web_applications/web_app_file_handler_registration_linux.o:(function web_app::(anonymous namespace)::UpdateMimeInfoDatabase(bool, base::FilePath, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>): .text+0x10d0): relocation R_X86_64_PC32 out of range: 2485228012 is not in [-2147483648, 2147483647]; references section '.bss'
>>> referenced by web_app_file_handler_registration_linux.cc:74 (../../chrome/browser/web_applications/os_integration/web_app_file_handler_registration_linux.cc:74)

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Any tips, Thanks!

Adrian Taylor

unread,
Nov 19, 2024, 4:33:12 AM11/19/24
to asan1...@gmail.com, Chromium-dev, Titouan Rigoudy
Hi,


At the moment the gn arguments used by our CI centipede builder are a little different (see "lookup GN args", here) and centipede builds are therefore still working. You may achieve success by adjusting your gn arguments similarly (probably to enable component build). We haven't yet investigated this problem, but we're assuming that the problem is that larger fuzzers (including most of Chromium's code) are nowadays simply too big to fit within some 32-bit counters required by sancov.

Adrian


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/c1c6639f-67f4-403a-9963-d17a86ba2baen%40chromium.org.
Reply all
Reply to author
Forward
0 new messages