From: Jérémie Galarneau Date: Tue, 29 Oct 2019 03:32:36 +0000 (-0400) Subject: Fix: relayd: live: crash on attach to a session without trace chunk X-Git-Tag: v2.12.0-rc1~270 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=79a4298098da8ec2d118e00ca2a08e7b542e7287;hp=79a4298098da8ec2d118e00ca2a08e7b542e7287 Fix: relayd: live: crash on attach to a session without trace chunk Attaching to a session that doesn't have a current trace chunk results in a crash when the viewer streams are created from a NULL viewer trace chunk. Live clients are prevented from attaching to sessions without a current trace chunk as those sessions are either being destroyed or too young to have a trace chunk, meaning that they don't have streams yet. Live clients will receive the "unknown" status code that they already receive when asking an unknown session. Since such sessions are not listed, this shouldn't change any exposed behaviour. Signed-off-by: Jérémie Galarneau ---