5.0b8: TF starts racing while idle
Brought to you by:
kenkeys
Sometimes when TF is running unattended, it will suddenly start eating 100% CPU (and keep doing this untill it's killed). This happens when using /more mode and /visual on (ans probably has quite some data in the more queue). I haven't seen it with other configurations (yet).
The bug has been observed in older versions as well.
When running a ktrace on the process, it seems to continuously repeat 'gettimeofday()' and makes no other kernel calls (no I/O). The systems on which I have seen this behaviour all were FreeBSD machines (4.x, 6.x, 7.x).
Then again, all we have is FreeBSD - it likely happens on other systems as well.
Logged In: NO
More info: in the main_loop it will every time call tfselect() with a timeout (tvp) of 0.0.
Causing it effectively to do busy waiting, rather than waiting for a select() to trigger.
I don't understand why this timeout remains 0.0 (the logic here is not quite clear to me).