title: libgcc_s.so.1 must be installed for pthread_cancel to work
body: <p>I'm on python; I am trying to shut down a function running through a ThreadPoolExecutor, but the shutdown is crashing with the error:</p>
  <pre><code>libgcc_s.so.1 must be installed for pthread_cancel to work
  </code></pre>
  <p>The function is submitted with:</p>
  <pre><code>record_future = self.executor.submit(next,primitive)
  </code></pre>
  <p><code>primitive</code> is an iterator that usually returns a value but in some cases, it needs to wait a while before returning a value (because of long calculations, etc). In these cases, when I need to shut down the running thread, I cannot wait for the iterator to finish returning, and need to shut it down immediately. I did it with:</p>
  <pre><code>executor.shutdown(wait=False)
  </code></pre>
  <p>However, when execution reaches this point, I get the libgcc error.</p>
  <p>I tried 'solving' it by manually installing with:</p>
  <pre><code>apt-get install libgcc1:amd64
  </code></pre>
  <p>but no dice. I am not sure where exactly python is looking for this library, otherwise I would try creating a symbolic link, because the library is already installed at:</p>
  <pre><code>$ /sbin/ldconfig -p | grep libgcc
  libgcc_s.so.1 (libc6,x32) =&gt; /usr/libx32/libgcc_s.so.1
  libgcc_s.so.1 (libc6,x86-64) =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1
  libgcc_s.so.1 (libc6) =&gt; /usr/lib32/libgcc_s.so.1
  </code></pre>