inaos / iron-array

2 stars 0 forks source link

Fatal Python error in test_oindex #567

Closed jdavid closed 2 years ago

jdavid commented 2 years ago
$ pytest iarray/tests/test_oindex.py::test_oindex[shape2-chunks2-blocks2-True-test_slice_acontiguous.iarr-float64]
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.9.2, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/jdavid/sandboxes/Francesc/iron-array-python, configfile: pytest.ini
collected 1 item                                                                                                                                                                                                                             

iarray/tests/test_oindex.py Fatal Python error: Aborted

Current thread 0x00007fb4f079a740 (most recent call first):
  File "/home/jdavid/sandboxes/Francesc/iron-array-python/iarray/iarray_container.py", line 377 in set_orthogonal_selection
  File "/home/jdavid/sandboxes/Francesc/iron-array-python/iarray/iarray_container.py", line 27 in __setitem__
  File "/home/jdavid/sandboxes/Francesc/iron-array-python/iarray/tests/test_oindex.py", line 52 in test_oindex
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/home/jdavid/miniconda3/envs/iarray/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/home/jdavid/miniconda3/envs/iarray/bin/pytest", line 8 in <module>
jdavid commented 2 years ago

By the way tests in iron-array fail, though it's maybe unrelated to the above:

$ ./tests
[...]
TEST 187/451 expression_eval:int32_iterblosc_superchunk_min [FAIL]
TEST 188/451 expression_eval:int32_iterblosc_superchunk_max Segmentation fault (core dumped)
FrancescAlted commented 2 years ago

This is because you need LLVM>=13 at least for min/max (intrinsics)

jdavid commented 2 years ago

Yes, now iron-array tests are ok, after upgrading to llvm 13

But test_oindex still fails.

FrancescAlted commented 2 years ago

Yep. I can reproduce that locally. We will look into that.

martaiborra commented 2 years ago

Fixed in https://github.com/inaos/iron-array-python/commit/a1e198b3c7ceb4167968916bd0e4cbc335d67a42.