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

    <tr>
        <th>Summary</th>
        <td>
            [Cygwin] lli crashes with --no-process-syms
        </td>
    </tr>

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

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

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

<pre>
    `lli -no-process-syms -lljit-platform=Inactive -emulated-tls -jit-kind=orc-lazy test/ExecutionEngine/OrcLazy/emulated-tls.ll`

The ExecutionEngine/OrcLazy/emulated-tls.ll test fails with a segfault in https://github.com/llvm/llvm-project/blob/eb71fdde5709b0200b8be343088c763be0850ff6/llvm/tools/lli/lli.cpp#L1086-L1089

it appears that `J->getProcessSymbolsJITDylib()` returns NULL.  Should there be a check of that return value before calling `->define` on it, or is there some other place that is ensuring this is not NULL on MinGW that should also be used on Cygwin? 

@mstorsjo 

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU02PnDgQ_TXmUqLlNm4aDhxm09OrRLMfUrLas20K8MTYyGVmlvz6laFXWeUWIRmwy69eVb2niOzoETt2-YVdboVa0xRi94oR560X_NwWOvRbx2runIXSh3KJwSBRSdtMUDr3alO5OJWGEGdW3T56ZZJ9QyhxXp1K2JfJEZQ57Kv1PatuIZrSqW8bJKTExP35HzRrssE_-9F6ZOL-RzQv6tvGxP3_ICfnWM0Zf2L86cuE8BP39lQwKOsI3m2aQAHhOKjVJbAeppQWYtUTE3cm7qNN06pPJsxM3J17---VS39FkylrF3TOoq_noe_xcuWt5oJz3WisZMWbxlzrSiNvLnwY6u84KQRH-6891pNZFiaqlzNv6jKv7VGgTaCWBVUkSJNKwGr-qWTV84jpz2MCn7dZB0efPn65bc5qJhomWlZziJjW6Al-_-vl5QTweQqr6yFNGBE0ggIzofkKYTiQj3B4U27N50OICEY5Z_2Ys-akPQ65wTWH4MEmJj5AiGDpAUphRgj5GxanDB64lgA9rTHjpMlS3vAh7bQyzm_W__r3EUoHReUoZIYrYZ8jPmzju_WsusPREyb5TClEeg15p-i7qm-rVhXYna-yPbdCSFFMndSNbHh9raVosRFSYX05i77ixuhrXVeF7QQXF17nR0ouToO4cnmRleaVlI05M8lxVtad8thOIY6FJVqxO-fZ8sIpjY520wjh8R32UyZE9lDsdrHodSQmubOU6DtMssntbnvUdrlBNpaJiiZ8aLP80WbFGl330xrdOWWtPUi_deLfAAAA__-OxUir">