[clang-tools-extra] [clang-doc] fix paths by hard coding path to share (PR #98099)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 01:43:07 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot3` while building `clang-tools-extra` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/819
Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83828 of 83829 tests, 80 workers --
Testing:
FAIL: LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test (1 of 83828)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 3: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy -R .foo - - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/obj2yaml - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy -R .foo - -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/obj2yaml -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
RUN: at line 39: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
RUN: at line 40: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
=================================================================
==1883032==ERROR: AddressSanitizer: heap-use-after-free on address 0x512000000370 at pc 0x55821b12772e bp 0x7fff24c22bb0 sp 0x7fff24c22ba8
READ of size 4 at 0x512000000370 thread T0
#0 0x55821b12772d in llvm::objcopy::elf::Symbol::getShndx() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:689:20
#1 0x55821b1277a8 in llvm::objcopy::elf::Symbol::isCommon() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:706:40
#2 0x55821b116c38 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:317:14
#3 0x55821b116c38 in void llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>::callback_fn<updateAndRemoveSymbols(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&)::$_0>(long, llvm::objcopy::elf::Symbol&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:45:12
#4 0x55821b128810 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:68:12
#5 0x55821b128810 in llvm::objcopy::elf::SymbolTableSection::updateSymbols(llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:761:5
#6 0x55821b10a2f8 in updateAndRemoveSymbols /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:311:20
#7 0x55821b10a2f8 in handleArgs(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:662:17
#8 0x55821b10f787 in llvm::objcopy::elf::executeObjcopyOnBinary(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::object::ELFObjectFileBase&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:880:17
#9 0x55821b0d8e03 in llvm::objcopy::executeObjcopyOnBinary(llvm::objcopy::MultiFormatConfig const&, llvm::object::Binary&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ObjCopy.cpp:45:12
#10 0x55821aef9c38 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:184:16
#11 0x55821aef9c38 in __invoke<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__type_traits/invoke.h:150:25
#12 0x55821aef9c38 in __call<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__type_traits/invoke.h:217:12
#13 0x55821aef9c38 in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:171:12
#14 0x55821aef9c38 in std::__1::__function::__func<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2, std::__1::allocator<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2>, llvm::Error (llvm::raw_ostream&)>::operator()(llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:313:10
#15 0x55821b3556ff in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:430:12
#16 0x55821b3556ff in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:989:10
#17 0x55821b3556ff in llvm::writeToOutput(llvm::StringRef, std::__1::function<llvm::Error (llvm::raw_ostream&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/raw_ostream.cpp:1028:17
#18 0x55821aef6bee in executeObjcopy /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:194:21
#19 0x55821aef6bee in llvm_objcopy_main(int, char**, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:251:19
#20 0x55821aefa8c5 in main /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/llvm-objcopy/llvm-objcopy-driver.cpp:17:10
Step 9 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83828 of 83829 tests, 80 workers --
Testing:
FAIL: LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test (1 of 83828)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 3: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy -R .foo - - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/obj2yaml - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy -R .foo - -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/obj2yaml -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
RUN: at line 39: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
RUN: at line 40: /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
=================================================================
==1883032==ERROR: AddressSanitizer: heap-use-after-free on address 0x512000000370 at pc 0x55821b12772e bp 0x7fff24c22bb0 sp 0x7fff24c22ba8
READ of size 4 at 0x512000000370 thread T0
#0 0x55821b12772d in llvm::objcopy::elf::Symbol::getShndx() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:689:20
#1 0x55821b1277a8 in llvm::objcopy::elf::Symbol::isCommon() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:706:40
#2 0x55821b116c38 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:317:14
#3 0x55821b116c38 in void llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>::callback_fn<updateAndRemoveSymbols(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&)::$_0>(long, llvm::objcopy::elf::Symbol&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:45:12
#4 0x55821b128810 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:68:12
#5 0x55821b128810 in llvm::objcopy::elf::SymbolTableSection::updateSymbols(llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:761:5
#6 0x55821b10a2f8 in updateAndRemoveSymbols /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:311:20
#7 0x55821b10a2f8 in handleArgs(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:662:17
#8 0x55821b10f787 in llvm::objcopy::elf::executeObjcopyOnBinary(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::object::ELFObjectFileBase&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:880:17
#9 0x55821b0d8e03 in llvm::objcopy::executeObjcopyOnBinary(llvm::objcopy::MultiFormatConfig const&, llvm::object::Binary&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ObjCopy.cpp:45:12
#10 0x55821aef9c38 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:184:16
#11 0x55821aef9c38 in __invoke<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__type_traits/invoke.h:150:25
#12 0x55821aef9c38 in __call<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__type_traits/invoke.h:217:12
#13 0x55821aef9c38 in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:171:12
#14 0x55821aef9c38 in std::__1::__function::__func<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2, std::__1::allocator<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2>, llvm::Error (llvm::raw_ostream&)>::operator()(llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:313:10
#15 0x55821b3556ff in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:430:12
#16 0x55821b3556ff in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan_ubsan/include/c++/v1/__functional/function.h:989:10
#17 0x55821b3556ff in llvm::writeToOutput(llvm::StringRef, std::__1::function<llvm::Error (llvm::raw_ostream&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/raw_ostream.cpp:1028:17
#18 0x55821aef6bee in executeObjcopy /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:194:21
#19 0x55821aef6bee in llvm_objcopy_main(int, char**, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:251:19
#20 0x55821aefa8c5 in main /b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/tools/llvm-objcopy/llvm-objcopy-driver.cpp:17:10
Step 12 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83827 tests, 80 workers --
Testing:
FAIL: LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test (1 of 83827)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/remove-section-in-group.test' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 3: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-objcopy -R .foo - - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/obj2yaml - | /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/obj2yaml -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-objcopy -R .foo - -
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/yaml2obj --docnum=1 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o -
RUN: at line 39: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/yaml2obj --docnum=2 /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/tools/llvm-objcopy/ELF/remove-section-in-group.test -o /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
RUN: at line 40: /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
+ /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llvm-objcopy --remove-section=.debug_macro /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/test/tools/llvm-objcopy/ELF/Output/remove-section-in-group.test.tmp
==189911==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5631d90464d5 in llvm::objcopy::elf::Symbol::getShndx() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:704:1
#1 0x5631d904653e in llvm::objcopy::elf::Symbol::isCommon() const /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:706:40
#2 0x5631d903b908 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:317:14
#3 0x5631d903b908 in void llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>::callback_fn<updateAndRemoveSymbols(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&)::$_0>(long, llvm::objcopy::elf::Symbol&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:45:12
#4 0x5631d9046eb8 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:68:12
#5 0x5631d9046eb8 in llvm::objcopy::elf::SymbolTableSection::updateSymbols(llvm::function_ref<void (llvm::objcopy::elf::Symbol&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObject.cpp:761:5
#6 0x5631d9035049 in updateAndRemoveSymbols /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:311:20
#7 0x5631d9035049 in handleArgs(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::objcopy::elf::Object&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:662:17
#8 0x5631d90380c6 in llvm::objcopy::elf::executeObjcopyOnBinary(llvm::objcopy::CommonConfig const&, llvm::objcopy::ELFConfig const&, llvm::object::ELFObjectFileBase&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp:880:17
#9 0x5631d901c396 in llvm::objcopy::executeObjcopyOnBinary(llvm::objcopy::MultiFormatConfig const&, llvm::object::Binary&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/ObjCopy/ObjCopy.cpp:45:12
#10 0x5631d8f12e89 in operator() /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:184:16
#11 0x5631d8f12e89 in __invoke<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__type_traits/invoke.h:150:25
#12 0x5631d8f12e89 in __call<(lambda at /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:183:21) &, llvm::raw_ostream &> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__type_traits/invoke.h:217:12
#13 0x5631d8f12e89 in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__functional/function.h:171:12
#14 0x5631d8f12e89 in std::__1::__function::__func<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2, std::__1::allocator<executeObjcopy(llvm::objcopy::ConfigManager&)::$_2>, llvm::Error (llvm::raw_ostream&)>::operator()(llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__functional/function.h:313:10
#15 0x5631d91724b1 in std::__1::__function::__value_func<llvm::Error (llvm::raw_ostream&)>::operator()[abi:nn190000](llvm::raw_ostream&) const /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__functional/function.h:430:12
#16 0x5631d9171950 in operator() /b/sanitizer-x86_64-linux-fast/build/libcxx_build_msan/include/c++/v1/__functional/function.h:989:10
#17 0x5631d9171950 in llvm::writeToOutput(llvm::StringRef, std::__1::function<llvm::Error (llvm::raw_ostream&)>) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/raw_ostream.cpp:1028:17
#18 0x5631d8f10e89 in executeObjcopy /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:194:21
#19 0x5631d8f10e89 in llvm_objcopy_main(int, char**, llvm::ToolContext const&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llvm-objcopy/llvm-objcopy.cpp:251:19
#20 0x5631d8f135a7 in main /b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/tools/llvm-objcopy/llvm-objcopy-driver.cpp:17:10
#21 0x7f103b62814f (/lib/x86_64-linux-gnu/libc.so.6+0x2814f) (BuildId: 502d55a5e424889ddb2846eb6dbeddaedd75b323)
#22 0x7f103b628208 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x28208) (BuildId: 502d55a5e424889ddb2846eb6dbeddaedd75b323)
```
https://github.com/llvm/llvm-project/pull/98099
More information about the cfe-commits
mailing list