This is an archive of the discontinued LLVM Phabricator instance.

[Reproducers] Add --reproducer-no-generate-on-signal to avoid installing the signal handler.
ClosedPublic

Authored by JDevlieghere on Jul 9 2020, 11:13 AM.

Details

Summary

There are bugs where you don't want the signal handler to trigger, most notably when that will cause another crash. Examples of this are lldb running out of memory or a bug in the reproducer generation code. This adds an escape hatch trough a (developer oriented) flag to not install the signal handler.

rdar://problem/65149595

Diff Detail

Event Timeline

JDevlieghere created this revision.Jul 9 2020, 11:13 AM
JDevlieghere retitled this revision from [Reproducers] Add --reproducer-no-signal-handler to avoid installing the signal handler. to [Reproducers] Add --reproducer-no-generate-on-signal to avoid installing the signal handler..

Detach flag name from implementation.

teemperor accepted this revision.Jul 9 2020, 11:47 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jul 9 2020, 11:47 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 9 2020, 11:51 AM