-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestDAP_commands.py flakiness due to lldb-dap exit crashes #81686
Comments
@llvm/issue-subscribers-lldb Author: Jordan Rupprecht (rupprecht)
Context: https://lab.llvm.org/buildbot/#/builders/68/builds/68776
The test has some exit commands:
The test case itself passes, but tear down occasionally fails because we fail to get a
Aside: the buildbots do not enable this DAP logging, which would make debugging buildbot errors much easier. |
The `EventThreadFunction` can end up calling `HandleCommand` concurrently with the main request processing thread. The underlying API does not appear to be thread safe, so add a narrowly scoped mutex lock to prevent calling it in this place from more than one thread. Fixes #81686. Prior to this, TestDAP_launch.py is 4% flaky. After, it passes in 1000 runs.
The `EventThreadFunction` can end up calling `HandleCommand` concurrently with the main request processing thread. The underlying API does not appear to be thread safe, so add a narrowly scoped mutex lock to prevent calling it in this place from more than one thread. Fixes llvm#81686. Prior to this, TestDAP_launch.py is 4% flaky. After, it passes in 1000 runs.
Context: https://lab.llvm.org/buildbot/#/builders/68/builds/68776
The test has some exit commands:
The test case itself passes, but tear down occasionally fails because we fail to get a
disconnect
response back. The DAP log shows this crash causing the dap server to shutdown before it can respond to the disconnect:Aside: the buildbots do not enable this DAP logging, which would make debugging buildbot errors much easier.
The text was updated successfully, but these errors were encountered: