• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mavlink / MAVSDK / 11155255656
49%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2024 03:22AM UTC
Jobs 1
Files 256
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Oct 2024 03:16AM UTC coverage: 37.994% (-0.009%) from 38.003%
11155255656

push

github

web-flow
core: prevent lockup on connection destruction (#2411)

When we destroy Mavsdk and clear the list of connections, we likely
end up in a deadlock.

What happens is that:
1. A connection wants to forward a message and is trying to acquire the
   connection mutex.
2. At the same time, the connection is being destroyed, so we are
   waiting for the connection receive thread to be joinable. While the
   connections are being destroyed, we have the connection mutex which
   is blocking 1.

The proposed solution is to:
1. Make it less likely by acquiring the connection mutex properly before
   checking _connections.size() and not for the individual connections.
2. Check the _should_exit flag before trying to acquire the mutex. I
   believe by the time the connections are being cleared, this flag is
   set, and hence the deadlock should not happen, fingers crossed.

5 of 13 new or added lines in 1 file covered. (38.46%)

7 existing lines in 3 files now uncovered.

11460 of 30163 relevant lines covered (37.99%)

260.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11155255656.1 03 Oct 2024 03:22AM UTC 0
32.86
GitHub Action Run
Source Files on build 11155255656
Detailed source file information is not available for this build.
  • Back to Repo
  • 2328ed69 on github
  • Prev Build on main (#11100710657)
  • Next Build on main (#11188885859)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc