[compiler-rt] make mmap-munmap interceptor fail earlier (PR #169775)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 27 14:14:17 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 5818 tests passed
* 1323 tests skipped
* 4 tests failed

## Failed Tests
(click on a test name to see its output)

### AddressSanitizer-x86_64-linux
<details>
<summary>AddressSanitizer-x86_64-linux.TestCases/Linux/cuda_test.cpp</summary>

```
Exit Code: 1

Command Output (stderr):
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/cuda_test.cpp.tmp # RUN: at line 6
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/cuda_test.cpp.tmp
not env ASAN_OPTIONS=protect_shadow_gap=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/cuda_test.cpp.tmp 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp  --check-prefix=CHECK-PROTECT1 # RUN: at line 7
+ not env ASAN_OPTIONS=protect_shadow_gap=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/cuda_test.cpp.tmp
+ FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp --check-prefix=CHECK-PROTECT1
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp:28:21: error: CHECK-PROTECT1: expected string not found in input
 // CHECK-PROTECT1: AddressSanitizer: SEGV on unknown address 0x0000bfff8000
                    ^
<stdin>:1:1: note: scanning from here
=================================================================
^
<stdin>:2:18: note: possible intended match here
==456908==ERROR: AddressSanitizer: mmap requested memory range 0x200000000-0x1300000000 overlaps with ASan shadow memory
                 ^

Input file: <stdin>
Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ================================================================= 
check:28'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            2: ==456908==ERROR: AddressSanitizer: mmap requested memory range 0x200000000-0x1300000000 overlaps with ASan shadow memory 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:28'1                      ?                                                                                                        possible intended match
            3:  #0 0x58d520d66d08 in void* mmap_interceptor<void* (*)(void*, unsigned long, int, int, int, unsigned long long)>(void* (*)(void*, unsigned long, int, int, int, unsigned long long), void*, unsigned long, int, int, int, unsigned long long) /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:202:7 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            4:  #1 0x58d520d668e9 in mmap /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:7681:3 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5:  #2 0x58d520ddff69 in main /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp:21:7 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6:  #3 0x7ea67837e1c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  #4 0x7ea67837e28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>

--

```
</details>
<details>
<summary>AddressSanitizer-x86_64-linux.TestCases/asan_mmap_oob_aix.cpp</summary>

```
Exit Code: 1

Command Output (stderr):
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp && not  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp # RUN: at line 1
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp
+ not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp
+ FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp:17:11: error: CHECK: expected string not found in input
// CHECK: overlaps with ASan shadow memory
          ^
<stdin>:2:63: note: scanning from here
==569899==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range
                                                              ^
<stdin>:2:119: note: possible intended match here
==569899==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range
                                                                                                                      ^

Input file: <stdin>
Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ================================================================= 
            2: ==569899==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range 
check:17'0                                                                   X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:17'1                                                                                                                           ?                                       possible intended match
            3:  #0 0x5d4bc9da402c in void* mmap_interceptor<void* (*)(void*, unsigned long, int, int, int, unsigned long long)>(void* (*)(void*, unsigned long, int, int, int, unsigned long long), void*, unsigned long, int, int, int, unsigned long long) /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:211:7 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            4:  #1 0x5d4bc9da38d9 in mmap /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:7681:3 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5:  #2 0x5d4bc9e1cf56 in main /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp:10:17 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6:  #3 0x7c0a583371c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  #4 0x7c0a5833728a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>

--

```
</details>

### AddressSanitizer-x86_64-linux-dynamic
<details>
<summary>AddressSanitizer-x86_64-linux-dynamic.TestCases/Linux/cuda_test.cpp</summary>

```
Exit Code: 1

Command Output (stderr):
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -shared-libasan /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/cuda_test.cpp.tmp # RUN: at line 6
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libasan /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/cuda_test.cpp.tmp
not env ASAN_OPTIONS=protect_shadow_gap=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/cuda_test.cpp.tmp 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp  --check-prefix=CHECK-PROTECT1 # RUN: at line 7
+ FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp --check-prefix=CHECK-PROTECT1
+ not env ASAN_OPTIONS=protect_shadow_gap=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/cuda_test.cpp.tmp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp:28:21: error: CHECK-PROTECT1: expected string not found in input
 // CHECK-PROTECT1: AddressSanitizer: SEGV on unknown address 0x0000bfff8000
                    ^
<stdin>:1:1: note: scanning from here
=================================================================
^
<stdin>:2:18: note: possible intended match here
==464215==ERROR: AddressSanitizer: mmap requested memory range 0x200000000-0x1300000000 overlaps with ASan shadow memory
                 ^

Input file: <stdin>
Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ================================================================= 
check:28'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
            2: ==464215==ERROR: AddressSanitizer: mmap requested memory range 0x200000000-0x1300000000 overlaps with ASan shadow memory 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:28'1                      ?                                                                                                        possible intended match
            3:  #0 0x7b0566ccd928 in void* mmap_interceptor<void* (*)(void*, unsigned long, int, int, int, unsigned long long)>(void* (*)(void*, unsigned long, int, int, int, unsigned long long), void*, unsigned long, int, int, int, unsigned long long) /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:202:7 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            4:  #1 0x7b0566ccd509 in mmap /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:7681:3 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5:  #2 0x564c347d95e9 in main /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp:21:7 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6:  #3 0x7b05666351c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  #4 0x7b056663528a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>

--

```
</details>
<details>
<summary>AddressSanitizer-x86_64-linux-dynamic.TestCases/asan_mmap_oob_aix.cpp</summary>

```
Exit Code: 1

Command Output (stderr):
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only  -m64  -shared-libasan -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp && not  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp 2>&1 | FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp # RUN: at line 1
+ /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libasan -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp
+ not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Output/asan_mmap_oob_aix.cpp.tmp
+ FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp:17:11: error: CHECK: expected string not found in input
// CHECK: overlaps with ASan shadow memory
          ^
<stdin>:2:63: note: scanning from here
==569895==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range
                                                              ^
<stdin>:2:119: note: possible intended match here
==569895==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range
                                                                                                                      ^

Input file: <stdin>
Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: ================================================================= 
            2: ==569895==ERROR: AddressSanitizer: mmap requested memory range 0xa01000000000000-0xa01000000001000 is outside ASan's instrumentable application memory range 
check:17'0                                                                   X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:17'1                                                                                                                           ?                                       possible intended match
            3:  #0 0x78e17be56c5c in void* mmap_interceptor<void* (*)(void*, unsigned long, int, int, int, unsigned long long)>(void* (*)(void*, unsigned long, int, int, int, unsigned long long), void*, unsigned long, int, int, int, unsigned long long) /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:211:7 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            4:  #1 0x78e17be56509 in mmap /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:7681:3 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            5:  #2 0x55fe8804f5b6 in main /home/gha/actions-runner/_work/llvm-project/llvm-project/compiler-rt/test/asan/TestCases/asan_mmap_oob_aix.cpp:10:17 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            6:  #3 0x78e17b7be1c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            7:  #4 0x78e17b7be28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) 
check:17'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list