Issue 1:
$ python -c "import scipy; scipy.test('full')"

Running unit tests for scipy
NumPy version 1.10.4
NumPy relaxed strides checking option: False
NumPy is installed in /home/user/anaconda/lib/python2.7/site-packages/numpy
SciPy version 0.17.0
SciPy is installed in /home/user/anaconda/lib/python2.7/site-packages/scipy
Python version 2.7.11 |Anaconda 2.3.0 (64-bit)| (default, Dec 6 2015, 18:08:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
nose version 1.3.7
/home/user/anaconda/lib/python2.7/site-packages/numpy/lib/utils.py:99: DeprecationWarning: `scipy.weave` is deprecated, use `weave` instead!
warnings.warn(depdoc, DeprecationWarning)
.....................................................................................................................................................................................................................................................................K..................................................................................................................................................................................................................................................................................................................K.........................................................................................K....................................................................K..K................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................0-th dimension must be fixed to 3 but got 15
..0-th dimension must be fixed to 3 but got 5
..............0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
.0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
.0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
0-th dimension must be fixed to 4 but got 2
................................K............................................................................................................................................................................................................................................................................................................K...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Segmentation fault (core dumped)

Issue 2:
Hi,

My config: Centos 5.9 + gfortran + gcc + MKL 10.3. I am building a recent master, and the test suite crashes for scipy.linalg.interpolative.

The following script reproduces the crash 100 %:

import scipy.linalg.interpolative as pymatrixid
pymatrixid.seed('default')

Valgrind output:

==13987== Memcheck, a memory error detector
==13987== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==13987== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==13987== Command: python yo.py
==13987==
imported !
==13987== Invalid read of size 4
==13987== at 0x703D721: master.0.id_srand_ (id_rand_subr_1.f:144)
==13987== by 0x703DB3A: id_srando_ (id_rand_subr_1.f:132)
==13987== by 0x701928C: f2py_rout__interpolative_id_srando (_interpolativemodule.c:1845)
==13987== by 0x702D3E1: fortran_call (fortranobject.c:346)
==13987== by 0x403264B: PyObject_Call (abstract.c:2529)
==13987== by 0x40C5AD5: PyEval_EvalFrameEx (ceval.c:4239)
==13987== by 0x40CA9C5: PyEval_EvalFrameEx (ceval.c:4107)
==13987== by 0x40CBF4B: PyEval_EvalCodeEx (ceval.c:3253)
==13987== by 0x40C9E3C: PyEval_EvalFrameEx (ceval.c:4117)
==13987== by 0x40CBF4B: PyEval_EvalCodeEx (ceval.c:3253)
==13987== by 0x40CBFE2: PyEval_EvalCode (ceval.c:667)
==13987== by 0x40E5275: run_mod (pythonrun.c:1353)
==13987== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13987==
==13987==
==13987== Process terminating with default action of signal 11 (SIGSEGV)
==13987== Access not within mapped region at address 0x0
==13987== at 0x703D721: master.0.id_srand_ (id_rand_subr_1.f:144)
==13987== by 0x703DB3A: id_srando_ (id_rand_subr_1.f:132)
==13987== by 0x701928C: f2py_rout__interpolative_id_srando (_interpolativemodule.c:1845)
==13987== by 0x702D3E1: fortran_call (fortranobject.c:346)
==13987== by 0x403264B: PyObject_Call (abstract.c:2529)
==13987== by 0x40C5AD5: PyEval_EvalFrameEx (ceval.c:4239)
==13987== by 0x40CA9C5: PyEval_EvalFrameEx (ceval.c:4107)
==13987== by 0x40CBF4B: PyEval_EvalCodeEx (ceval.c:3253)
==13987== by 0x40C9E3C: PyEval_EvalFrameEx (ceval.c:4117)
==13987== by 0x40CBF4B: PyEval_EvalCodeEx (ceval.c:3253)
==13987== by 0x40CBFE2: PyEval_EvalCode (ceval.c:667)
==13987== by 0x40E5275: run_mod (pythonrun.c:1353)
==13987== If you believe this happened as a result of a stack
==13987== overflow in your program's main thread (unlikely but
==13987== possible), you can try to increase the size of the
==13987== main thread stack using the --main-stacksize= flag.
==13987== The main thread stack size used in this run was 10485760.
==13987==
==13987== HEAP SUMMARY:
==13987== in use at exit: 7,453,970 bytes in 4,617 blocks
==13987== total heap usage: 69,202 allocs, 64,585 frees, 83,900,100 bytes allocated
==13987==
==13987== LEAK SUMMARY:
==13987== definitely lost: 24 bytes in 1 blocks
==13987== indirectly lost: 0 bytes in 0 blocks
==13987== possibly lost: 622,159 bytes in 769 blocks
==13987== still reachable: 6,831,771 bytes in 3,846 blocks
==13987== suppressed: 16 bytes in 1 blocks
==13987== Rerun with --leak-check=full to see details of leaked memory
==13987==
==13987== For counts of detected and suppressed errors, rerun with: -v
==13987== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2621 from 129)
Segmentation fault