[compiler-rt] ab41f37 - [hwasan] Fix test with TCO eliminating free frame.

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 11 01:52:50 PDT 2021


Author: Florian Mayer
Date: 2021-08-11T09:51:14+01:00
New Revision: ab41f37ef6e23eacc8306d92a69852b56cde1bc4

URL: https://github.com/llvm/llvm-project/commit/ab41f37ef6e23eacc8306d92a69852b56cde1bc4
DIFF: https://github.com/llvm/llvm-project/commit/ab41f37ef6e23eacc8306d92a69852b56cde1bc4.diff

LOG: [hwasan] Fix test with TCO eliminating free frame.

This broke https://lab.llvm.org/buildbot/#/builders/37/builds/6016/steps/10/logs/stdio

Reviewed By: eugenis

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

Added: 
    

Modified: 
    compiler-rt/test/hwasan/TestCases/double-free.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/hwasan/TestCases/double-free.c b/compiler-rt/test/hwasan/TestCases/double-free.c
index f77c27cf687d6..6d177fdef7029 100644
--- a/compiler-rt/test/hwasan/TestCases/double-free.c
+++ b/compiler-rt/test/hwasan/TestCases/double-free.c
@@ -15,8 +15,8 @@ int main() {
   // CHECK: tags: [[PTR_TAG:..]]/[[MEM_TAG:..]] (ptr/mem)
   // CHECK: #0 {{[0x]+}}{{.*}}[[PC]]
   // If we instrument using calls (default on x86), free is not the top frame
-  // of the fault.
-  // CHECK: in free
+  // of the fault. With TCO the free frame can be replaced with the interceptor.
+  // CHECK: in {{.*}}free
   // CHECK: freed by thread {{.*}} here:
   // CHECK: previously allocated here:
   // CHECK: Memory tags around the buggy address (one tag corresponds to 16 bytes):


        


More information about the llvm-commits mailing list