Actions
Bug #3290
closedosmo-pcu runtime errors due to clock drift in gprs_rlcmac_meas.cpp
Start date:
05/25/2018
Due date:
% Done:
0%
Spec Reference:
Description
The first jenkins verification run of https://gerrit.osmocom.org/#/c/osmo-pcu/+/9301/ failed because the substraction of two struct timevals lead to a negative number even though it should not:
(02:34:07 PM) stsp_: this failure in osmo-pcu jenkins looks like clock skew: +../../../src/gprs_rlcmac_meas.cpp:178:40: runtime error: left shift of negative value -999116 (02:34:20 PM) stsp_: also here: +../../../src/gprs_rlcmac_meas.cpp:134:42: runtime error: left shift of negative value -999039
Given the implicit assumption made in this code that time won't ever go backwards, it seems this code really wants to be using clock_gettime with CLOCK_MONOTONIC instead of gettimeofday().
Related issues
Actions