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

    <tr>
        <th>Summary</th>
        <td>
            [Clang-Repl] Using shared memory in Out-Of-Process JIT execution gives ``Permission Denied`` error on MacOS
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          kr-2003
      </td>
    </tr>
</table>

<pre>
    Running ``clang-repl`` in ``out-of-process`` mode with ``shared memory``.

```bash
./bin/clang-repl -oop-executor -orc-runtime -use-shared-memory -Xcc="-g" -Xcc="-O0" -Xcc="-debugger-tuning=lldb"
```
### Output

```bash
JIT session error: Permission denied
clang-repl: Failed to materialize symbols: { (<Platform>, { ___mh_executable_header, ___dso_handle }) }
```


### System

- MacOS 15.5
- MacBook Air M1
- 8 GB RAM
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU0-PuzYQ_TTDxXJkbEjIgUOyKVUrrbLabaXekMETcNfgyH92m376ypB209VPjGRmxgzz5r2R3uthRqyhPEJ5ymQMo3X1u6OcMZF1Vt3q1zjPeh4IbBlsWW_kPFCHV7P6RM_3jI2B2gu9Otuj9_fsZBWSTx3G-yU_SoeKTDhZd1tDG2CHZIsDW9ZJPwI7bIA3nZ6BN1-_JNTaK8W_sI_BOkKt66mLc9ATEho90rU8XcsT-kffgzgB53QAzh_9M_sWUNjFYUBHQ0xoQZyMUR1w_thaeudiNXKO4RrDj5v_9ZffiEfvtZ0JOmcdiAN5QTfpNaZw1qiAHR7GKQ6kkdqgIsGSSQZ0Whr9NxJ_mzprfLoAuyMBXoF4ejEyXKybQPwE_GlJtG07je06HdkZbEeUCl1Kt22rvG1HOSuDBHYn4Pvl-AZutf8gvt18wGmNUvIs-_MbyctN-a97tPadHLQjz_kSqsjPR_J6eM5ULdRe7GWGdb4rC7482VhXquz2vOc9CrZVLN9eylxVSsm8qnCvikzXnPGSVUzkOyGKYiNYqdReKbEveCeLLRQMJ6nNxpiPaWPdkGnvI9Z5mVe7bWZkh8YvcuZ8xk-yZBON5SlzdfqIdnHwUDCjffBfZYIOZtmDp4WS10RJeSK_-6T9_8k2Sf4cAz1f6MsqdpL4Xgef2B30B_q74B9IP62kr4uxqILYeZ1qFp2pxxCuiWXgDfBm0GGM3aa3E_AmdXk_0oL9iX0A3izYPPDmDv6j5v8EAAD__wISKEw">