mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
Workaround for Clang bug: https://bugs.llvm.org/show_bug.cgi?id=51515 When compiled on aarch64 with ASAN support and -Og/-Oz/-Os optimization level, `raft_sys_table_storage::do_store_log_entries` crashes during the tests. ASAN incorrectly reports `stack-use-after-return` on `std::vector` list initialization after initial coroutine suspension (initializer list's data pointer starts to point to garbage). The workaround is simple: don't use initializer lists in such case and replace with a series of `emplace_back` calls. Tests: unit(debug, aarch64) Fixes #9178 Signed-off-by: Pavel Solodovnikov <pa.solodovnikov@scylladb.com> Message-Id: <20210818102038.92509-1-pa.solodovnikov@scylladb.com>