This is an archive of the discontinued LLVM Phabricator instance.

[msan] Set poison_in_dtor=1 by default
ClosedPublic

Authored by vitalybuka on Apr 15 2022, 2:02 PM.

Details

Summary

It's still disabled by default at compile time.

Diff Detail

Event Timeline

vitalybuka created this revision.Apr 15 2022, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2022, 2:02 PM
vitalybuka requested review of this revision.Apr 15 2022, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2022, 2:02 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka retitled this revision from [msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. to [msan] Set poison_in_dtor=1 by defaultIt's still disabled by default at compile time..Apr 15 2022, 2:16 PM
vitalybuka added reviewers: kstoimenov, kda.
vitalybuka retitled this revision from [msan] Set poison_in_dtor=1 by defaultIt's still disabled by default at compile time. to [msan] Set poison_in_dtor=1 by default.
vitalybuka edited the summary of this revision. (Show Details)
kstoimenov accepted this revision.Apr 15 2022, 2:38 PM
This revision is now accepted and ready to land.Apr 15 2022, 2:38 PM
This revision was landed with ongoing or failed builds.Apr 15 2022, 2:40 PM
This revision was automatically updated to reflect the committed changes.

Oh, actually it was enabled by default at compile time.
I was confused by DefaultFalse in llvm-project/clang/include/clang/Driver/Options.td, but it's enabled in llvm-project/clang/include/clang/Driver/SanitizerArgs.h

Anyway enabling by default in runtime was the later plan.
I'll revert if it breaks bot.
https://lab.llvm.org/buildbot/#/builders/74/builds/10407 runs MSAN_OPTIONS=poison_in_dtor=0 because of known issues.