This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Automatically generate a reproducer when dsymutil crashes
ClosedPublic

Authored by JDevlieghere on Jun 9 2022, 2:02 PM.

Details

Summary

Automatically generate a reproducer when dsymutil crashes. We already support generating reproducers with the --gen-reproducer flag, but this automates the generation on a crash.

rdar://68357665

Diff Detail

Event Timeline

JDevlieghere created this revision.Jun 9 2022, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 2:02 PM
JDevlieghere requested review of this revision.Jun 9 2022, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 2:02 PM
aprantl added inline comments.Jun 9 2022, 2:27 PM
llvm/tools/dsymutil/Reproducer.cpp
54

LLVM has a macro that expands to the preferred bugreport URL. Maybe include that?

llvm/tools/dsymutil/Reproducer.h
69

default initialize?

JDevlieghere marked 2 inline comments as done.
JDevlieghere added inline comments.
llvm/tools/dsymutil/Reproducer.cpp
54

We still print that before as part of the stack trace and I don't want to mess with that.

  • Add the ability to disable the reproducers.
  • Add test for --reproducer aliases.
  • Update the docs.
aprantl accepted this revision.Jun 13 2022, 5:00 PM
This revision is now accepted and ready to land.Jun 13 2022, 5:00 PM
This revision was landed with ongoing or failed builds.Jun 14 2022, 4:00 PM
This revision was automatically updated to reflect the committed changes.