<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118427>118427</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Calls to curl in lldb make debugging insanely slow
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jcelerier
</td>
</tr>
</table>
<pre>
When trying to debug my app it seems that lldb is making a curl call for every dynamic library loaded, and stalling roughly a second on each of them.
Stack traces gotten through profiling seem to indicate unordinate amount of time spend in openssl's certificates which brought me to this issue: https://github.com/openssl/openssl/issues/17064 which seems related ; nevertheless it seems most of the time is spent polling and not computing. CPU is "12th Gen Intel(R) Core(TM) i7-12700H"
If I disable debuginfod, things seem to go much much better (but debuginfod is nice to have).
The second screenshot seems to indicate that it tries to load debuginfo and wait until it got a response (or maybe a failure) to start looking for the next shared object's debuginfo, which does not seem too efficient.
Ironically it seems that my distro doesn't have a debuginfo for liblldb.so.18.1.8 thus I cannot provide stack traces that are too useful :')
![Image](https://github.com/user-attachments/assets/f4894ea9-c7f0-4dd4-8e97-65bdd0327c5d)
![Image](https://github.com/user-attachments/assets/a377df8c-ea18-45d1-a71b-532e2fa1e026)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslE2PpDYTxz-N-1KiBQYGOHCYndU8zxwiRclGORd2gb1r7JZdzKS_fWR3Z2aUw55yASNcb7_6V2FKdvNEs-i_iP7rCQ82Ic7fFTmKluJpCfo6_2nIA8er9RtwAE3LscF-BbxcwDIkoj0BG2RwTi9gE-z4I19GUEd0oNA5WEMEeqV4BX31uFsFzi4R4xVcQE1ayCdAryExOpeNYzg2466AkEgFryF4IFQGwgpsaD-L-lHUj78zqh_AERUl2AJzztUUY7jEsNriLOeYc7deW4VMcPgQtfX5iHs4PBe3didIF_IarIdwIZ-SE3JIoCiyXYtpgjdjlYGlxGDYKTtmYxPYlA4S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