conda-forge / conda-forge/mlir-python-bindings-feedstock

Segfault on Context creation

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
0
Forks
9
Avg merge
18h 48m
Merged PRs (30d)
3

Description

### Solution to issue cannot be found in the documentation.

- [x] I checked the documentation.

### Issue

`mlir.ir.Context()` leads to segfault; e.g.

```
python -c "from mlir import ir; ir.Context()"
LLVM ERROR: Attempting to attach an interface to an unregistered operation builtin.unrealized_conversion_cast.
/var/folders/6k/r_fxgcx50z3gkdnckfxkfrv40000gp/T/tmpydcpwyd3: line 3: 5863 Abort trap: 6 python -c 'from mlir import ir; ir.Context()'
```

This matches the error described in https://discourse.llvm.org/t/error-when-importing-custom-dialect-python-bindings-on-windows/82946/3

### Installed packages

```shell
# Name Version Build Channel
bzip2 1.0.8 hd037594_8 conda-forge
ca-certificates 2025.8.3 hbd8a1cb_0 conda-forge
icu 75.1 hfee45f7_0 conda-forge
libblas 3.9.0 36_h51639a9_openblas conda-forge
libcblas 3.9.0 36_hb0561ab_openblas conda-forge
libcxx 21.1.2 hf598326_0 conda-forge
libexpat 2.7.1 hec049ff_0 conda-forge
libffi 3.4.6 h1da3d7d_1 conda-forge
libgfortran 15.1.0 hfdf1602_1 conda-forge
libgfortran5 15.1.0 hb74de2c_1 conda-forge
libiconv 1.18 h23cfdf5_2 conda-forge
liblapack 3.9.0 36_hd9741b5_openblas conda-forge
libllvm21 21.1.0 h8e0c9ce_1 conda-forge
liblzma 5.8.1 h39f12f2_2 conda-forge
libmlir21 21.1.0 h7fab700_0 conda-forge
libmpdec 4.0.0 h5505292_0 conda-forge
libopenblas 0.3.30 openmp_h60d53f8_2 conda-forge
libsqlite 3.50.4 h4237e3c_0 conda-forge
libxml2 2.15.0 h9329255_1 conda-forge
libxml2-16 2.15.0 h0ff4647_1 conda-forge
libzlib 1.3.1 h8359307_2 conda-forge
llvm-openmp 21.1.2 h4a912ad_1 conda-forge
llvm-tools 21.1.0 h855ad52_1 conda-forge
llvm-tools-21 21.1.0 h91fd4e7_1 conda-forge
llvmdev 21.1.0 h91fd4e7_1 conda-forge
mlir 21.1.0 hea31043_0 conda-forge
mlir-python-bindings 21.1.0 py313h04993c6_0 conda-forge
ncurses 6.5 h5e97a16_3 conda-forge
numpy 2.3.3 py313h9771d21_0 conda-forge
openssl 3.5.4 h5503f6c_0 conda-forge
pip 25.2 pyh145f28c_0 conda-forge
python 3.13.7 h5c937ed_100_cp313 conda-forge
python_abi 3.13 8_cp313 conda-forge
pyyaml 6.0.3 py313h7d74516_0 conda-forge
readline 8.2 h1d1bf99_2 conda-forge
tk 8.6.13 h892fb3f_2 conda-forge
tzdata 2025b h78e105d_0 conda-forge
yaml 0.2.5 h925e9cb_3 conda-forge
zstd 1.5.7 h6491c7d_2 conda-forge
```

### Environment info

```shell
active environment : /path/to/dev/temp/mlir/temp_mlir21
active env location : /path/to/dev/temp/mlir/temp_mlir21
shell level : 2
user config file : /path/to/.condarc
populated config files : /path/to/miniconda3-arm64/.condarc
conda version : 25.7.0
conda-build version : 25.5.0
python version : 3.10.14.final.0
solver : libmamba (default)
virtual packages : __archspec=1=m1
__conda=25.7.0=0
__osx=15.6.1=0
__unix=0=0
base environment : /path/to/miniconda3-arm64 (writable)
conda av data dir : /path/to/miniconda3-arm64/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-arm64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /path/to/miniconda3-arm64/pkgs
/path/to/.conda/pkgs
envs directories : /path/to/miniconda3-arm64/envs
/path/to/.conda/envs
platform : osx-arm64
user-agent : conda/25.7.0 requests/2.32.3 CPython/3.10.14 Darwin/24.6.0 OSX/15.6.1 solver/libmamba conda-libmamba-solver/25.4.0 libmambapy/2.0.5 aau/0.5.0 c/. s/. e/. o/.
UID:GID : 502:20
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.