title: Segmentation Fault on running a binary on heroku
body: <p>I have a binary file named <code>OTK.e</code> which I am executing programmatically using Node.js <code>child_process</code> module.</p>
  <pre class="lang-js prettyprint-override"><code>const { execFile } = require('child_process');
  const execute = () =&gt; new Promise((resolve) =&gt; {
      execFile(path.resolve(__dirname, './bin/OTK.e'), {
          cwd: path.resolve(__dirname, './bin'),
      }, (err, stdout) =&gt; {
          if (err) {
              console.log(err);
              reject(err);
          }
          resolve(stdout);
      });
  });
  </code></pre>
  <p>This works fine when I run this locally on my Ubuntu 18.04.5. I have deployed this app to heroku and I cant get this to work there. I found this in the logs:</p>
  <pre class="lang-sh prettyprint-override"><code>2021-07-19T14:48:55.432325+00:00 app[web.1]: Error: Command failed: /app/bin/OTK.e
  2021-07-19T14:48:55.432334+00:00 app[web.1]: 
  2021-07-19T14:48:55.432335+00:00 app[web.1]: at ChildProcess.exithandler (child_process.js:319:12)
  2021-07-19T14:48:55.432335+00:00 app[web.1]: at ChildProcess.emit (events.js:375:28)
  2021-07-19T14:48:55.432336+00:00 app[web.1]: at maybeClose (internal/child_process.js:1055:16)
  2021-07-19T14:48:55.432336+00:00 app[web.1]: at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) {
  2021-07-19T14:48:55.432337+00:00 app[web.1]: killed: false,
  2021-07-19T14:48:55.432340+00:00 app[web.1]: code: null,
  2021-07-19T14:48:55.432341+00:00 app[web.1]: signal: 'SIGSEGV',
  2021-07-19T14:48:55.432341+00:00 app[web.1]: cmd: '/app/bin/OTK.e'
  2021-07-19T14:48:55.432342+00:00 app[web.1]: }
  </code></pre>
  <p>The process seems to be terminating with a segmentation fault. Any ideas what might be going on?</p>