[PATCH] D50204: [llvm-objdump] Label calls to the PLT

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 24 12:33:11 PDT 2018


vitalybuka added a comment.

This is broken by the patch http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/22760/steps/check-lld%20asan/logs/stdio




15093==ERROR: LeakSanitizer: detected memory leaks
--------------------------------------------------

Direct leak of 16 byte(s) in 1 object(s) allocated from:

  #0 0x5aa968 in operator new(unsigned long) /b/sanitizer-x86_64-linux-fast/build/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:92
  #1 0x957b22 in createX86MCInstrAnalysis(llvm::MCInstrInfo const*) /b/sanitizer-x86_64-linux-fast/build/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp:579:10
  #2 0xfe4db5 in createMCInstrAnalysis /b/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Support/TargetRegistry.h:354:12
  #3 0xfe4db5 in llvm::object::ELFObjectFileBase::getPltAddresses() const /b/sanitizer-x86_64-linux-fast/build/llvm/lib/Object/ELFObjectFile.cpp:354
  #4 0x60106c in addPltEntries /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:1253:34
  #5 0x60106c in DisassembleObject(llvm::object::ObjectFile const*, bool) /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:1379
  #6 0x5f3bf0 in DumpObject(llvm::object::ObjectFile*, llvm::object::Archive const*, llvm::object::Archive::Child const*) /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2308:5
  #7 0x5c298c in DumpInput /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2406:5
  #8 0x5c298c in for_each<std::__1::__wrap_iter<std::__1::basic_string<char> *>, void (*)(llvm::StringRef)> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan/include/c++/v1/algorithm:832
  #9 0x5c298c in for_each<llvm::cl::list<std::__1::basic_string<char>, bool, llvm::cl::parser<std::string> > &, void (*)(llvm::StringRef)> /b/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/ADT/STLExtras.h:1027
  #10 0x5c298c in main /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2473
  #11 0x7ffa4b0832e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:

  #0 0x5aa968 in operator new(unsigned long) /b/sanitizer-x86_64-linux-fast/build/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:92
  #1 0x957480 in createX86MCInstrInfo() /b/sanitizer-x86_64-linux-fast/build/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp:294:20
  #2 0xfe4d88 in createMCInstrInfo /b/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Support/TargetRegistry.h:346:12
  #3 0xfe4d88 in llvm::object::ELFObjectFileBase::getPltAddresses() const /b/sanitizer-x86_64-linux-fast/build/llvm/lib/Object/ELFObjectFile.cpp:354
  #4 0x60106c in addPltEntries /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:1253:34
  #5 0x60106c in DisassembleObject(llvm::object::ObjectFile const*, bool) /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:1379
  #6 0x5f3bf0 in DumpObject(llvm::object::ObjectFile*, llvm::object::Archive const*, llvm::object::Archive::Child const*) /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2308:5
  #7 0x5c298c in DumpInput /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2406:5
  #8 0x5c298c in for_each<std::__1::__wrap_iter<std::__1::basic_string<char> *>, void (*)(llvm::StringRef)> /b/sanitizer-x86_64-linux-fast/build/libcxx_build_asan/include/c++/v1/algorithm:832
  #9 0x5c298c in for_each<llvm::cl::list<std::__1::basic_string<char>, bool, llvm::cl::parser<std::string> > &, void (*)(llvm::StringRef)> /b/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/ADT/STLExtras.h:1027
  #10 0x5c298c in main /b/sanitizer-x86_64-linux-fast/build/llvm/tools/llvm-objdump/llvm-objdump.cpp:2473
  #11 0x7ffa4b0832e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

SUMMARY: AddressSanitizer: 48 byte(s) leaked in 2 allocation(s).


Repository:
  rL LLVM

https://reviews.llvm.org/D50204





More information about the llvm-commits mailing list