llvm / llvm/llvm-project

[MLIR] check-mlir and check-mlir-python tests error. from mlir.ir import Context, Module error.

Open
#164,197 16 comments 0 reactions 0 assignees View on GitHub
mlir mlir:python
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

I'm building MLIR and its' python bindings in docker(nvcr.io/nvidia/pytorch:25.01-py3). CPU is Intel I9-14700 and GPU is RTX Pro 6000. The building commands I used is:

```shell
mkdir llvm-project/build
cd llvm-project/build
cmake -G Ninja ../llvm -DMLIR_ENABLE_BINDINGS_PYTHON=On -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_BUILD_EXAMPLES=ON -DLLVM_TARGETS_TO_BUILD="Native;NVPTX" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_LLD=ON -DLLVM_CCACHE_BUILD=ON -DLLVM_USE_SANITIZER="Address;Undefined" -DMLIR_INCLUDE_INTEGRATION_TESTS=ON
cmake --build . --target check-mlir
```

I got tests failed info below:

# 1. `check-mlir` error. `check-mlir-python` error

```text
********************
FAIL: MLIR :: python/dialects/linalg/opdsl/test_core_named_ops.py (113 of 3010)
******************** TEST 'MLIR :: python/dialects/linalg/opdsl/test_core_named_ops.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib .ops.core_named_ops | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/test_core_named_ops.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib .ops.core_named_ops
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/test_core_named_ops.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/test_core_named_ops.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/vector.py (114 of 3010)
******************** TEST 'MLIR :: python/dialects/vector.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/vector.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/vector.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/vector.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/vector.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/vector.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/builtin.py (115 of 3010)
******************** TEST 'MLIR :: python/dialects/builtin.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/builtin.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/builtin.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/builtin.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/builtin.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/builtin.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/transform_sparse_tensor_ext.py (116 of 3010)
******************** TEST 'MLIR :: python/dialects/transform_sparse_tensor_ext.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_sparse_tensor_ext.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_sparse_tensor_ext.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_sparse_tensor_ext.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_sparse_tensor_ext.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_sparse_tensor_ext.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: Integration/Dialect/SparseTensor/python/test_stress.py (117 of 3010)
******************** TEST 'MLIR :: Integration/Dialect/SparseTensor/python/test_stress.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env SUPPORT_LIB=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
# executed command: env SUPPORT_LIB=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/python/test_stress.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/math_dialect.py (118 of 3010)
******************** TEST 'MLIR :: python/dialects/math_dialect.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/math_dialect.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/math_dialect.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/math_dialect.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/math_dialect.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/math_dialect.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/ir/attributes.py (119 of 3010)
******************** TEST 'MLIR :: python/ir/attributes.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/attributes.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/attributes.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/attributes.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/attributes.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/attributes.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/amdgpu.py (120 of 3010)
******************** TEST 'MLIR :: python/dialects/amdgpu.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/amdgpu.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/amdgpu.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/amdgpu.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/amdgpu.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/amdgpu.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/scf.py (121 of 3010)
******************** TEST 'MLIR :: python/dialects/scf.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/scf.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/scf.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/scf.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/scf.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/scf.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/transform_structured_ext.py (122 of 3010)
******************** TEST 'MLIR :: python/dialects/transform_structured_ext.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_structured_ext.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_structured_ext.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_structured_ext.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_structured_ext.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_structured_ext.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/transform_loop_ext.py (123 of 3010)
******************** TEST 'MLIR :: python/dialects/transform_loop_ext.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_loop_ext.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_loop_ext.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform_loop_ext.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_loop_ext.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform_loop_ext.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/linalg/opdsl/emit_convolution.py (124 of 3010)
******************** TEST 'MLIR :: python/dialects/linalg/opdsl/emit_convolution.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/emit_convolution.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/emit_convolution.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/emit_convolution.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/emit_convolution.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/emit_convolution.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/sparse_tensor/passes.py (125 of 3010)
******************** TEST 'MLIR :: python/dialects/sparse_tensor/passes.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/sparse_tensor/passes.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/sparse_tensor/passes.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/sparse_tensor/passes.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/sparse_tensor/passes.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/sparse_tensor/passes.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/execution_engine.py (126 of 3010)
******************** TEST 'MLIR :: python/execution_engine.py' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
env MLIR_RUNNER_UTILS=/root/commonlib/llvm-project/build/lib/libmlir_runner_utils.so MLIR_C_RUNNER_UTILS=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/execution_engine.py 2>&1 | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/execution_engine.py
# executed command: env MLIR_RUNNER_UTILS=/root/commonlib/llvm-project/build/lib/libmlir_runner_utils.so MLIR_C_RUNNER_UTILS=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/execution_engine.py
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/execution_engine.py
# .---command stderr------------
# | /root/commonlib/llvm-project/mlir/test/python/execution_engine.py:63:16: error: CHECK-LABEL: expected string not found in input
# | # CHECK-LABEL: TEST: testInvalidModule
# | ^
# | :2:18: note: scanning from here
# | TEST: testCapsule
# | ^
# | :3:137: note: possible intended match here
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | ^
# |
# | Input file:
# | Check file: /root/commonlib/llvm-project/mlir/test/python/execution_engine.py
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1:
# | 2: TEST: testCapsule
# | label:63'0 X error: no match found
# | 3: /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | label:63'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:63'1 ? possible intended match
# | 4: /usr/include/string.h:44:28: note: nonnull attribute specified here
# | label:63'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# | label:63'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
FAIL: MLIR :: python/dialects/pdl_ops.py (127 of 3010)
******************** TEST 'MLIR :: python/dialects/pdl_ops.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/pdl_ops.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/pdl_ops.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/pdl_ops.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/pdl_ops.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/pdl_ops.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/live_operations.py (128 of 3010)
******************** TEST 'MLIR :: python/live_operations.py' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/live_operations.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/live_operations.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1

--

********************
FAIL: MLIR :: python/ir/value.py (129 of 3010)
******************** TEST 'MLIR :: python/ir/value.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/value.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/value.py --enable-var-scope=false
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/value.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/value.py --enable-var-scope=false
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/value.py --enable-var-scope=false
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/ir/array_attributes.py (130 of 3010)
******************** TEST 'MLIR :: python/ir/array_attributes.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/array_attributes.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/array_attributes.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/ir/array_attributes.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/array_attributes.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/ir/array_attributes.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/transform.py (131 of 3010)
******************** TEST 'MLIR :: python/dialects/transform.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/transform.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/transform.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/linalg/opdsl/metadata.py (132 of 3010)
******************** TEST 'MLIR :: python/dialects/linalg/opdsl/metadata.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib --file /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/metadata.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/metadata.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib --file /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/metadata.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/metadata.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/metadata.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/tensor.py (133 of 3010)
******************** TEST 'MLIR :: python/dialects/tensor.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/tensor.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/tensor.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/tensor.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/tensor.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/tensor.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/nvgpu.py (134 of 3010)
******************** TEST 'MLIR :: python/dialects/nvgpu.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/nvgpu.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/nvgpu.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/nvgpu.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/nvgpu.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/nvgpu.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/cf.py (135 of 3010)
******************** TEST 'MLIR :: python/dialects/cf.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/cf.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/cf.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/cf.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/cf.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/cf.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/arith_llvm.py (136 of 3010)
******************** TEST 'MLIR :: python/dialects/arith_llvm.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/arith_llvm.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/arith_llvm.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/arith_llvm.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/arith_llvm.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/arith_llvm.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/gpu/module-to-binary-nvvm.py (137 of 3010)
******************** TEST 'MLIR :: python/dialects/gpu/module-to-binary-nvvm.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/gpu/module-to-binary-nvvm.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/gpu/module-to-binary-nvvm.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/gpu/module-to-binary-nvvm.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/gpu/module-to-binary-nvvm.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/gpu/module-to-binary-nvvm.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/llvm.py (138 of 3010)
******************** TEST 'MLIR :: python/dialects/llvm.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/llvm.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/llvm.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 /root/commonlib/llvm-project/mlir/test/python/dialects/llvm.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/llvm.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/llvm.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: python/dialects/linalg/opdsl/shape_maps_iteration.py (139 of 3010)
******************** TEST 'MLIR :: python/dialects/linalg/opdsl/shape_maps_iteration.py' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib --file /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py
# executed command: env LD_PRELOAD=/usr/lib/llvm-20/lib/clang/20/lib/linux/libclang_rt.asan-x86_64.so /opt/conda/bin/python3.10 -m mlir.dialects.linalg.opdsl.dump_oplib --file /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py
# .---command stderr------------
# | /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26: runtime error: null pointer passed as argument 2, which is declared to never be null
# | /usr/include/string.h:44:28: note: nonnull attribute specified here
# | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/conda/lib/python3.10/site-packages/nanobind/src/nb_func.cpp:1098:26
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/python/dialects/linalg/opdsl/shape_maps_iteration.py
# `-----------------------------
# error: command failed with exit status: 2

--

********************
FAIL: MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir (140 of 3010)
******************** TEST 'MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 22
/root/commonlib/llvm-project/build/bin/mlir-opt /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir --sparsifier="enable-runtime-library=false" | /root/commonlib/llvm-project/build/bin/mlir-runner -e main -entry-point-result=void -shared-libs=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so,/root/commonlib/llvm-project/build/lib/libmlir_runner_utils.so | /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
# executed command: /root/commonlib/llvm-project/build/bin/mlir-opt /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir --sparsifier=enable-runtime-library=false
# executed command: /root/commonlib/llvm-project/build/bin/mlir-runner -e main -entry-point-result=void -shared-libs=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so,/root/commonlib/llvm-project/build/lib/libmlir_runner_utils.so
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
# | Stack dump:
# | 0. Program arguments: /root/commonlib/llvm-project/build/bin/mlir-runner -e main -entry-point-result=void -shared-libs=/root/commonlib/llvm-project/build/lib/libmlir_c_runner_utils.so,/root/commonlib/llvm-project/build/lib/libmlir_runner_utils.so
# | #0 0x00005818f2b3821a ___interceptor_backtrace build-llvm/tools/clang/stage2-bins/runtimes/runtimes-bins/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:4497:13
# | #1 0x00005818f324ff68 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /root/commonlib/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# | #2 0x00005818f32495d9 llvm::sys::RunSignalHandlers() /root/commonlib/llvm-project/llvm/lib/Support/Signals.cpp:0:5
# | #3 0x00005818f3251e3b SignalHandler(int, siginfo_t*, void*) /root/commonlib/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# | #4 0x00007deec9fe1330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #5 0x00007deeca2dbd23 std::ostream::sentry::sentry(std::ostream&) /home/conda/feedstock_root/build_artifacts/gcc_compilers_1715013812730/work/build/x86_64-conda-linux-gnu/libstdc++-v3/include/bits/ostream.tcc:51:19
# | #6 0x00007deeca2dce32 std::basic_ostream>& std::__ostream_insert>(std::basic_ostream>&, char const*, long) /home/conda/feedstock_root/build_artifacts/gcc_compilers_1715013812730/work/build/x86_64-conda-linux-gnu/libstdc++-v3/include/bits/ostream_insert.h:84:7
# | #7 0x000079eec756f583 void impl::printMemRef(UnrankedMemRefType&) /root/commonlib/llvm-project/mlir/include/mlir/ExecutionEngine/RunnerUtils.h:239:15
# | #8 0x000079eec7570309 printMemrefF64 /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/RunnerUtils.cpp:153:1
# | #9 0x000079eec7310891
# | #10 0x000079eec731385d
# | #11 0x00005818f4e14bda compileAndExecute((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, void**, std::unique_ptr>) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:0:3
# | #12 0x00005818f4e0d907 compileAndExecuteVoidFunction((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, std::unique_ptr>) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:239:10
# | #13 0x00005818f4e09618 mlir::JitRunnerMain(int, char**, mlir::DialectRegistry const&, mlir::JitRunnerConfig) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:397:23
# | #14 0x00005818f2bcf3e4 main /root/commonlib/llvm-project/mlir/tools/mlir-runner/mlir-runner.cpp:93:10
# | #15 0x00007deec9fc61ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #16 0x00007deec9fc628b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #17 0x00005818f2af0ce5 _start (/root/commonlib/llvm-project/build/bin/mlir-runner+0x7ca8ce5)
# | AddressSanitizer:DEADLYSIGNAL
# | =================================================================
# | ==3595780==ERROR: AddressSanitizer: SEGV on unknown address 0xffffffffffffffe8 (pc 0x7deeca0c328d bp 0x7deec9bf3670 sp 0x7deec9bf35d8 T0)
# | ==3595780==The signal is caused by a READ memory access.
# | #0 0x7deeca0c328d in syscall (/lib/x86_64-linux-gnu/libc.so.6+0x12728d) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)
# | #1 0x5818f3251e68 in SignalHandler(int, siginfo_t*, void*) /root/commonlib/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:7
# | #2 0x7deec9fe132f (/lib/x86_64-linux-gnu/libc.so.6+0x4532f) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)
# | #3 0x7deeca2dbd22 in std::ostream::sentry::sentry(std::ostream&) /home/conda/feedstock_root/build_artifacts/gcc_compilers_1715013812730/work/build/x86_64-conda-linux-gnu/libstdc++-v3/include/bits/ostream.tcc:48:7
# | #4 0x7deeca2dce31 in std::basic_ostream>& std::__ostream_insert>(std::basic_ostream>&, char const*, long) /home/conda/feedstock_root/build_artifacts/gcc_compilers_1715013812730/work/build/x86_64-conda-linux-gnu/libstdc++-v3/include/bits/ostream_insert.h:83:39
# | #5 0x79eec756f582 in operator<< > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/ostream:667:2
# | #6 0x79eec756f582 in void impl::printMemRef(UnrankedMemRefType&) /root/commonlib/llvm-project/mlir/include/mlir/ExecutionEngine/RunnerUtils.h:238:13
# | #7 0x79eec7570308 in _mlir_ciface_printMemrefF64 /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/RunnerUtils.cpp:109:3
# | #8 0x79eec7570308 in printMemrefF64 /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/RunnerUtils.cpp:152:3
# | #9 0x79eec7310890 ()
# | #10 0x79eec731385c ()
# | #11 0x5818f4e14bd9 in compileAndExecute((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, void**, std::unique_ptr>) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:215:3
# | #12 0x5818f4e0d906 in compileAndExecuteVoidFunction((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, std::unique_ptr>) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:239:10
# | #13 0x5818f4e09617 in mlir::JitRunnerMain(int, char**, mlir::DialectRegistry const&, mlir::JitRunnerConfig) /root/commonlib/llvm-project/mlir/lib/ExecutionEngine/JitRunner.cpp:397:23
# | #14 0x5818f2bcf3e3 in main /root/commonlib/llvm-project/mlir/tools/mlir-runner/mlir-runner.cpp:93:10
# | #15 0x7deec9fc61c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)
# | #16 0x7deec9fc628a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e)
# | #17 0x5818f2af0ce4 in _start (/root/commonlib/llvm-project/build/bin/mlir-runner+0x7ca8ce4) (BuildId: adb805d62711d6f89e1775094a01b3fd8cbfb3f2)
# |
# | ==3595780==Register values:
# | rax = 0x0000000000000000 rbx = 0x00007deec9bf35e0 rcx = 0x00007deeca0c328d rdx = 0x000000000000000b
# | rdi = 0x000000000036de04 rsi = 0x000000000036de04 rbp = 0x00007deec9bf3670 rsp = 0x00007deec9bf35d8
# | r8 = 0x0000000000000000 r9 = 0x0000000000000000 r10 = 0x00007deec9bf37b0 r11 = 0x0000000000000246
# | r12 = 0x0000000000000000 r13 = 0x000079eec7e9acf0 r14 = 0x000000000036de04 r15 = 0x00000f3e58fcb580
# | AddressSanitizer can not provide additional info.
# | SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x12728d) (BuildId: 274eec488d230825a136fa9c4d85370fed7a0a5e) in syscall
# | ==3595780==ABORTING
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /root/commonlib/llvm-project/build/bin/FileCheck /root/commonlib/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
# `-----------------------------
# error: command failed with exit status: 2

--

********************
********************
Failed Tests (140):
MLIR :: Integration/Dialect/Async/CPU/microbench-linalg-async-parallel-for.mlir
MLIR :: Integration/Dialect/Async/CPU/microbench-scf-async-parallel-for.mlir
MLIR :: Integration/Dialect/Async/CPU/test-async-parallel-for-1d.mlir
MLIR :: Integration/Dialect/Async/CPU/test-async-parallel-for-2d.mlir
MLIR :: Integration/Dialect/Linalg/CPU/matmul-vs-matvec.mlir
MLIR :: Integration/Dialect/Linalg/CPU/mmt4d.mlir
MLIR :: Integration/Dialect/Linalg/CPU/pack-dynamic-inner-tile.mlir
MLIR :: Integration/Dialect/Linalg/CPU/pack-unpack-mmt4d.mlir
MLIR :: Integration/Dialect/Linalg/CPU/rank-reducing-subview.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-collapse-tensor.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-1d-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-1d-nwc-wcf-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-2d-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-2d-nhwc-hwcf-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-3d-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-conv-3d-ndhwc-dhwcf-call.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-elementwise.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-expand-tensor.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-matmul-masked-vec.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-one-shot-bufferize.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-padtensor.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-subtensor-insert-multiple-uses.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-subtensor-insert.mlir
MLIR :: Integration/Dialect/Linalg/CPU/test-tensor-e2e.mlir
MLIR :: Integration/Dialect/Linalg/CPU/unpack-dynamic-inner-tile.mlir
MLIR :: Integration/Dialect/MemRef/print-memref.mlir
MLIR :: Integration/Dialect/MemRef/verify-memref.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/concatenate_dim_0.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/concatenate_dim_0_permute.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/concatenate_dim_1.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/concatenate_dim_1_permute.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/dense_output_f16.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/reshape_dot.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_flatten.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matmul.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matmul_slice.mlir
MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir
MLIR :: Integration/Dialect/SparseTensor/python/test_SDDMM.py
MLIR :: Integration/Dialect/SparseTensor/python/test_SpMM.py
MLIR :: Integration/Dialect/SparseTensor/python/test_all_dense.py
MLIR :: Integration/Dialect/SparseTensor/python/test_output.py
MLIR :: Integration/Dialect/SparseTensor/python/test_stress.py
MLIR :: Integration/Dialect/Standard/CPU/test_subview.mlir
MLIR :: Integration/Dialect/Tosa/CPU/test-maxpool-dynamic.mlir
MLIR :: Integration/Dialect/Vector/CPU/print-fp.mlir
MLIR :: Integration/Dialect/Vector/CPU/transfer-to-loops.mlir
MLIR :: mlir-runner/async-func.mlir
MLIR :: mlir-runner/async-group.mlir
MLIR :: mlir-runner/async-value.mlir
MLIR :: mlir-runner/copy.mlir
MLIR :: mlir-runner/global-memref.mlir
MLIR :: mlir-runner/memref-reinterpret-cast.mlir
MLIR :: mlir-runner/memref-reshape.mlir
MLIR :: mlir-runner/unranked-memref.mlir
MLIR :: mlir-runner/utils.mlir
MLIR :: python/dialects/affine.py
MLIR :: python/dialects/amdgpu.py
MLIR :: python/dialects/arith_dialect.py
MLIR :: python/dialects/arith_llvm.py
MLIR :: python/dialects/async_dialect.py
MLIR :: python/dialects/builtin.py
MLIR :: python/dialects/cf.py
MLIR :: python/dialects/complex_dialect.py
MLIR :: python/dialects/emitc_dialect.py
MLIR :: python/dialects/func.py
MLIR :: python/dialects/gpu/dialect.py
MLIR :: python/dialects/gpu/module-to-binary-nvvm.py
MLIR :: python/dialects/index_dialect.py
MLIR :: python/dialects/linalg/opdsl/arguments.py
MLIR :: python/dialects/linalg/opdsl/assignments.py
MLIR :: python/dialects/linalg/opdsl/doctests.py
MLIR :: python/dialects/linalg/opdsl/emit_convolution.py
MLIR :: python/dialects/linalg/opdsl/emit_fill.py
MLIR :: python/dialects/linalg/opdsl/emit_matmul.py
MLIR :: python/dialects/linalg/opdsl/emit_misc.py
MLIR :: python/dialects/linalg/opdsl/emit_pooling.py
MLIR :: python/dialects/linalg/opdsl/metadata.py
MLIR :: python/dialects/linalg/opdsl/shape_maps_iteration.py
MLIR :: python/dialects/linalg/opdsl/test_core_named_ops.py
MLIR :: python/dialects/linalg/ops.py
MLIR :: python/dialects/linalg/utils.py
MLIR :: python/dialects/llvm.py
MLIR :: python/dialects/math_dialect.py
MLIR :: python/dialects/memref.py
MLIR :: python/dialects/ml_program.py
MLIR :: python/dialects/nvgpu.py
MLIR :: python/dialects/nvvm.py
MLIR :: python/dialects/ods_helpers.py
MLIR :: python/dialects/openmp_ops.py
MLIR :: python/dialects/pdl_ops.py
MLIR :: python/dialects/pdl_types.py
MLIR :: python/dialects/python_test.py
MLIR :: python/dialects/quant.py
MLIR :: python/dialects/rocdl.py
MLIR :: python/dialects/scf.py
MLIR :: python/dialects/shape.py
MLIR :: python/dialects/smt.py
MLIR :: python/dialects/sparse_tensor/dialect.py
MLIR :: python/dialects/sparse_tensor/passes.py
MLIR :: python/dialects/spirv_dialect.py
MLIR :: python/dialects/tensor.py
MLIR :: python/dialects/transform.py
MLIR :: python/dialects/transform_bufferization_ext.py
MLIR :: python/dialects/transform_debug_ext.py
MLIR :: python/dialects/transform_extras.py
MLIR :: python/dialects/transform_gpu_ext.py
MLIR :: python/dialects/transform_interpreter.py
MLIR :: python/dialects/transform_loop_ext.py
MLIR :: python/dialects/transform_memref_ext.py
MLIR :: python/dialects/transform_nvgpu_ext.py
MLIR :: python/dialects/transform_sparse_tensor_ext.py
MLIR :: python/dialects/transform_structured_ext.py
MLIR :: python/dialects/transform_tensor_ext.py
MLIR :: python/dialects/transform_tune_ext.py
MLIR :: python/dialects/transform_vector_ext.py
MLIR :: python/dialects/vector.py
MLIR :: python/execution_engine.py
MLIR :: python/integration/dialects/linalg/opsrun.py
MLIR :: python/integration/dialects/pdl.py
MLIR :: python/integration/dialects/transform.py
MLIR :: python/ir/affine_expr.py
MLIR :: python/ir/affine_map.py
MLIR :: python/ir/array_attributes.py
MLIR :: python/ir/attributes.py
MLIR :: python/ir/blocks.py
MLIR :: python/ir/builtin_types.py
MLIR :: python/ir/context_managers.py
MLIR :: python/ir/diagnostic_handler.py
MLIR :: python/ir/dialects.py
MLIR :: python/ir/insertion_point.py
MLIR :: python/ir/integer_set.py
MLIR :: python/ir/location.py
MLIR :: python/ir/module.py
MLIR :: python/ir/operation.py
MLIR :: python/ir/symbol_table.py
MLIR :: python/ir/value.py
MLIR :: python/live_operations.py
MLIR :: python/multithreaded_tests.py
MLIR :: python/pass_manager.py

Testing Time: 71.49s

Total Discovered Tests: 3352
Unsupported : 140 (4.18%)
Passed : 3071 (91.62%)
Expectedly Failed: 1 (0.03%)
Failed : 140 (4.18%)
```

# 3. `from mlir.ir import Context, Module` error

```text
>>> from mlir.ir import Context, Module
Traceback (most recent call last):
File "", line 1, in
File "/root/commonlib/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/ir.py", line 5, in
from ._mlir_libs._mlir.ir import *
File "/root/commonlib/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/__init__.py", line 235, in
_site_initialize()
File "/root/commonlib/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/__init__.py", line 94, in _site_initialize
from ._mlir import ir
ImportError: /root/commonlib/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/libMLIRPythonCAPI.so.21.1: undefined symbol: __asan_option_detect_stack_use_after_return
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the supplied CMake configuration and run one affected test such as mlir/test/python/dialects/vector.py under the shown LD_PRELOAD setting. Inspect the nanobind diagnostic at nb_func.cpp:1098 and compare it with the empty FileCheck output. Done means the affected check-mlir Python tests run without the UBSan failure and produce their expected FileCheck input.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.