Project

General

Profile

Bug #716

Session daemon asserts when a JUL event is enabled (with a wildcard) after all events have been enabled

Added by Jérémie Galarneau about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
01/15/2014
Due date:
% Done:

100%

Estimated time:

Description

Using commit 9e52b0d84210aaed7b6bb70709a6dafbffbe922c

$ lttng create java-test
Spawning a session daemon
Session java-test created.
Traces will be written in /home/jgalar/lttng-traces/java-test-20140115-105948

$ lttng enable-event -j -a
All JUL events are enabled in channel channel0

$ lttng enable-event -j bouba*
lttng-sessiond: event.c:56: add_unique_ust_event: Assertion `node_ptr == &event->node.node' failed.
JUL event bouba* created in channel channel0
#1

Updated by David Goulet about 6 years ago

Fix:

    diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
    index dd9e692..73ba774 100644
    --- a/src/bin/lttng-sessiond/cmd.c
    +++ b/src/bin/lttng-sessiond/cmd.c
    @@ -1439,6 +1439,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain,
                    assert(usess);

                    /* Create the default JUL tracepoint. */
    +               memset(&uevent, 0, sizeof(uevent));
                    uevent.type = LTTNG_EVENT_TRACEPOINT;
                    uevent.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
                    strncpy(uevent.name, DEFAULT_JUL_EVENT_NAME, sizeof(uevent.name));
#2

Updated by David Goulet about 6 years ago

  • Status changed from New to Confirmed
#3

Updated by David Goulet about 6 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF