From 2e1b8240e6d0c45088abb17073a17686cd7535c7 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 22 Jan 2019 10:31:28 +0100 Subject: [PATCH] fix uninitialized timeval struct in metrics_hub This was causing issue in some builds done on the Ubuntu PPA systems leading to an SIGILL when starting the UE/eNB --- lib/include/srslte/common/metrics_hub.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/common/metrics_hub.h b/lib/include/srslte/common/metrics_hub.h index 6123119e3..eda6d0991 100644 --- a/lib/include/srslte/common/metrics_hub.h +++ b/lib/include/srslte/common/metrics_hub.h @@ -35,8 +35,11 @@ class metrics_hub : public periodic_thread public: metrics_hub() :m(NULL) - ,sleep_period_start() - {} + { + for (int i = 0; i < 3; ++i) { + sleep_period_start[i] = (struct timeval){}; + } + } bool init(metrics_interface *m_, float report_period_secs_=1.0) { m = m_; // Start with user-default priority