[lttng-dev] Issue when first lttng_sessiond is started as a user with GID tracing and 2nd session is started as root

Anders Wallin wallinux at gmail.com
Tue Oct 13 10:29:18 EDT 2015


Hi,

when I start a session as user with gid=tracing it is created fine, but
when I start a 2nd session as root the first session is gone!


+ ssh root at 128.224.95.181 'killall -9 lttng-sessiond'

+ ssh root at 128.224.95.181 'ps -ef | grep lttng'
root      5119  5115  0 14:21 ?        00:00:00 sh -c ps -ef | grep lttng
root      5121  5119  0 14:21 ?        00:00:00 /bin/busybox.nosuid
/bin/grep lttng

+ ssh root at 128.224.95.181 'lttng --version'
lttng (LTTng Trace Control) 2.7.0 - Herbe à Détourne - v2.7.0

+ ssh trace1 at 128.224.95.181 'lttng create s_trace1'
Spawning a session daemon
Session s_trace1 created.

+ ssh trace1 at 128.224.95.181 'lttng list'
Available tracing sessions:
  1) s_trace1 (/home/trace1/lttng-traces/s_trace1-20151013-142106)
[inactive]
    Trace path: /home/trace1/lttng-traces/s_trace1-20151013-142106


Use lttng list <session_name> for more details

+ ssh root at 128.224.95.181 'lttng create s_root'
Spawning a session daemon
Session s_root created.
Traces will be written in /root/lttng-traces/s_root-20151013-142108

+ ssh root at 128.224.95.181 'lttng list'
Available tracing sessions:
  1) s_root (/root/lttng-traces/s_root-20151013-142108) [inactive]
    Trace path: /root/lttng-traces/s_root-20151013-142108


Use lttng list <session_name> for more details

<<<<< AND HERE IS THE ISSUE WHERE THE s_trace1 SESSION IS LOST>>>>
+ ssh trace1 at 128.224.95.181 'lttng list'
Currently no available tracing session


+ ssh root at 128.224.95.181 'ps -ef | grep lttng'
trace1    5134     1  0 14:21 ?        00:00:00 lttng-sessiond --daemonize
trace1    5135  5134  0 14:21 ?        00:00:00 lttng-runas    --daemonize
root      5157     1 14 14:21 ?        00:00:00 lttng-sessiond --daemonize
root      5158  5157  0 14:21 ?        00:00:00 lttng-runas    --daemonize
root      5189  5185  0 14:21 ?        00:00:00 sh -c ps -ef | grep lttng
root      5191  5189  0 14:21 ?        00:00:00 /bin/busybox.nosuid
/bin/grep lttng


I've tried it on 2.5 as well with the same result.

Anders Wallin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20151013/65dd051d/attachment.html>


More information about the lttng-dev mailing list