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

    <tr>
        <th>Summary</th>
        <td>
            [lldb] debugger stucks when trying to evaluate function that contains fork()
        </td>
    </tr>

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

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

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

<pre>
    I'm using lldb-18 to debug my llvm build. When I try to call `F.viewCFG()` through debugger, lldb reports error:
"error: Execution was interrupted, reason: vfork.
The process has been returned to the state before expression evaluation.". Then the debugger basically stuck and only after I manually kill the lldb process, the CFG shows up in a new window. Here is a screenshot.
![image](https://github.com/llvm/llvm-project/assets/25120292/0727cb85-2424-4683-96aa-b438f628aa3f)

I tried the same with gdb-12, it can execute `viewCFG()`, open the external software and continue execution.
![image](https://github.com/llvm/llvm-project/assets/25120292/6451d59c-5940-4d45-b80b-218c06f12530)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0U0tvpDgQ_jXuSwlkCkzDgcNMsszmPtKejSnAG7fd8iOk99ev7CQaaW97mAtIfpS_pwxB75ZoYuI7E88XmeLh_PTPY0XOm8vi1sf0wvB6gxS03cGYdamaAaKDlZa0w-0BxrzdYEnarDX8dZCFF4j-kY8oaQywns_1m6bzaf7BcGA4sp5DPLxL-_ExZSfP8KkMB09352MA8t551n5j_JnxbwzxawH-eCeVonYWThlA20jep3ukNc_wJIOz-djb5vxr_XH950Fw905RCHDIAAuRBU8xeUtrRhoPghBlJFhoc56A3u-eQsiv0Js0SeYHa4ZYw8_MMV_4wg6LDDpzfUCISb2CtCs4ax4gt0geXuAmbSr7r9qYcrdw_YSUcee1p_kHhMOdAdIdtAUJlk44tV3dWcOf5Al0AAlBeSIbDhfrL3UaJr7rm9yJiWeGwxHjPWTxcGY47zoeaamVuzGcs1ufv-ru3d-kIsNZhkAxMJxRNMhxRIYzv-JVLYOosMOu6vqhrcZeymrp2mHrcZCy3bKbHxDKNzuvs6JZTnkjOHU8YM-ZwcxSR1DSAhUHKUfjv8HIp9z9U2B6j-StNBDcFk_pqSirnI3aJvocU3z5jTL0nWhWMapKjB2vurUT1TLwpcJmULzfGhQtZzhe1qldx3aUF5qaKxeibZphvBzTdWnVuihJnLdKXhWtvRgJUTQSldr4RU_IseNNc0Vsx26sGxy6ph-Ib_3Y4MZZx-kmtakz2tr5_aJDSDRdB9GIi5ELmVAKjJgDUzYZYu6znwrDJe2BddzoEMOvKVFHU5qfw8jE869AlxgHOEvS_SM3P7qvIhBsyapSwHjIWPyQ2gbIhfsw8pK8mf63-gV4Vr8Q-zcAAP__1LR6Pg">