Fix: consumerd(64/32)_lib_dir can be NULL
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 29 Nov 2017 21:42:29 +0000 (16:42 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Nov 2017 23:33:46 +0000 (00:33 +0100)
commited6c7ac8aef8112943e3e7ae3dedd0ff453f4c73
tree3b78f3481aaabb95c94122508d44c65ff011c751
parent7d70128bae52ea3daac8a4ebf6839774ca0115e8
Fix: consumerd(64/32)_lib_dir can be NULL

Reproducer:
lttng-sessiond \
    --consumerd32-path=/usr/local/lib/lttng/libexec/lttng-consumerd \
    --consumerd64-path=/usr/local/lib/lttng/libexec/lttng-consumerd

lttng create
lttng enable-event -u -a

On a 64bit machine the invocation of the 64bit consumerd will not fail
since its libdir is populated by sessiond_config_init but will segfault on
spawning of the 32 bit consumerd when performing the check of libdir
value.

On a 32bit machine the opposite will happen.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.025968 seconds and 4 git commands to generate.