tor_gettimeofday_cached_monotonic seems to be busted
Have a look at the code. Shouldn't last_tv be static? It looks to me like, as it stands, the function does nothing more than tor_gettimeofday_cached().
issue