[lttng-dev] [PATCH lttng-tools 1/3] Fix: relayd: tracefile rotation: viewer opening missing index file

2019-11-01 Thread Mathieu Desnoyers
Moving the head position of the tracefile array when the data is received opens a window where a viewer attaching to the session could try to open a missing index file (which has not been received yet). However, we want to bump the tail position as soon as we receive data, because the prior tail i

[lttng-dev] [PATCH lttng-tools 2/3] Fix: relayd: put chunk reference when closing stream

2019-11-01 Thread Mathieu Desnoyers
If a stream is closed by an application exiting (per-pid buffers), it needs to put its reference on the stream trace chunk right away, because otherwise still holding the reference on the trace chunk could allow a viewer stream (which holds a reference to the stream) to postpone destroy waiting for

[lttng-dev] [PATCH lttng-tools 3/3] Fix: sessiond: ust: deadlock with per-pid buffers

2019-11-01 Thread Mathieu Desnoyers
Do not hold the registry lock while communicating with the consumerd, because doing so causes inter-process deadlocks between consumerd and sessiond with the metadata request notification. The deadlock involves both sessiond and consumerd: * lttng-sessiond: thread 11 - thread_application_managem

[lttng-dev] [RELEASE] Babeltrace 2.0.0-rc2

2019-11-01 Thread Jérémie Galarneau
Hi everyone! Two weeks after having released [1] Babeltrace 2's first release candidate, today we're releasing Babeltrace 2.0.0-rc2. A prettified version of this announcement is available at: https://diamon.org/babeltrace/docs/release-notes/babeltrace-2.0.0-rc2-release-notes.html What's new sinc