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

c-ares / c-ares / 14322787875
92%

Build:
DEFAULT BRANCH: main
Ran 08 Apr 2025 01:10AM 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:07AM UTC coverage: 91.495% (+0.003%) from 91.492%
14322787875

push

github

web-flow
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)

22409 of 24492 relevant lines covered (91.5%)

11800.64 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.56
-0.42% src/lib/ares_init.c
Jobs
ID Job ID Ran Files Coverage
1 14322787875.1 08 Apr 2025 01:10AM UTC 937
60.11
GitHub Action Run
Source Files on build 14322787875
  • Tree
  • List 178
  • Changed 55
  • Source Changed 0
  • Coverage Changed 55
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 42c9d9db on github
  • Prev Build on main (#14282388961)
  • Next Build on main (#14331517211)
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