Repository: scipy/scipy

Issue:
linalg tests failing in runtests.py 
My issue is about working on a code change in `scipy.special` tests passed in `special` when performing full test suite before opening a PR the test runner consistently showed a linalg test error. My special changes had no impact on `linalg` (unless if was using `bdtr()` which I don't think is the case here. 

I think the issue was related to https://github.com/scipy/scipy/pull/11304 but not certain (the failing test was in `linalg` in test_decomp tests. Running `git bisect` indicated:
`3b42df528 MAINT: Rewrap ??evr, add lwork, adjust eigh`
is the offending commit. It looks like this may be related to this issue:
https://github.com/scipy/scipy/issues/11576


#### Reproducing code example:
After checking out on a branch `3b42df528 MAINT: Rewrap ??evr, add lwork, adjust eigh`
```
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[3b42df52810813d6a7be352d77c6b28af6aa14ac] MAINT: Rewrap ??evr, add lwork, adjust eigh
(scipy-dev) Lucass-MacBook:scipy rlucas$ python runtests.py -v -s linalg
Building, see build.log...
Build OK (0:00:47.733089 elapsed)
================================================================================ test session starts ================================================================================
platform darwin -- Python 3.6.7, pytest-5.0.1, py-1.7.0, pluggy-0.13.1 -- /Users/rlucas/anaconda3/envs/scipy-dev/bin/python
cachedir: .pytest_cache
rootdir: /Users/rlucas/scipy-dev/scipy, inifile: pytest.ini
collected 1413 items / 5 deselected / 1408 selected                                                                                                                                 

scipy/linalg/tests/test_basic.py::TestSolveBanded::test_real PASSED                                                                                                           [  0%]
scipy/linalg/tests/test_basic.py::TestSolveBanded::test_complex PASSED                                                                                                        [  0%]
scipy/linalg/tests/test_basic.py::TestSolveBanded::test_tridiag_real PASSED         
 ... output truncated ...
```

#### Error message:
```
 ... output truncated ...
scipy/linalg/tests/test_decomp_update.py::TestQRdelete_F::test_neg_strides_1_row PASSED                                                                                       [ 37%]
scipy/linalg/tests/test_decomp_update.py::TestQRdelete_F::test_neg_strides_p_row PASSED                                                                                       [ 37%]
scipy/linalg/tests/test_decomp_update.py::TestQRdelete_F::test_neg_strides_1_col Fatal Python error: Segmentation fault

Current thread 0x00007fff8e2c5380 (most recent call first):
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 74 in _wrapreduction
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 2398 in all
  File "<__array_function__ internals>", line 6 in all
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/core/numeric.py", line 2259 in isclose
  File "<__array_function__ internals>", line 6 in isclose
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 1528 in compare
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 794 in assert_array_compare
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/testing/_private/utils.py", line 1533 in assert_allclose
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/tests/test_decomp_update.py", line 21 in assert_unitary
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/tests/test_decomp_update.py", line 32 in check_qr
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/tests/test_decomp_update.py", line 387 in base_non_simple_strides
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/tests/test_decomp_update.py", line 435 in test_neg_strides_1_col
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/python.py", line 165 in pytest_pyfunc_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/python.py", line 1451 in runtest
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 117 in pytest_runtest_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 192 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 220 in from_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 192 in call_runtest_hook
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 167 in call_and_report
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 87 in runtestprotocol
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 72 in pytest_runtest_protocol
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 278 in pytest_runtestloop
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 257 in _main
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 213 in wrap_session
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 250 in pytest_cmdline_main
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/config/__init__.py", line 74 in main
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/_lib/_testutils.py", line 69 in __call__
  File "runtests.py", line 307 in main
  File "runtests.py", line 496 in <module>
Segmentation fault: 11
(scipy-dev) Lucass-MacBook:scipy rlucas$
```

#### Scipy/Numpy/Python version information:
<!-- You can simply run the following and paste the result in a code block
```
(scipy-dev) Lucass-MacBook:scipy rlucas$ python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 23 2018, 14:01:38) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.5.0.dev0+3b42df5 1.18.1 sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0)
>>> 
(scipy-dev) Lucass-MacBook:scipy rlucas$ conda -V
conda 4.8.2
```
Not sure if the conda version matters here or not. 


Discussion:
Hi @rlucas7 
which one do you use, conda or virtualenv?
That commit didn't touch qr parts so probably mkl version is changed. 
@EverLookNeverSee I have a conda virtual env called (scipy-dev), 
@ilayn thanks for response, is there a way for me to tell which MKL version I'm running? 
(not sure if that aids in debugging but presuming it would) 
@rlucas7 
I had this problem with conda too, until i used virtualenv instead of conda.
@rlucas7 
Try these instructions:
https://github.com/scipy/scipy/issues/11576#issuecomment-592583447
@EverLookNeverSee thanks for the link, I'll take a look this weekend (hopefully) and let you know how it goes. Right now, as long as I don't do dev work on `linalg` I'm ok.
@EverLookNeverSee so I tried those instructions and my build isn't working. The cythonize step isn't succeeding. 

to be clear I'm not able to fully follow the steps you have outlined, specifically:

>remove conda environment(completlly)
>keep only one python3 interpreter on your system

I also have an MXNet dev setup on my home laptop which uses anaconda and python3. That one takes a while to setup and if I remove the 2 things you've mentioned then I'd lose that dev setup. 

it doesn't look like that is the problem though, here is the build issue: 

```
(venv_python) Lucass-MacBook:scipy rlucas$ python3 setup.py build_ext --inplace
Cythonizing sources
Running scipy/linalg/_generate_pyx.py
Running scipy/special/_generate_pyx.py
scipy/linalg/_generate_pyx.py: all files up-to-date
Traceback (most recent call last):
  File "scipy/special/_generate_pyx.py", line 151, in <module>
    import numpy
ModuleNotFoundError: No module named 'numpy'
Traceback (most recent call last):
  File "/Users/rlucas/dev-scipy/scipy/tools/cythonize.py", line 307, in <module>
    main()
  File "/Users/rlucas/dev-scipy/scipy/tools/cythonize.py", line 303, in main
    find_process_files(root_dir)
  File "/Users/rlucas/dev-scipy/scipy/tools/cythonize.py", line 269, in find_process_files
    for result in pool.imap_unordered(lambda fn: process_generate_pyx(fn, lock), jobs):
  File "/usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
  File "/usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/Users/rlucas/dev-scipy/scipy/tools/cythonize.py", line 269, in <lambda>
    for result in pool.imap_unordered(lambda fn: process_generate_pyx(fn, lock), jobs):
  File "/Users/rlucas/dev-scipy/scipy/tools/cythonize.py", line 245, in process_generate_pyx
    raise RuntimeError("Running {} failed".format(path))
RuntimeError: Running scipy/special/_generate_pyx.py failed
Traceback (most recent call last):
  File "setup.py", line 540, in <module>
    setup_package()
  File "setup.py", line 524, in setup_package
    generate_cython()
  File "setup.py", line 292, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
(venv_python) Lucass-MacBook:scipy rlucas$ python3
Python 3.8.1 (default, Dec 27 2019, 18:05:50) 
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.18.1'
>>> 

```

So numpy ***is*** on my system for some reason the package isn't being found. 
For MKL you can check with `conda list mkl` (in the activated env).

For the failure, `import numpy` is happening within a subprocess kicked off from `process_generate_pyx` in `cythonize.py`. It should happen for you as well if you directly invoke that script with `python3 tools/cythonize.py` (right?).

You could check that `sys.executable` in `process_generate_pyx` is pointing to the right `python` version (it really should). It is possible that is a conda bug where in the subprocess env activation is mishandled and therefore paths go missing.


> That commit didn't touch qr parts so probably mkl version is changed.

@ilayn @rlucas7 Could you say more about MKL version changes and how you think it is related to the issue? I am facing a similar SIGABRT problem when the test hits `scipy/linalg/tests/test_decomp.py::TestEigh`. Apparently each time it fails in different tests, and sometimes with SIGSEGV and with SIGABRT other times.
@congma Could you please run the tests in verbose mode with `-v` option? I need to know which eigh test is the offending one. We have tested these changes all in OpenBLAS with no problem in different architectures. MKL used to have a bug (see #8205 in particular @brd4790's comments) but I think they fixed it. However there might be other bugs too. 
I tried running the tests multiple times and found 4 likely outcomes at least:

1.  The tests pass normally
2. The tests nominally pass at 100% but Python crashes with SIGSEGV
3. A test fails and Python crashes with SIGABRT
4. A test fails and Python crashes with SIGSEGV

In the cases 3 and 4, the failing tests are the parameterized ones `scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-XXX-YYY-ZZZ-eigvals1]`, where `XXX`--`ZZZ` could be either `True` of `False`. The combination `False-False-False` has not triggered a crash yet.

The offending test method begins at Line 863 in `scipy/linalg/tests/test_decomp.py`:

https://github.com/scipy/scipy/blob/13cf23a09d88dfee81f8df6e79b194aa762c32cf/scipy/linalg/tests/test_decomp.py#L863-L888

It is also interesting to notice that in the trace dump associated with cases 3 and 4, sometimes the code did not crash until Line 877 (`assert_allclose(...)`)

Typical logs are splashed as follows for the cases 2--4

---

Case 2 ("The tests nominally pass at 100% but Python crashes with SIGSEGV")

```
Building, see build.log...
Build OK (0:00:05.033463 elapsed)
============================= test session starts ==============================
platform darwin -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /Users/congma/miniconda3/envs/scipy-ws/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/.hypothesis/examples')
rootdir: /Users/congma/src/scipy, inifile: pytest.ini
plugins: hypothesis-5.5.4, arraydiff-0.3, remotedata-0.3.2, openfiles-0.4.0, doctestplus-0.5.0, astropy-header-0.1.2, cov-2.8.1
collecting ... collected 64 items

scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-None] PASSED [  1%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-eigvals1] PASSED [  3%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-None] PASSED [  4%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-eigvals1] PASSED [  6%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-None] PASSED [  7%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-eigvals1] PASSED [  9%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-None] PASSED [ 10%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-eigvals1] PASSED [ 12%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-None] PASSED [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-eigvals1] PASSED [ 15%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-None] PASSED [ 17%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-eigvals1] PASSED [ 18%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-None] PASSED [ 20%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-eigvals1] PASSED [ 21%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-None] PASSED [ 23%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-eigvals1] PASSED [ 25%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-None] PASSED [ 26%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-eigvals1] PASSED [ 28%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-None] PASSED [ 29%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-eigvals1] PASSED [ 31%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-None] PASSED [ 32%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-eigvals1] PASSED [ 34%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-None] PASSED [ 35%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-eigvals1] PASSED [ 37%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-None] PASSED [ 39%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-eigvals1] PASSED [ 40%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-None] PASSED [ 42%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-eigvals1] PASSED [ 43%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-None] PASSED [ 45%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-eigvals1] PASSED [ 46%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-None] PASSED [ 48%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-eigvals1] PASSED [ 50%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-None] PASSED [ 51%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-eigvals1] PASSED [ 53%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-None] PASSED [ 54%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-eigvals1] PASSED [ 56%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-None] PASSED [ 57%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-eigvals1] PASSED [ 59%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-None] PASSED [ 60%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-eigvals1] PASSED [ 62%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-None] PASSED [ 64%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-eigvals1] PASSED [ 65%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-None] PASSED [ 67%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-eigvals1] PASSED [ 68%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-None] PASSED [ 70%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-eigvals1] PASSED [ 71%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-None] PASSED [ 73%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-eigvals1] PASSED [ 75%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-None] PASSED [ 76%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-eigvals1] PASSED [ 78%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-None] PASSED [ 79%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-eigvals1] PASSED [ 81%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-None] PASSED [ 82%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-eigvals1] PASSED [ 84%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-None] PASSED [ 85%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-eigvals1] PASSED [ 87%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-None] PASSED [ 89%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-eigvals1] PASSED [ 90%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-False-None] PASSED [ 92%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-False-eigvals1] PASSED [ 93%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-False-True-None] PASSED [ 95%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-False-True-eigvals1] PASSED [ 96%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-False-False-None] PASSED [ 98%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-False-False-eigvals1] PASSED [100%]

============================== 64 passed in 0.51s ==============================
Fatal Python error: Segmentation fault

Current thread 0x000000010f512dc0 (most recent call first):
```

---

Case 3 ("A test fails and Python crashes with SIGABRT")

```
Building, see build.log...
Build OK (0:00:05.033808 elapsed)
============================= test session starts ==============================
platform darwin -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /Users/congma/miniconda3/envs/scipy-ws/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/.hypothesis/examples')
rootdir: /Users/congma/src/scipy, inifile: pytest.ini
plugins: hypothesis-5.5.4, arraydiff-0.3, remotedata-0.3.2, openfiles-0.4.0, doctestplus-0.5.0, astropy-header-0.1.2, cov-2.8.1
collecting ... collected 64 items

scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-None] PASSED [  1%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-eigvals1] PASSED [  3%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-None] PASSED [  4%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-eigvals1] PASSED [  6%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-None] PASSED [  7%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-eigvals1] PASSED [  9%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-None] PASSED [ 10%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-eigvals1] PASSED [ 12%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-None] PASSED [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-eigvals1] PASSED [ 15%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-None] PASSED [ 17%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-eigvals1] PASSED [ 18%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-None] PASSED [ 20%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-eigvals1] PASSED [ 21%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-None] PASSED [ 23%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-eigvals1] PASSED [ 25%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-None] PASSED [ 26%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-eigvals1] PASSED [ 28%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-None] PASSED [ 29%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-eigvals1] PASSED [ 31%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-None] PASSED [ 32%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-eigvals1] PASSED [ 34%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-None] PASSED [ 35%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-eigvals1] PASSED [ 37%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-None] PASSED [ 39%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-eigvals1] PASSED [ 40%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-None] PASSED [ 42%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-eigvals1] PASSED [ 43%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-None] PASSED [ 45%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-eigvals1] PASSED [ 46%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-None] PASSED [ 48%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-eigvals1] PASSED [ 50%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-None] PASSED [ 51%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-eigvals1] PASSED [ 53%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-None] PASSED [ 54%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-eigvals1] PASSED [ 56%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-None] PASSED [ 57%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-eigvals1] PASSED [ 59%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-None] PASSED [ 60%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-eigvals1] PASSED [ 62%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-None] PASSED [ 64%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-eigvals1] PASSED [ 65%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-None] PASSED [ 67%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-eigvals1] PASSED [ 68%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-None] PASSED [ 70%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-eigvals1] PASSED [ 71%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-None] PASSED [ 73%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-eigvals1] PASSED [ 75%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-None] PASSED [ 76%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-eigvals1] PASSED [ 78%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-None] PASSED [ 79%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-eigvals1] PASSED [ 81%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-None] PASSED [ 82%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-eigvals1] PASSED [ 84%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-None] PASSED [ 85%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-eigvals1] PASSED [ 87%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-None] PASSED [ 89%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-eigvals1] PASSED [ 90%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-False-None] PASSED [ 92%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-False-eigvals1] Fatal Python error: Aborted

Current thread 0x0000000104cc3dc0 (most recent call first):
  File "/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/scipy/linalg/tests/test_decomp.py", line 873 in test_eigh
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/python.py", line 167 in pytest_pyfunc_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/python.py", line 1445 in runtest
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 134 in pytest_runtest_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 210 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 237 in from_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 210 in call_runtest_hook
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 185 in call_and_report
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 99 in runtestprotocol
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 84 in pytest_runtest_protocol
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 271 in pytest_runtestloop
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 247 in _main
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 197 in wrap_session
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/config/__init__.py", line 93 in main
  File "/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/scipy/_lib/_testutils.py", line 67 in __call__
  File "./runtests.py", line 307 in main
  File "./runtests.py", line 476 in <module>
```

---

Case 4 ("A test fails and Python crashes with SIGSEGV"")

```
Building, see build.log...
Build OK (0:00:05.039345 elapsed)
============================= test session starts ==============================
platform darwin -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /Users/congma/miniconda3/envs/scipy-ws/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/.hypothesis/examples')
rootdir: /Users/congma/src/scipy, inifile: pytest.ini
plugins: hypothesis-5.5.4, arraydiff-0.3, remotedata-0.3.2, openfiles-0.4.0, doctestplus-0.5.0, astropy-header-0.1.2, cov-2.8.1
collecting ... collected 64 items

scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-None] PASSED [  1%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-eigvals1] PASSED [  3%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-None] PASSED [  4%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-eigvals1] PASSED [  6%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-None] PASSED [  7%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-eigvals1] PASSED [  9%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-None] PASSED [ 10%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-eigvals1] PASSED [ 12%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-None] PASSED [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-True-eigvals1] PASSED [ 15%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-None] PASSED [ 17%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-True-False-eigvals1] PASSED [ 18%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-None] PASSED [ 20%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-True-eigvals1] PASSED [ 21%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-None] PASSED [ 23%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-False-False-False-eigvals1] PASSED [ 25%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-None] PASSED [ 26%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-True-eigvals1] PASSED [ 28%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-None] PASSED [ 29%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-True-False-eigvals1] PASSED [ 31%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-None] PASSED [ 32%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-True-eigvals1] PASSED [ 34%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-None] PASSED [ 35%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-True-False-False-eigvals1] PASSED [ 37%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-None] PASSED [ 39%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-True-eigvals1] PASSED [ 40%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-None] PASSED [ 42%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-True-False-eigvals1] PASSED [ 43%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-None] PASSED [ 45%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-True-eigvals1] PASSED [ 46%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-None] PASSED [ 48%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-d-False-False-False-eigvals1] PASSED [ 50%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-None] PASSED [ 51%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-True-eigvals1] PASSED [ 53%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-None] PASSED [ 54%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-True-False-eigvals1] PASSED [ 56%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-None] PASSED [ 57%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-True-eigvals1] PASSED [ 59%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-None] PASSED [ 60%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-True-False-False-eigvals1] PASSED [ 62%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-None] PASSED [ 64%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-True-eigvals1] PASSED [ 65%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-None] PASSED [ 67%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-True-False-eigvals1] PASSED [ 68%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-None] PASSED [ 70%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-True-eigvals1] PASSED [ 71%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-None] PASSED [ 73%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-F-False-False-False-eigvals1] PASSED [ 75%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-None] PASSED [ 76%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-True-eigvals1] PASSED [ 78%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-None] PASSED [ 79%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-True-False-eigvals1] PASSED [ 81%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-None] PASSED [ 82%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-True-eigvals1] PASSED [ 84%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-None] PASSED [ 85%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-True-False-False-eigvals1] PASSED [ 87%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-None] PASSED [ 89%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-D-False-True-True-eigvals1] Fatal Python error: Segmentation fault

Current thread 0x0000000108f0fdc0 (most recent call first):
  File "/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/scipy/linalg/tests/test_decomp.py", line 876 in test_eigh
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/python.py", line 167 in pytest_pyfunc_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/python.py", line 1445 in runtest
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 134 in pytest_runtest_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 210 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 237 in from_call
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 210 in call_runtest_hook
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 185 in call_and_report
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 99 in runtestprotocol
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/runner.py", line 84 in pytest_runtest_protocol
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 271 in pytest_runtestloop
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 247 in _main
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 197 in wrap_session
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/congma/miniconda3/envs/scipy-ws/lib/python3.7/site-packages/_pytest/config/__init__.py", line 93 in main
  File "/Users/congma/src/scipy/build/testenv/lib/python3.7/site-packages/scipy/_lib/_testutils.py", line 67 in __call__
  File "./runtests.py", line 307 in main
  File "./runtests.py", line 476 in <module>
```
Where did you get scipy? What version of pytest?
> Where did you get scipy? What version of pytest?

I'm trying to build and test the master branch from source, where it currently stands at fc85c265. The pytest is version 5.3.5 from conda, where the rest of the Python environment also comes from (Python 3.7.6, numpy 1.18.1, MKL 2019.4).
Also, please let me know if you can reproduce similar occurrences (@ilayn @rlucas7 etc.). If not, and if you'd like to try, I can help dig into the conditions that trigger the crash, even though I don't for now understand why it is happening.
Today, I will try to strip the underlying LAPACK call for you to test with to triage the MKLness of the bug. Otherwise, it means I screwed up somewhere else in `eigh` overhaul (which I hope is the case since MKL bugs take time to be fixed).
Thank you and good luck! Would a debugger backtrace be helpful in that case? I have a debug build of scipy (`./runtests.py -gb`) but as of now most other binaries lack debugging symbols here (Python, numpy, etc, and of course MKL). If that could be of use anyway, I'll dump one from LLDB.
I'll just follow the path with those test parameters that fails until the LAPACK call.
> > That commit didn't touch qr parts so probably mkl version is changed.
> 
> @ilayn @rlucas7 Could you say more about MKL version changes and how you think it is related to the issue? I am facing a similar SIGABRT problem when the test hits `scipy/linalg/tests/test_decomp.py::TestEigh`. Apparently each time it fails in different tests, and sometimes with SIGSEGV and with SIGABRT other times.

Sorry getting to this response rather late, my MKL is:

(scipy-dev) Lucass-MacBook:scipy rlucas$ conda list mkl
# packages in environment at /Users/rlucas/anaconda3/envs/scipy-dev:
#
# Name                    Version                   Build  Channel
mkl                       2019.4                      233  
mkl-service               2.3.0            py36hfbe908c_0  
mkl_fft                   1.0.12           py36h5e564d8_0  
mkl_random                1.0.2            py36h27c97d8_0  
> Also, please let me know if you can reproduce similar occurrences (@ilayn @rlucas7 etc.). If not, and if you'd like to try, I can help dig into the conditions that trigger the crash, even though I don't for now understand why it is happening.

I'm not sure that I reproduce all the behavior that you've seen but I do get an abort trap 6 on the same test (not clear to me from what is posted here if mine is exactly the same parametrized instance but definitely one of the parametrized collection: 

```
(scipy-dev) Lucass-MacBook:scipy rlucas$ python runtests.py -v -s linalg
Building, see build.log...
    ... build in progress (0:01:00.307318 elapsed)
    ... build in progress (0:02:00.625716 elapsed)
    ... build in progress (0:03:00.903960 elapsed)
    ... build in progress (0:04:01.203629 elapsed)
Build OK (0:04:40.909137 elapsed)
================================================================================ test session starts ================================================================================
platform darwin -- Python 3.6.7, pytest-5.0.1, py-1.7.0, pluggy-0.13.1 -- /Users/rlucas/anaconda3/envs/scipy-dev/bin/python
cachedir: .pytest_cache
rootdir: /Users/rlucas/scipy-dev/scipy, inifile: pytest.ini
collected 1587 items / 5 deselected / 1582 selected                                                                                                                                 

scipy/linalg/tests/test_basic.py::TestSolveBanded::test_real PASSED                                                                                                           [  0%]
scipy/linalg/tests/test_basic.py::TestSolveBanded::test_complex PASSED                                                                                                        [  0%]
scipy/linalg/tests/test_basic.py::TestSolveBanded::test_tridiag_real PASSED                                                                                                   [  0%]
scipy/linalg/tests/test_basic.py::TestSolveBanded::test_tridiag_complex PASSED 
... output elided ....
scipy/linalg/tests/test_decomp.py::TestEigh::test_various_drivers_generalized[gvx] PASSED                                                                                     [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-None] PASSED                                                                                        [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-True-eigvals1] PASSED                                                                                    [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-None] PASSED                                                                                       [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-True-False-eigvals1] PASSED                                                                                   [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-None] PASSED                                                                                       [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-True-eigvals1] PASSED                                                                                   [ 14%]
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh[6-f-True-False-False-None] Fatal Python error: Aborted

Current thread 0x00007fff8e2c5380 (most recent call first):
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/decomp.py", line 558 in eigh
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/linalg/tests/test_decomp.py", line 882 in test_eigh
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/python.py", line 165 in pytest_pyfunc_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/python.py", line 1451 in runtest
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 117 in pytest_runtest_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 192 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 220 in from_call
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 192 in call_runtest_hook
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 167 in call_and_report
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 87 in runtestprotocol
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/runner.py", line 72 in pytest_runtest_protocol
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 278 in pytest_runtestloop
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 257 in _main
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 213 in wrap_session
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/main.py", line 250 in pytest_cmdline_main
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/_pytest/config/__init__.py", line 74 in main
  File "/Users/rlucas/scipy-dev/scipy/build/testenv/lib/python3.6/site-packages/scipy/_lib/_testutils.py", line 67 in __call__
  File "runtests.py", line 307 in main
  File "runtests.py", line 476 in <module>
Abort trap: 6
(scipy-dev) Lucass-MacBook:scipy rlucas$ 
```
if it helps the test failure occurs here on my box

```
(scipy-dev) Lucass-MacBook:scipy rlucas$ git log --oneline -n 3
3275865a4 (HEAD -> maint_1_4_x, origin/maint_1_4_x) MAINT: remove error throw on non-finite values or samples
c1372d8aa (upstream/master, origin/master, origin/HEAD, master) Merge pull request #11646 from sethtroisi/__future
4d2d14486 Merge pull request #11626 from sethtroisi/PY_VERSION_HEX_3
```
the tip of the branch is my changes but they are unrelaed. The `c1372d8aa` commit is:

```
commit c1372d8aa90a73d8a52f135529293ff4edb98fc8 (upstream/master, origin/master, origin/HEAD, master)
Merge: 4d2d14486 6d576be24
Author: Ralf Gommers <ralf.gommers@gmail.com>
Date:   Tue Mar 10 17:18:26 2020 +0100

    Merge pull request #11646 from sethtroisi/__future
    
    MAINT: Remove unnecessary 'from __future__ import ...' statements

commit 4d2d14486e4591fac4875336fe8cacbdd019ceff
```

This is for @rlucas7's case. could you please run the following snippet to check if it is also crashing?

```python
import numpy as np
from scipy.linalg.lapack import ssygvd as gvd

a = np.array([[0.01797507, 0.70883185, 0.5657944 , 0.4985132 , 0.17041442, 0.49266818],
              [0.70883185, 0.49513185, 0.5623464 , 0.6647023 , 0.7207692 , 0.40575647],
              [0.5657944 , 0.5623464 , 0.98086125, 0.75719607, 0.82589024, 0.67540133],
              [0.4985132 , 0.6647023 , 0.75719607, 0.50033605, 0.58452183, 0.37890175],
              [0.17041442, 0.7207692 , 0.82589024, 0.58452183, 0.08671223, 0.5487628 ],
              [0.49266818, 0.40575647, 0.67540133, 0.37890175, 0.5487628 , 0.5339688 ]],
             dtype=np.float32, order='F')
b = np.array([[4.0496793 , 0.23413253, 0.38640022, 0.32857293, 0.31177923, 0.1990502 ],
              [0.23413253, 3.5230353 , 0.45247832, 0.22256082, 0.59889984, 0.36103517],
              [0.38640022, 0.45247832, 4.110355  , 0.5562186 , 0.6783642 , 0.3003551 ],
              [0.32857293, 0.22256082, 0.5562186 , 4.279568  , 0.37228546, 0.92622566],
              [0.31177923, 0.59889984, 0.6783642 , 0.37228546, 3.9332528 , 0.59439176],
              [0.1990502 , 0.36103517, 0.3003551 , 0.92622566, 0.59439176, 3.5961497 ]],
             dtype=np.float32, order='F')

gvd(a, b, jobz='V', uplo='U',overwrite_a=True, overwrite_b=True)
```

If it works, please take out the `order` keyword from the arrays and try again.
Nevermind it's my fault. I found the bug/typo. :-) 

Resolving patch:
diff --git a/scipy/linalg/decomp.py b/scipy/linalg/decomp.py
--- a/scipy/linalg/decomp.py
+++ b/scipy/linalg/decomp.py
@@ -521,7 +521,7 @@ def eigh(a, b=None, lower=True, eigvals_only=False, overwrite_a=False,
                   'syevd': ['lwork', 'liwork'],
                   'syevr': ['lwork', 'liwork'],
                   'heevd': ['lwork', 'liwork', 'lrwork'],
-                  'heevr': ['lwork', 'liwork', 'lrwork'],
+                  'heevr': ['lwork', 'lrwork', 'liwork'],
                   }
 
     if b is None:  # Standard problem
@@ -533,7 +533,7 @@ def eigh(a, b=None, lower=True, eigvals_only=False, overwrite_a=False,
 
         lw = _compute_lwork(drvlw, **clw_args)
         # Multiple lwork vars
-        if isinstance(drvlw, tuple):
+        if isinstance(lw, tuple):
             lwork_args = dict(zip(lwork_spec[pfx+driver], lw))
         else:
             lwork_args = {'lwork': lw}


Test patch: