This is an archive of the discontinued LLVM Phabricator instance.

tsan: fix mmap_lots test
ClosedPublic

Authored by dvyukov on Feb 17 2021, 8:47 AM.

Details

Summary

If tsan runtime will try to allocate something during exit handling,
the allocation will fail because there is no VA whatsoever.
It's observed to fail with the following error in some cases:
failed to allocate 0x1000 (4096) bytes of DTLS_NextBlock.
So terminate the process immediately.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Feb 17 2021, 8:47 AM
dvyukov created this revision.
alexfh accepted this revision.Feb 17 2021, 9:48 AM
alexfh added a subscriber: alexfh.

LG. Thanks for the fix!

This revision is now accepted and ready to land.Feb 17 2021, 9:48 AM