[compiler-rt] [sanitizer_common] Use %p to print addresses (PR #98578)

Daniel Bertalan via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 07:22:00 PDT 2024


BertalanD wrote:

The added leading zeros also [broke](https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8742006054277290977/+/u/package_clang/stdout#L72799_0) a test on Darwin which was comparing addresses:


https://github.com/llvm/llvm-project/blob/4c28494e7842b26a566f9406f71510eda4a9e576/compiler-rt/test/tsan/debug_alloc_stack.cpp#L80-L84

```
            16:  Location is heap block of size 10 at 0x720400000800 allocated by thread T1: 
 check:82'0                                                                                X~ error: no match found
 check:82'1                                                                                   with "ALLOC_FRAME_0" equal to "0x10afe151f"
            17:  #0 0x00010afe151f in malloc+0x6e (libclang_rt.tsan_osx_dynamic.dylib:x86_64+0x5d51e) 
 check:82'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 check:82'2      ?                                                                                     possible intended match

```

https://github.com/llvm/llvm-project/pull/98578


More information about the llvm-commits mailing list