[all-commits] [llvm/llvm-project] eae047: sanitizer_common: tighten on_print hook test

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Oct 27 06:11:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eae047afe0d35efc85e23b1688fc859c53843893
      https://github.com/llvm/llvm-project/commit/eae047afe0d35efc85e23b1688fc859c53843893
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-10-27 (Wed, 27 Oct 2021)

  Changed paths:
    M compiler-rt/test/sanitizer_common/TestCases/onprint.cpp

  Log Message:
  -----------
  sanitizer_common: tighten on_print hook test

The new tsan runtime does not support arbitrary forms
of recursing into the runtime from hooks.
Disable instrumentation of the hook and use write instead
of fwrite (calls malloc internally).
The new version still recurses (write is intercepted),
but does not fail now (the issue at hand was malloc).

Depends on D112601.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D112602




More information about the All-commits mailing list