Closed
Description
Reproducing code example:
A test scipy._lib.tests.test__utils::test__aligned_zeros
from 1.2.0rc2, with NumPy built from sources sporadically crashes.
(tscp) [13:28:40 fxsatlin03 test_tmp]$ pytest -v --pyargs scipy._lib.tests.test__util::test__aligned_zeros
================================================= test session starts ==================================================
platform linux -- Python 3.6.5, pytest-3.8.1, py-1.6.0, pluggy-0.7.1 -- ~/miniconda3_cb3/envs/tscp/bin/python
cachedir: .pytest_cache
rootdir: ~/test_tmp, inifile:
collected 1 item
test__util.py::test__aligned_zeros <- ~/miniconda3_cb3/envs/tscp/lib/python3.6/site-packages/scipy/_lib/tests/test__util.py Aborted (core dumped)
The best reproducer I could build is
import numpy as np
buf = np.empty(4, np.uint8)
buf = buf[2:3][:-1]
data = np.ndarray((0,), np.double, buf, order='C')
data.fill(0) # crash
Error message:
(tscp) [13:26:20 vmlin03 test_tmp]$ python scipy_utils.py
python: numpy/core/src/multiarray/lowlevel_strided_loops.c.src:816: _aligned_cast_longlong_to_double: Assertion `npy_is_aligned(dst, __builtin_offsetof(struct {char c; npy_double v;}, v))' failed.
Aborted (core dumped)
Numpy/Python version information:
In [1]: import numpy as np
In [2]: np.__version__
Out[2]: '1.16.0.dev0+22d6157'
Metadata
Metadata
Assignees
Labels
No labels