[PATCH] D102892: [WIP][lld] Implement crash reproducer for ELF

Haowei Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 17:30:10 PDT 2021


haowei created this revision.
haowei added reviewers: phosek, mcgrathr.
Herald added subscribers: dang, arichardson, emaste.
Herald added a reviewer: MaskRay.
haowei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is still work in progress.

Compared to D102304 <https://reviews.llvm.org/D102304>, this implementation does not invoke lldMain twice. Instead, it tries to record the file names when lld touches any file and repackage them when lld recovered from CrashRecoveryContext. In test it generate the same reproducer tarball when compared to D102304 <https://reviews.llvm.org/D102304>.

The change still need more work. It currently require environment variable to make lld to invoke safeLldMain (ideally, lld should use safeLldMain when "--reproduce-on-crash") and the path of the crash reproducer can be customized. Let me know if this is the direction we want to go.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102892

Files:
  lld/ELF/Driver.cpp
  lld/ELF/InputFiles.cpp
  lld/ELF/InputFiles.h
  lld/ELF/Options.td
  lld/include/lld/Common/Driver.h
  lld/include/lld/Common/Reproduce.h
  lld/tools/lld/lld.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102892.346899.patch
Type: text/x-patch
Size: 7106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/ae982b98/attachment.bin>


More information about the llvm-commits mailing list