[all-commits] [llvm/llvm-project] fb1940: tsan: fix mmap_lots test

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Feb 17 10:03:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb19400d4e4c421ce61907bf92a92be8d937e584
      https://github.com/llvm/llvm-project/commit/fb19400d4e4c421ce61907bf92a92be8d937e584
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M compiler-rt/test/tsan/mmap_lots.cpp

  Log Message:
  -----------
  tsan: fix mmap_lots test

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.

Reviewed-in: https://reviews.llvm.org/D96874




More information about the All-commits mailing list