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

c-ares / c-ares / 14322798410
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: b-mac-gcc
DEFAULT BRANCH: main
Ran 08 Apr 2025 01:17AM UTC
Jobs 1
Files 178
Run time 2min
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

08 Apr 2025 01:08AM UTC coverage: 91.484% (-0.008%) from 91.492%
14322798410

push

github

bradh352
Fix polling ares_event_configchg_init: initialize mutex (#974)

The polling-based implementation of ares_event_configchg_init previously
did not initialize the mutex ares_event_configchg_t->lock. This caused
ares_thread_cond_timedwait to immediately return, which means that the
thread running ares_event_configchg_thread is busy-waiting without
sleeping between config change checks. In addition to the high CPU usage
this causes, the DNS config is actually never checked in this case.

This commit fixes the issue by initializing the mutex. Thereby, the
config polling thread correctly only wakes up every 30 seconds and
properly checks for a config change.

Note: the bug only came into effect if the combination of the polling-
based implementation of ares_event_configchg_init and the pthread-based
implementation of ares_thread_cond_timedwait was used.

Fix By: Florian Pfisterer (@FlorianPfisterer)

22399 of 24484 relevant lines covered (91.48%)

11828.47 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
86.67
-0.61% src/lib/dsa/ares_array.c
1
63.65
-0.12% src/lib/record/ares_dns_mapping.c
Jobs
ID Job ID Ran Files Coverage
1 14322798410.1 08 Apr 2025 01:17AM UTC 937
60.1
GitHub Action Run
Source Files on build 14322798410
  • Tree
  • List 178
  • Changed 54
  • Source Changed 0
  • Coverage Changed 54
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b834967f on github
  • Prev Build on v1.34 (#14282412636)
  • Next Build on v1.34 (#14331569800)
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

© 2025 Coveralls, Inc