This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Disable crash reports, symbolization and core dumps
ClosedPublic

Authored by arsenm on Dec 20 2022, 4:46 AM.

Details

Summary

These are going to waste a lot of time and produce clutter when we're
bulk introducing crashes. Add a flag to disable this behavior in case
this matters to a reproducer.

Diff Detail

Event Timeline

arsenm created this revision.Dec 20 2022, 4:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 4:46 AM
arsenm requested review of this revision.Dec 20 2022, 4:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 4:46 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 484220.Dec 20 2022, 4:49 AM

Use consistent overwrite behavior

arsenm updated this revision to Diff 484221.Dec 20 2022, 4:53 AM

Forgot to commit overwrite behavior test

aeubanks accepted this revision.Dec 20 2022, 9:15 AM

thanks, I've always manually added LLVM_DISABLE_SYMBOLIZATION to the reproducer, this is nicer

llvm/test/tools/llvm-reduce/Inputs/test-crash-vars.py
8

a comment here that both env vars being "1" is interesting would be nice, it took a non-trivial amount of time to work out

llvm/tools/llvm-reduce/llvm-reduce.cpp
115–116

win premerge bot is failing, you need

#ifdef _WIN32
#include <windows.h>
#endif
This revision is now accepted and ready to land.Dec 20 2022, 9:15 AM
arsenm updated this revision to Diff 484299.Dec 20 2022, 9:28 AM

Windows include, add another preserve environment test

fhahn added a comment.Dec 21 2022, 1:41 AM

It might be good to include the review URL in the commit message so its easy to find the review from the commit and have Phabricator auto-close the review :)