Files
scylladb/test/boost
Ivan Prisyazhnyy 0836efd830 tracing: test/boost/tracing: fix use after free
fixes AddressSanitizer: stack-buffer-underflow on address 0x7ffd9a375820 at pc 0x555ac9721b4e bp 0x7ffd9a374e70 sp 0x7ffd9a374620

Backend registry holds a unique pointer to the backend implementation
that must outlive the whole tracing lifetime until the shutdown call.

So it must be catched/moved before the program exits its scope by
passing out the lambda chain.

Regarding deletion of the default destructor: moving object requires
a move constructor (for do_with) that is not implicitly provided if
there is a user-defined object destructor defined even tho its impl
is default.

Signed-off-by: Ivan Prisyazhnyy <ivan@scylladb.com>

Closes #8461
2021-04-12 16:44:07 +03:00
..
2021-04-01 12:56:08 +03:00
2020-11-12 12:36:13 +01:00
2021-01-15 18:28:24 +01:00
2021-03-11 12:17:13 +02:00
2020-08-11 10:37:34 +08:00
2020-11-03 21:30:11 +03:00