[tor-bugs] #30187 [Core Tor/Tor]: 100% cpu usage in winthreads tor_cond_wait
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Apr 15 14:37:58 UTC 2019
#30187: 100% cpu usage in winthreads tor_cond_wait
----------------------------------+------------------------------------
Reporter: bolvan | Owner: ahf
Type: defect | Status: assigned
Priority: High | Milestone: Tor: 0.4.0.x-final
Component: Core Tor/Tor | Version: Tor: 0.3.5.8
Severity: Normal | Resolution:
Keywords: windows 035-backport | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------------+------------------------------------
Comment (by nickm):
One possible fix here would be to use ConditionVariable instead; it's been
in Windows since Vista.
If we don't that route, here is a part that looks suspicious to me: the
generation count getting stuck at 28 suggests to me that we are using
generation wrong. In any case, we should really be either waking up or
sleeping with each time through the loop, I think.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30187#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list