From 6b89da263a9006a436c744b7952cee2922436f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Sat, 6 Apr 2024 00:27:40 +0200 Subject: [PATCH] Ignore `chacha.hpp` ubsan errors (#4538) Ignore `chacha.hpp` errors --- sanitize_ignorelist_ubsan | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sanitize_ignorelist_ubsan b/sanitize_ignorelist_ubsan index e69de29bb2..a79cca2ac1 100644 --- a/sanitize_ignorelist_ubsan +++ b/sanitize_ignorelist_ubsan @@ -0,0 +1,12 @@ +# This class has a member variable that is marked alignas(16) which means the object should be aligned an a 16-byte boundary which it isn’t. +# Looking at where it’s instantiated it’s a static local function variable that is also thread_local. +# This could be some sort of bug in the thread_local alignment, maybe in combination with being a static local function variable. +# This issue is only reproducible on the GitHub MacOS UBSAN runners. +# /Users/runner/work/nano-node/nano-node/submodules/boost/libs/beast/include/boost/beast/core/detail/chacha.hpp:101:5: runtime error: constructor call on misaligned address 0x0001408c3e08 for type 'boost::beast::detail::chacha<20> *', which requires 16 byte alignment +# 0x0001408c3e08: note: pointer points here +# 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +# ^ +# #0 0x1059df490 in boost::beast::detail::chacha<20ul>::chacha(unsigned int const*, unsigned long long) chacha.hpp +# #1 0x1059df21c in boost::beast::websocket::detail::secure_generate() prng.ipp:123 +src:*/beast/core/detail/chacha.hpp +src:*/beast/websocket/detail/prng.ipp