From: Mathieu Desnoyers Date: Wed, 12 Dec 2018 22:37:54 +0000 (-0500) Subject: Fix: do not repurpose iterator while it is being used X-Git-Tag: v2.10.6~6 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=88c6cf5e08792a86853a27b94944dc9df1d3a330;hp=88c6cf5e08792a86853a27b94944dc9df1d3a330;p=lttng-tools.git Fix: do not repurpose iterator while it is being used The hash table iteration uses an iterator that needs to stay valid for the next loop. Using that same iterator variable in a nested lookup in a different hash table leads to segmentation fault. This is a 2.10-specific instance of the issue affecting bind_trigger_to_matching_channels() which was found in the master and 2.11 branches. This one affects handle_notification_thread_command_register_trigger(). Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---