realloc() error for test_make_undirected on Python 3.6
Tests fail to run after commit 6d6be7b1 on Python 3.6 (latest from repo for now, cpython commit fdad0c0). Tested on Gentoo (GCC 4.9.4) and Fedora (GCC 6.3.1). Cython version 0.25.2, Numpy 1.11.3, Scipy 0.18.1, OpenBLAS 0.2.15 and MKL 11.3.2.181 (both). Precise error message:
...
.virtualenvs/kwant_test_py36/lib/python3.6/site-packages/kwant/graph/tests/test_utils.py::test_make_undirected *** Error in `python': realloc(): invalid old size: 0x00007fd1959d07d0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x6f383)[0x7fd1aeab8383]
...
Other logs are attached.
Steps to reproduce:
- Install Python 3.6 from Git (
./configure --prefix=~/.local && make && make install
or similar) - Make virtual environment, based on it.
pip install cython nose pytest numpy scipy matplotlib
- Install Tinyarray from master and any revision of Kwant starting from specified commit.
- Run Kwant tests.
Other notes: numpy and scipy tests seem to pass without errors.