Open traversaro opened 1 month ago
More detailed backtrace:
(base) root@3d003c853c00:/# python -c "import faulthandler; faulthandler.enable(); import jax; key = jax.random.PRNGKey(0)"
Fatal Python error: Illegal instruction
Current thread 0x0000005501e7a420 (most recent call first):
File "/opt/conda/lib/python3.10/site-packages/jax/_src/interpreters/pxla.py", line 1186 in __call__
File "/opt/conda/lib/python3.10/site-packages/jax/_src/profiler.py", line 335 in wrapper
File "/opt/conda/lib/python3.10/site-packages/jax/_src/pjit.py", line 1488 in _pjit_call_impl_python
File "/opt/conda/lib/python3.10/site-packages/jax/_src/pjit.py", line 1534 in call_impl_cache_miss
File "/opt/conda/lib/python3.10/site-packages/jax/_src/pjit.py", line 1558 in _pjit_call_impl
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 879 in process_primitive
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 391 in bind_with_trace
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 2789 in bind
File "/opt/conda/lib/python3.10/site-packages/jax/_src/pjit.py", line 182 in _python_pjit_helper
File "/opt/conda/lib/python3.10/site-packages/jax/_src/pjit.py", line 305 in cache_miss
File "/opt/conda/lib/python3.10/site-packages/jax/_src/traceback_util.py", line 179 in reraise_with_filtered_traceback
File "/opt/conda/lib/python3.10/site-packages/jax/_src/dispatch.py", line 86 in apply_primitive
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 879 in process_primitive
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 391 in bind_with_trace
File "/opt/conda/lib/python3.10/site-packages/jax/_src/core.py", line 387 in bind
File "/opt/conda/lib/python3.10/site-packages/jax/_src/lax/lax.py", line 559 in _convert_element_type
File "/opt/conda/lib/python3.10/site-packages/jax/_src/numpy/lax_numpy.py", line 2592 in array
File "/opt/conda/lib/python3.10/site-packages/jax/_src/numpy/lax_numpy.py", line 2667 in asarray
File "/opt/conda/lib/python3.10/site-packages/jax/_src/prng.py", line 634 in random_seed
File "/opt/conda/lib/python3.10/site-packages/jax/_src/random.py", line 203 in _key
File "/opt/conda/lib/python3.10/site-packages/jax/_src/random.py", line 241 in PRNGKey
File "<string>", line 1 in <module>
Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, jaxlib.cpu_feature_guard, zstandard.backend_c (total: 15)
Illegal instruction
Solution to issue cannot be found in the documentation.
Issue
The following instructions on linux-64 fail with illegal instruction:
I was not able to test on a physical linux-aarch64 system, so I am not sure if that happens also there. With the pip wheel, this does not happens.
Installed packages
Environment info
I did not do a detailed analysis, but the issue seems present also in older jax/jaxsim versions.