Project

General

Profile

Actions

Bug #394

closed

Enabling an event after a started session containing no event makes tracing fails and assert for UST

Added by David Goulet over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Critical
Assignee:
Target version:
Start date:
11/08/2012
Due date:
% Done:

100%

Estimated time:

Description

$ lttng create
$ lttng start
$ lttng enable-event ...
$ lttng stop
---> Failure

For kernel, see bug346.

For UST, when stopping the trace, a wonderful assert is triggered!

ust-app.c:2354: ust_app_stop_trace: Assertion `ua_sess->started == 1' failed

This is explained by the fact that on start, there is no kernel nor ust session so nothing exists until the enable event. The started flag is never set thus creating this code flow error triggered by the assert above.

When enabling an event, we need a way to know if a start command was already done when creating a newly UST/kernel session and start it if so.

This is critical thus making it a priority.


Related issues 1 (0 open1 closed)

Related to LTTng-tools - Bug #346: Kernel tracing does not work when enabling events AFTER tracing was started if no event was previously enabled.ResolvedDavid Goulet09/19/2012

Actions
Actions #1

Updated by David Goulet over 11 years ago

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

Also available in: Atom PDF