Project

General

Profile

Actions

Bug #716

closed

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

Added by Jérémie Galarneau almost 11 years ago. Updated almost 11 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
Actions #1

Updated by David Goulet almost 11 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));
Actions #2

Updated by David Goulet almost 11 years ago

  • Status changed from New to Confirmed
Actions #3

Updated by David Goulet almost 11 years ago

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

Also available in: Atom PDF