Fix: sessiond: trigger with condition not requiring event notifier cannot be listed
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 19 Apr 2021 18:04:53 +0000 (14:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Apr 2021 05:23:02 +0000 (01:23 -0400)
commit43cee6f9977d1690fe8c3613740af7286985eba9
tree822058958187bfceaa439fa1ca8748076f063df1
parentda76598b1e8dd87fb8f982f4f2f13ef204554564
Fix: sessiond: trigger with condition not requiring event notifier cannot be listed

Observed issue
==============

The lttng-sessiond process aborts when an lttng error query is performed
against a trigger that uses a condition other than "event-match".

Cause
=====

The trigger's condition is a LTTNG_CONDITION_TYPE_SESSION_CONSUMED_SIZE
which does not have a "domain type".

This results in the call to `abort()` in
`event_notifier_error_accounting_get_count` of the default case.

Solution
========

Check if the trigger "needs" or at least "depends" on tracer notifier.

Known drawbacks
=========

None

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I3d5f09617f95315060a611b464d1df95cb80c5bd
src/bin/lttng-sessiond/event-notifier-error-accounting.c
src/bin/lttng-sessiond/trigger-error-query.c
This page took 0.033219 seconds and 4 git commands to generate.