-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Closed
Labels
Milestone
Description
Our SPARC arch testers have reported a major regression in numpy on SPARC. The test suite reaches numpy/core/tests/test_numeric.py::TestNonzero::test_nonzero_onedim
and crashes due to a bus error.
Reproducing code example:
python3.9 -m pytest -vv -ra -l -Wdefault --deselect numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
Error message:
numpy/core/tests/test_numeric.py::TestNonzero::test_nonzero_onedim Fatal Python error: Bus error
Current thread 0xf723daa0 (most recent call first):
File "/var/tmp/portage/dev-python/numpy-1.21.1/work/numpy-1.21.1-python3_9/test/lib/numpy/core/numeric.py", line 486 in count_nonzero
File "<__array_function__ internals>", line 5 in count_nonzero
File "/var/tmp/portage/dev-python/numpy-1.21.1/work/numpy-1.21.1-python3_9/test/lib/numpy/core/tests/test_numeric.py", line 1267 in test_nonzero_onedim
File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 183 in pytest_pyfunc_call
File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.9/site-packages/_pytest/python.py", line 1641 in runtest
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 255 in <lambda>
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 215 in call_and_report
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 126 in runtestprotocol
File "/usr/lib/python3.9/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 323 in _main
File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
File "/usr/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/usr/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/usr/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/usr/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
File "/usr/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
File "/usr/lib/python3.9/site-packages/pytest/__main__.py", line 5 in <module>
File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
NumPy/Python version information:
NumPy 1.21.1, Python 3.9.6.
########### EXT COMPILER OPTIMIZATION ###########
Platform :
Architecture: unsupported
Compiler : gcc
CPU baseline :
Requested : optimization disabled
Enabled : none
Flags : none
Extra checks: none
Requested : optimization disabled
CPU dispatch :
Enabled : none
Generated : none
CCompilerOpt.cache_flush[804] : write cache to path -> /var/tmp/portage/dev-python/numpy-1.21.1/work/numpy-1.21.1-python3_9/temp.linux-sparc64-3.9/ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: unsupported
Compiler : gcc
CPU baseline :
Requested : optimization disabled
Enabled : none
Flags : none
Extra checks: none
Requested : optimization disabled
CPU dispatch :
Enabled : none
Generated : none