scipy/scipy — pull request #3373 by pv (2014-02-22 14:09:18+00:00)
Title: BUG: sparse/dsolve: detect invalid LAPACK parameters in superlu and bail out gracefully

Hack around gh-3312.

LAPACK *TRSV require `lda >= n`. Catch this earlier, and bail out more gracefully with runtimerror before calling LAPACK with invalid arguments (which usually crashes the program).

The !VENDOR_BLAS code path does something also in the failing case. It's unclear if this is intended behavior, however.