Fix: relayd: live: crash when creating viewer streams
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Oct 2019 03:57:01 +0000 (23:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Nov 2019 03:29:07 +0000 (22:29 -0500)
commitbf9f320b357536c881b3b7a81177e74062dfc673
treeaa834ebe88c31e20b114a79e78d38da2b06096be
parenta29d73ddb79370ca3ae1b2562ffa4356983b4cf4
Fix: relayd: live: crash when creating viewer streams

Viewer streams can be creating while serving a "GET_STREAMS" viewer
client command for a session that is being destroyed. If this happens,
the viewer streams will be created with a NULL viewer trace chunk,
which would result in a crash.

The fix consists in returning a stream error when such a command
happens during the destruction of a session. This is the same
behaviour than if the session could not be found at all, introducing
no meaningful change in behaviour from the viewer's perspective.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/live.c
This page took 0.025511 seconds and 4 git commands to generate.