From: David Goulet Date: Thu, 12 Jan 2012 18:04:51 +0000 (-0500) Subject: Fix out of order channel insert in hash table X-Git-Tag: v2.0-pre17~23 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=58f3ca76ddd0d871fc1b71d816bdbabe1d7adeb1;hp=58f3ca76ddd0d871fc1b71d816bdbabe1d7adeb1 Fix out of order channel insert in hash table The channel, ust-app side, was added to the hash table of the session even if the creation failed on the tracer side. When enabling event for that channel, a segfault was hit since the channel did not exist on the tracer side and channel_data was NULL at this point. Now the channel insertion in the hash table is done *after* enabling it on the tracer side. Reported-by: Mathieu Desnoyers Signed-off-by: David Goulet ---