From: Mathieu Desnoyers Date: Tue, 2 Apr 2019 16:40:22 +0000 (-0400) Subject: Fix relayd: initialize beacon to -1ULL X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=44a019c230262b94d8cbd2075cfbebccbe75dfc1;hp=44a019c230262b94d8cbd2075cfbebccbe75dfc1;p=lttng-tools.git Fix relayd: initialize beacon to -1ULL The relayd stream beacon_ts_end field is expected to have the value -1ULL when unset (no beacon has been received since last index). However, the initial state is wrong. It is left at the value 0, which indicates that a live beacon has indeed been received (which is untrue), which in turn causes a live beacon with ctf_stream_id of -1ULL to be sent to babeltrace, which does not expect it, and fails. This issue can be triggered with the following scenario: 1) create live session 2) setup UST per-uid buffers tracing 3) start tracing, without any active traced application 4) hook with babeltrace live client to view the trace 5) run a traced application Step 5) will cause the babeltrace live client to receive a stream_id of -1ULL, and error out. Signed-off-by: Mathieu Desnoyers ---