From e4ca051ad70a7cf3b1f0d58eef6baa6f8b8e4455 Mon Sep 17 00:00:00 2001 From: Rosen Matev Date: Fri, 17 May 2024 14:32:40 +0200 Subject: [PATCH 1/2] Fix functor JIT in sanitizer builds --- Phys/FunctorCore/src/Components/Factory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Phys/FunctorCore/src/Components/Factory.cpp b/Phys/FunctorCore/src/Components/Factory.cpp index 08e31b1f470..64efa26e49a 100644 --- a/Phys/FunctorCore/src/Components/Factory.cpp +++ b/Phys/FunctorCore/src/Components/Factory.cpp @@ -562,7 +562,8 @@ functor_{0}{{ // functor_jitter is a shell script generated by cmake to invoke the // correct compiler with the correct flags see: // Phys/FunctorCore/CMakeLists.txt - auto cmd = "functor_jitter " + std::to_string( m_jit_n_jobs ) + " " + tmp_dir + " " + lib_filename; + // LD_PRELOAD= is needed to make sure the sanitizers don't run for the python wrapper and gcc + auto cmd = "LD_PRELOAD= functor_jitter " + std::to_string( m_jit_n_jobs ) + " " + tmp_dir + " " + lib_filename; if ( msgLevel( MSG::VERBOSE ) ) { verbose() << "Command that will be executed:\n" << cmd << endmsg; } -- GitLab From 18cd37ebe33acff9bd8c9b00bb96eb2880cfa48c Mon Sep 17 00:00:00 2001 From: Rosen Matev Date: Fri, 6 Jun 2025 11:43:59 +0200 Subject: [PATCH 2/2] Fix error from ubsan (invalid bool value) --- Phys/SelTools/include/SelTools/SigmaNet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Phys/SelTools/include/SelTools/SigmaNet.h b/Phys/SelTools/include/SelTools/SigmaNet.h index f0ac9cb6069..929b141fdd9 100644 --- a/Phys/SelTools/include/SelTools/SigmaNet.h +++ b/Phys/SelTools/include/SelTools/SigmaNet.h @@ -176,7 +176,7 @@ namespace Sel { std::vector m_biases; // Network bias std::vector m_clamp_los; // in case of clamping, clamp to these values (lower) std::vector m_clamp_his; // in case of clamping, clamp to these values (upper) - bool m_min_max; // Apply min-max normalisation using clamping values + bool m_min_max = false; // Apply min-max normalisation using clamping values static constexpr long unsigned int m_size = 128; // maximum width of the network. 128 is enough as the network can alternatively be made deeper. -- GitLab