llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.97k stars 11.54k forks source link

Interpreter/const.cpp is very flaky with Asan #102858

Open vitalybuka opened 1 month ago

vitalybuka commented 1 month ago

https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-bootstrap-asan/builds/1524/steps/10/logs/stdio

FAIL: Clang :: Interpreter/const.cpp (12377 of 84977)
******************** TEST 'Clang :: Interpreter/const.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 5: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl
RUN: at line 6: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2
+ /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
JIT session error: In graph incr_module_23-jitted-objectbuffer, section .text.startup: relocation target "_ZGVL1a" at address 0x78e3cc019008 is out of range of Delta32 fixup at 0x74e3ca10f012 (<anonymous block> @ 0x74e3ca10f010 + 0x2)
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23, $.incr_module_23.__inits.0 }) }
error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23 }) }
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp:23:16: error: CHECK-NEXT: expected string not found in input
// CHECK-NEXT: f: this = [[THIS]], val = 1
               ^
<stdin>:2:94: note: scanning from here
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1
                                                                                             ^
<stdin>:2:94: note: with "THIS" equal to "0x78e3cc019000"
clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1
                                                                                             ^
<stdin>:4:16: note: possible intended match here
~A, this = 0x78e3cc019000, val = 1
               ^
Input file: <stdin>
Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> A(1), this = 0x78e3cc019000 
           2: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1 
next:23'0                                                                                                  X error: no match found
next:23'1                                                                                                    with "THIS" equal to "0x78e3cc019000"
           3: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl>  
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: ~A, this = 0x78e3cc019000, val = 1 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:23'2                    ?                    possible intended match
>>>>>>
--
llvmbot commented 1 month ago

@llvm/issue-subscribers-orcjit

Author: Vitaly Buka (vitalybuka)

``` FAIL: Clang :: Interpreter/const.cpp (12377 of 84977) ******************** TEST 'Clang :: Interpreter/const.cpp' FAILED ******************** Exit Code: 1 Command Output (stderr): -- RUN: at line 5: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp + cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp + /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp + /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl RUN: at line 6: cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp + cat /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp + /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang-repl -Xcc -O2 + /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp JIT session error: In graph incr_module_23-jitted-objectbuffer, section .text.startup: relocation target "_ZGVL1a" at address 0x78e3cc019008 is out of range of Delta32 fixup at 0x74e3ca10f012 (<anonymous block> @ 0x74e3ca10f010 + 0x2) error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23, $.incr_module_23.__inits.0 }) } error: Failed to materialize symbols: { (main, { __orc_init_func.incr_module_23 }) } /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp:23:16: error: CHECK-NEXT: expected string not found in input // CHECK-NEXT: f: this = [[THIS]], val = 1 ^ <stdin>:2:94: note: scanning from here clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1 ^ <stdin>:2:94: note: with "THIS" equal to "0x78e3cc019000" clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1 ^ <stdin>:4:16: note: possible intended match here ~A, this = 0x78e3cc019000, val = 1 ^ Input file: <stdin> Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/clang/test/Interpreter/const.cpp -dump-input=help explains the following input dump. Input was: <<<<<< 1: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> A(1), this = 0x78e3cc019000 2: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> f: this = 0x78e3cc019000, val = 1 next:23'0 X error: no match found next:23'1 with "THIS" equal to "0x78e3cc019000" 3: clang-repl> clang-repl> clang-repl> clang-repl> clang-repl> next:23'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4: ~A, this = 0x78e3cc019000, val = 1 next:23'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ next:23'2 ? possible intended match >>>>>> -- ```