Closed
Closed
Copy link
Description
Describe the issue:
We noticed a regression with numpy 2.0.1 in yt's test suite yt-project/yt#4953, which bisects to gh-26821
This crash (segmentation fault) pops up in a test that use numpy's RNG (seeded), but it is still non-deterministic: it doesn't always happen, though it is frequent enough that I can reliably hit it locally if I run the test a dozen times.
As a shortcut get a MWE, I saved the random-generated data to a .npy
file (uploaded to filetransfer.io, see link in the reprod script)
I suspect the important change in gh-26821 is that Highway is now used by default on macOS+arm64
may be linked to gh-27023
Reproduce the code example:
import numpy as np
# https://filetransfer.io/data-package/VZDHbBLq#link
arr = np.load("array.npy")
np.unique(arr)
Error message:
I don't know how to get gdb on macOS arm64
Python and NumPy Versions:
2.1.0.dev0+git20240725.0819378
3.10.14 (main, Apr 8 2024, 15:51:39) [Clang 15.0.0 (clang-1500.3.9.4)]
Also seen in CI with Python 3.9, FWIW
Runtime Environment:
[{'numpy_version': '2.1.0.dev0+git20240725.0819378',
'python': '3.10.14 (main, Apr 8 2024, 15:51:39) [Clang 15.0.0 '
'(clang-1500.3.9.4)]',
'uname': uname_result(system='Darwin', node='kwanzaabot.home', release='23.5.0', version='Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020', machine='arm64')},
{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'],
'found': ['ASIMDHP'],
'not_found': ['ASIMDFHM']}}]
Context for the issue:
No response