This is an archive of the discontinued LLVM Phabricator instance.

asan: fix crash on odd stack size
ClosedPublic

Authored by dvyukov on Mar 10 2023, 8:38 AM.

Details

Summary

The test currently crashes as:

AddressSanitizer: CHECK failed: asan_poisoning.cpp:38 "((AddrIsAlignedByGranularity(addr))) != (0)"

Main stack address/size don't have to be aligned on asan shadow granularity.
Align stack bottom.

Diff Detail

Event Timeline

dvyukov created this revision.Mar 10 2023, 8:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 8:38 AM
Herald added a subscriber: Enna1. · View Herald Transcript
dvyukov requested review of this revision.Mar 10 2023, 8:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2023, 8:38 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Mar 10 2023, 8:43 AM
This revision is now accepted and ready to land.Mar 10 2023, 8:43 AM
vitalybuka accepted this revision.Mar 10 2023, 9:25 AM
This revision was automatically updated to reflect the committed changes.