[lttng-dev] [PATCH lttng-tools] Fix: consumer-stream: use-after-free of metadata bucket

2022-02-25 Thread Vincent Whitchurch via lttng-dev
When consumer_stream_destroy() is called from, for example, the error path in setup_metadata(), consumer_stream_free() can end up being called twice on the same stream. Since the stream->metadata_bucket is not set to NULL after being destroyed, it leads to a use-after-free: ERROR:

Re: [lttng-dev] 回复: 回复: shm leak in traced application?

2022-02-25 Thread Jonathan Rajotte-Julien via lttng-dev
Hi zhenyu.ren, Please open a bug on our bug tracker and provide a reproducer against the latest stable version (2.13.x). https://bugs.lttng.org/ Please follow the guidelines: https://bugs.lttng.org/#Bug-reporting-guidelines Cheers On Fri, Feb 25, 2022 at 12:47:34PM +0800, zhenyu.ren via