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

    <tr>
        <th>Summary</th>
        <td>
            Compiling for Debug (wasm) gives SIGSEV (-11)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    I am compiling a library using emscripten and am getting error in Debug build as attached:

```[MB : 19395ms] [31]PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
[MB : 19395ms] [31]em++: error: '/Users/mohsharadobe.com/.adobe_meta_cache/emsdk/3.1.35/upstream/bin/wasm-ld @/var/folders/s3/wj6x7n1n2p1_ynzjjtvypjs00000gq/T/emscripten_amlhvnor.rsp.utf-8' failed (received SIGSEGV (-11))
[MB : 19395ms] [31]ninja: build stopped: subcommand failed. ```

I don't really have any other logs relating to this crash in my logs. 

There is no issue in the release build. I see this issue in Release with Debug info build as well. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyck1FvpDYQxz_N8DIKggF24YGHbDecIvWkqrn2NTIwgPeMTW2z6fbTV2bJJU-tdMgCjP_M_O35jXBOjpq5huIExTkSq5-Mrb-aSfqXpIha09_qZxQzdmZepJJ6RIFKtlbYG64uzHl2nZWLZ41C90E7svfbirXGotR45nYdsV2l6lE4FN6LbuIeskdIzpC83w_JPorT1xNC9ohplVXF7KA4IxSnLIXi_NuvT48vT-jWdpYeBYbIlhdjPXqDk_eLC3GpAWpG6ae1jTszAzVKXd8fD4s1F-48UCOdW9kBNZt5qTu19ox-YuyscBO2ovvureg43k3-lzeegU5hZI_3zYcXoCNQ84djG9LMZnKTsKI3Le_G4m3yOrMXr104GKCGZ9d_B2qyOI2zAqhZF-cti6BvpQZq3oSbH1SPkCdAzVVYoGYwqr-ncVmQXA5_H3WqaUlfb_qfy8Vfb8vFJeEa_wJqvt0z7eV7FbOartrY2LolXv3wUAIdcRBScY9ApeWO5ZV7fHn-8vL05c_w7SFNgaow_v94tNQXEdbuJDhvlmWjIFSzM_McSnBPF-MHDZ8QecbeaKCjR8tCqRtO4soo9A2Nn9iiMqNDy0ps_HmDfpJur6TUON82RYyfY36b2DJKh9rgRkNQBgAsKxaO725jfEbHfA_4Q_b7LnmTftopl3owH6i_sVIxRn2d9VVWiYjr9FDmeZUf8zKa6rIt-0M2lFweD2kxDMeB8qqr8qwbKK3oEMmaEsqSIq3SNCUq45TLLusrKqksRNHlkCc8C6niwHVs7Bht5uoDlckhUqJl5d6729Yb_O06OsgTJZ13H7956RXXv_xo88HYfUdAZYANqMJRXtndy_-p-tFqVf3znbdZ_TcAAP__1vBthQ">