[PATCH] D76839: [lld-macho] Extend SyntheticSections to cover all segment load commands

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 03:43:29 PDT 2020


vitalybuka reopened this revision.
vitalybuka added a comment.
This revision is now accepted and ready to land.

http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/40817/steps/check-lld%20ubsan/logs/stdio

  ommand Output (stderr):
  --
  /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/InputSection.cpp:29:15: runtime error: null pointer passed as argument 2, which is declared to never be null
  /usr/include/string.h:43:28: note: nonnull attribute specified here
      #0 0xc7f0ba in lld::macho::InputSection::writeTo(unsigned char*) /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/InputSection.cpp:29:3
      #1 0xc85687 in writeSections /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/Writer.cpp:449:15
      #2 0xc85687 in (anonymous namespace)::Writer::run() /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/Writer.cpp:490:3
      #3 0xc8418c in lld::macho::writeResult() /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/Writer.cpp:496:38
      #4 0xc79269 in lld::macho::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&, llvm::raw_ostream&) /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/Driver.cpp:170:3
      #5 0x835016 in main /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/tools/lld/lld.cpp:163:13
      #6 0x7f441c63809a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
      #7 0x81e579 in _start (/b/sanitizer-x86_64-linux-fast/build/llvm_build_ubsan/bin/lld+0x81e579)
  
  SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /b/sanitizer-x86_64-linux-fast/build/llvm-project/lld/MachO/InputSection.cpp:29:15 in 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76839/new/

https://reviews.llvm.org/D76839





More information about the llvm-commits mailing list