In ndarray.cpp, the function from_data_impl calls &shape.front() and &strides.front() for possibly empty vectors. This is, at best, undefined behavior. At worst, it triggers a crash (observed on Redhat/rocky 8&9, where I'm assuming boost::python packages were built with -D_GLIBCXX_DEBUG).
RECOMMEND: change &vec.front() to vec.data() to avoid UB and potential crashes.
In ndarray.cpp, the function
from_data_implcalls&shape.front()and&strides.front()for possibly empty vectors. This is, at best, undefined behavior. At worst, it triggers a crash (observed on Redhat/rocky 8&9, where I'm assuming boost::python packages were built with-D_GLIBCXX_DEBUG).RECOMMEND: change
&vec.front()tovec.data()to avoid UB and potential crashes.