title: numpy import fails in virtualenv when ulimit -v is set (OpenBLAS: Resource temporarily unavailable)
body: <p>When I set a <code>ulimit -v</code> on a powerful machine I'm working on (48 × Intel(R) Xeon(R) CPU E7-4860 v2 @ 2.60GHz, 2 TB RAM, Red Hat Enterprise Linux Server release 6.7), python fails to import <code>numpy</code> when I'm working in my virtualenv, as shown below.  Everything seems fine when I impose no resource limitations or when I'm not working inside virtualenv.</p>
  
  <p>I suppose this is a bug somewhere.  Did I set up something wrongly?  Where is the correct place to report this?  NumPy?  OpenBLAS?  System administrator?</p>
  
  <pre><code>$ ulimit -a
  core file size          (blocks, -c) 0
  data seg size           (kbytes, -d) unlimited
  scheduling priority             (-e) 0
  file size               (blocks, -f) unlimited
  pending signals                 (-i) 8271875
  max locked memory       (kbytes, -l) unlimited
  max memory size         (kbytes, -m) unlimited
  open files                      (-n) 48000
  pipe size            (512 bytes, -p) 8
  POSIX message queues     (bytes, -q) 819200
  real-time priority              (-r) 0
  stack size              (kbytes, -s) 8388604
  cpu time               (seconds, -t) unlimited
  max user processes              (-u) 1024
  virtual memory          (kbytes, -v) unlimited
  file locks                      (-x) unlimited
  $ python3.5 -c "import numpy" # success
  $ ulimit -v 10000000
  $ ulimit -a
  core file size          (blocks, -c) 0
  data seg size           (kbytes, -d) unlimited
  scheduling priority             (-e) 0
  file size               (blocks, -f) unlimited
  pending signals                 (-i) 8271875
  max locked memory       (kbytes, -l) unlimited
  max memory size         (kbytes, -m) unlimited
  open files                      (-n) 48000
  pipe size            (512 bytes, -p) 8
  POSIX message queues     (bytes, -q) 819200
  real-time priority              (-r) 0
  stack size              (kbytes, -s) 8388604
  cpu time               (seconds, -t) unlimited
  max user processes              (-u) 1024
  virtual memory          (kbytes, -v) 10000000
  file locks                      (-x) unlimited
  $ python3.5 -c "import numpy" # success
  $ . ~/venv/stable-3.5/bin/activate
  $ python3.5 -c "import numpy"
  OpenBLAS blas_thread_init: pthread_create: Resource temporarily unavailable
  OpenBLAS blas_thread_init: RLIMIT_NPROC 1024 current, 8271875 max
  [SNIP: previous two lines shown 46 times]
  Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
    File "/home/users/gholl/venv/stable-3.5/lib/python3.5/site-packages/numpy/__init__.py", line 180, in &lt;module&gt;
      from . import add_newdocs
    File "/home/users/gholl/venv/stable-3.5/lib/python3.5/site-packages/numpy/add_newdocs.py", line 13, in &lt;module&gt;
      from numpy.lib import add_newdoc
    File "/home/users/gholl/venv/stable-3.5/lib/python3.5/site-packages/numpy/lib/__init__.py", line 8, in &lt;module&gt;
      from .type_check import *
    File "/home/users/gholl/venv/stable-3.5/lib/python3.5/site-packages/numpy/lib/type_check.py", line 11, in &lt;module&gt;
      import numpy.core.numeric as _nx
    File "/home/users/gholl/venv/stable-3.5/lib/python3.5/site-packages/numpy/core/__init__.py", line 14, in &lt;module&gt;
      from . import multiarray
  SystemError: initialization of multiarray raised unreported exception
  Segmentation fault (core dumped)
  </code></pre>