Project

General

Profile

Actions

Bug #233

closed

Java applications do not register to the user's sessiond but to the root one

Added by Anonymous almost 12 years ago. Updated almost 12 years ago.

Status:
Invalid
Priority:
Normal
Target version:
-
Start date:
05/03/2012
Due date:
% Done:

0%

Estimated time:

Description

When using UST's JNI interface from a Java application (and after making sure the class and tracepoint types are loaded), the list of available tracepoints does not show up when typing "lttng list -u".

However, they do show up when setting up a trace session as root and using "sudo lttng list -u". I can then enable them, and take a trace, and everything is fine.

The user is not in the "tracing" group, but the Java program is running under that user, so it shouldn't matter, right?

Possibly related, when the program loads the LttngUst class, the following error shows up in the console:

libust[10723/10728]: Error: Timed out waiting for ltt-sessiond (in lttng_ust_init() at lttng-ust-comm.c:888)

But then, as mentionned, the tracepoints appear for the root user and tracing works properly.

Actions #1

Updated by Mathieu Desnoyers almost 12 years ago

  • Status changed from New to Feedback
  • Assignee set to Mathieu Desnoyers

There were known build issues with Alexandre's liblttng-ust deployment on his test machine. Does this problem still occur after the deployment problems were corrected ?

Actions #2

Updated by Anonymous almost 12 years ago

  • Status changed from Feedback to Invalid

Yep, I cannot reproduce with the recent versions of everything. Might have been some setup problems (I had used different toolchains to compile different parts of the lttng tools, don't know if that might have affected anything).

I'll mark as invalid and re-open if anything similar happens again.

Actions

Also available in: Atom PDF