Fix: relayd: live: crash on attach to a session without trace chunk
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Oct 2019 03:32:36 +0000 (23:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Nov 2019 03:29:01 +0000 (22:29 -0500)
commita29d73ddb79370ca3ae1b2562ffa4356983b4cf4
treefac4d1ef1f7e3c5656e312b34457bc10044938f8
parent3c42c3ed6dcfd89b1a41074c01e4b21ab8c599ae
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 <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/live.c
This page took 0.02827 seconds and 4 git commands to generate.