title: Pytorch Exception in Thread: ValueError: signal number 32 out of range
body: <p>I'm getting this error:</p>
  
  <pre><code>Exception in Thread: ValueError: signal number 32 out of range
  </code></pre>
  
  <p>The specific tutorial that raises an issue for me is the training a classifier (<a href="https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html" rel="noreferrer">https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html</a>), the specific line is: </p>
  
  <pre><code>dataiter = iter(trainloader) 
  </code></pre>
  
  <p>and the full error traceback is:</p>
  
  <pre><code>Exception in thread Thread-5:
  Traceback (most recent call last):
  File "/home/chenchen/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
  self.run()
  File "/home/chenchen/anaconda3/lib/python3.6/threading.py", line 864, in run
  self._target(*self._args, **self._kwargs)
  File "/home/chenchen/anaconda3/lib/python3.6/multiprocessing/resource_sharer.py", line 139, in _serve
  signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG))
  File "/home/chenchen/anaconda3/lib/python3.6/signal.py", line 60, in pthread_sigmask
  sigs_set = _signal.pthread_sigmask(how, mask)
  ValueError: signal number 32 out of range
  </code></pre>
  
  <p>My operation system is Ubuntu 18.10 and my python env is Anaconda3 for python 3.6. I installed pytorch from the latest source. My cuda version is 10.0.</p>