Fix: don't access missing ctf trace when getting metadata
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Aug 2015 18:55:11 +0000 (14:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 31 Jan 2018 19:46:03 +0000 (14:46 -0500)
commitb93293f64299d1d7ef7a55a67e42b27fa2262f19
tree667686e2a8005b02cddd0d0b2ab54847e17821e9
parentc0bed13943846ef9b60b22b88401741e918281ce
Fix: don't access missing ctf trace when getting metadata

We can get metadata when still in the trace open functions, in which
case the ctf trace is not allocated nor available yet. This fixes a
segmentation fault in stress-test.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/lttng-live/lttng-live-comm.c
This page took 0.032595 seconds and 4 git commands to generate.