Assertion error in ev_now()

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Nov 21 15:10:06 CET 2006


In message <ujrejrxkkol.fsf at cat.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgra
v?= writes:
>"Lennart Regebro" <regebro at gmail.com> writes:
>> Assert error in ev_now(), mgt_event.c line 81:
>> Condition(clock_gettime(CLOCK_MONOTONIC,&ts) =3D=3D 0) not true.
>> [...]
>> New adventures in Varnish: Turns out the machines have wildly
>> differing Linux versions.   2.6.17.6 vs 2.4.31. Could that be the
>> difference? 2.4... that's pretty old.
>
>Looks like 2.4 doesn't have a monotonic clock.  We should check for
>that in configure.ac...

We can fall back to CLOCK_REALTIME in that case, but we suffer ill
effects if the clock is stepped (by NTPD or otherwise).

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list