This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Only disable crash reports in the child
AcceptedPublic

Authored by arsenm on Jan 2 2023, 6:49 PM.

Details

Reviewers
regehr
aeubanks
Summary

Disabling the crash reports and symbolization had unexpected
effects when using lldb on llvm-reduce itself.

Core files are still disabled in the parent. It's probably
not simple to only set this in the child, and I can't think of a
scenario where I would need core dumps for llvm-reduce.

Diff Detail

Event Timeline

arsenm created this revision.Jan 2 2023, 6:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 6:49 PM
arsenm requested review of this revision.Jan 2 2023, 6:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 6:49 PM
Herald added a subscriber: wdng. · View Herald Transcript
aeubanks accepted this revision.Jan 17 2023, 10:27 AM
This revision is now accepted and ready to land.Jan 17 2023, 10:27 AM
arsenm closed this revision.Jan 19 2023, 7:13 AM
arsenm added inline comments.
llvm/tools/llvm-reduce/TestRunner.cpp
54

This is also dropping the PATH which might be really annoying for test scripts

arsenm reopened this revision.Jan 19 2023, 7:13 AM
This revision is now accepted and ready to land.Jan 19 2023, 7:13 AM

yes, dropping PATH is bad

is there a way to get the current env and add to it?

yes, dropping PATH is bad

is there a way to get the current env and add to it?

Yes, but I'm not sure if any of them are fully portable. The two I know are use the 3rd envp argument to main, and then the environ global variable.