Actions
Bug #716
closedSession daemon asserts when a JUL event is enabled (with a wildcard) after all events have been enabled
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
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));
Updated by David Goulet almost 11 years ago
- Status changed from New to Confirmed
Updated by David Goulet almost 11 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset 996de3c771ebf249a9a40e5ff76daf60d55cb02f.
Actions