Project

General

Profile

Actions

Bug #806

closed

Liver_timer_interval set to max uint for kernel channel with non-initilized live_timer session

Added by Jonathan Rajotte almost 10 years ago. Updated almost 10 years ago.

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

100%

Estimated time:

Description

To reproduce:
(with kernel tracing available)

lttng create test
lttng enable-channel testChan -k

(For comparison)
lttng enable-channel testChanUst -u

lttng save -a

The resulting XML reveal a bug for the liver_timer_interval propagation from session to a kernel channel. The live_timer_interval from the kernel channel(testChan) is not overwrite by the live_timer from the session and take the max uint value(4294967295). As discussed with David Goulet on irc, this might be a case of uninitialized variable.

On the other hand to propagation for UST channel is okay as seen in the XML.

David Goulet found a possible reason but with source code modification it seems this is not the problem. See attached patch.


Files

test.lttng (1.63 KB) test.lttng Jonathan Rajotte, 06/17/2014 09:24 AM
wrong_uint_int_conversion.patch (879 Bytes) wrong_uint_int_conversion.patch Jonathan Rajotte, 06/17/2014 09:24 AM
Actions #1

Updated by David Goulet almost 10 years ago

  • Target version set to 2.5
Actions #2

Updated by David Goulet almost 10 years ago

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

Applied in changeset tools|commit:d98ad589cd758f4a3167fb451a6e45d167b42942.

Actions

Also available in: Atom PDF