title: Why can't Firefox cope with a memory limit set by ulimit?
body: <p>When I set a memory limit for firefox using:</p>
  
  <pre><code>$ ulimit -Sv 512000
  $ ulimit -v
  512000
  $ firefox %u
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>[4881] ###!!! ABORT: PR_CreateThread failed!: file /builddir/build/BUILD/firefox-49.0/firefox-49.0/js/xpconnect/src/XPCJSRuntime.cpp, line 1045
  [4881] ###!!! ABORT: PR_CreateThread failed!: file /builddir/build/BUILD/firefox-49.0/firefox-49.0/js/xpconnect/src/XPCJSRuntime.cpp, line 1045
  Segmentation fault (core dumped)
  </code></pre>
  
  <p>However, if Firefox is already running, it opens a new window without any errors.</p>
  
  <p>What is the issue with setting a ulimit for Firefox?</p>
  
  <p>The OS is Fedora 24: <code>4.7.5-200.fc24.x86_64</code></p>