This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Remove empty reproducer directory on exit
ClosedPublic

Authored by keith on Apr 3 2023, 9:49 PM.

Details

Summary

In the case the reproducer isn't generated, we don't want to leave
around an empty temporary directory.

Fixes https://github.com/llvm/llvm-project/issues/61920

Diff Detail

Event Timeline

keith created this revision.Apr 3 2023, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 9:49 PM
keith requested review of this revision.Apr 3 2023, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 9:49 PM
JDevlieghere accepted this revision.Apr 4 2023, 10:03 PM

Coincidentally, I discovered the same bug last Friday :-) Another alternative would be to create the directory when we decide to emit the reproducer, but I went with the current apporach to limit the amount of work done in the signal handler.

LGTM. Thanks for fixing this!

This revision is now accepted and ready to land.Apr 4 2023, 10:03 PM
This revision was automatically updated to reflect the committed changes.