<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/87516>87516</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLJITWithExecutorProcessControl example crashes on M2 Max
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jkrueger
      </td>
    </tr>
</table>

<pre>
    Just running the LLJITWithExecutorProcessControl example binary after a fresh build on an M2 Max MacBook Pro (on Sonoma) crashes with the following stack trace.

Stack dump:
0.      Program arguments: bin/LLJITWithExecutorProcessControl
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  LLJITWithExecutorProcessControl 0x00000001049a6024 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  LLJITWithExecutorProcessControl 0x00000001049a4eec llvm::sys::RunSignalHandlers() + 112
2  LLJITWithExecutorProcessControl 0x00000001049a66b8 SignalHandler(int) + 360
3  libsystem_platform.dylib 0x000000018f03b584 _sigtramp + 56
4  LLJITWithExecutorProcessControl 0x0000000104635efc main + 3256
5  dyld 0x000000018ec820e0 start + 2360
[1]    84473 illegal hardware instruction bin/LLJITWithExecutorProcessControl

I am writing a Clojure compiler using LLVM myself, and can reproduce this in my own code, when using the Orc JIT in combination with lazy reports, in a similar way to this example.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlF1v2zgThX8NfTOoQVEfli90kbQ1miBBgyZ4X-zeBBQ1kpjwwxhScdRfv6CUbNLFAt34QhbE8Zln5DlHhqAHh9iw8pyVXzZyiqOn5uGRJhyQNq3v5uZyChFock67AeKIcHV1eXH3fx3Hr8-opujphrzCED57F8kbwGdpjwah1U7SDLKPSCChJwwjtJM2HXgH0sG1gGv5DNdSnXv_CDfkgYnaO7j1zlvJxB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