From 8d4cc89be07b3dd70ee155dcefbef66f1476b363 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 24 Jan 2024 16:23:48 -0800 Subject: [PATCH] Disable stacktrace in asan build --- onnxruntime/core/platform/windows/stacktrace.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onnxruntime/core/platform/windows/stacktrace.cc b/onnxruntime/core/platform/windows/stacktrace.cc index d7d423e4a483e..21cb00d0d0004 100644 --- a/onnxruntime/core/platform/windows/stacktrace.cc +++ b/onnxruntime/core/platform/windows/stacktrace.cc @@ -10,6 +10,7 @@ #include #endif #endif +#include #include "core/common/logging/logging.h" #include "core/common/gsl.h" @@ -43,7 +44,7 @@ std::vector GetStackTrace() { namespace detail { #ifndef NDEBUG -#if (defined __cpp_lib_stacktrace) && !(defined _OPSCHEMA_LIB_) && !(defined _GAMING_XBOX) && !(defined ONNXRUNTIME_ENABLE_MEMLEAK_CHECK) +#if (defined __cpp_lib_stacktrace) && !(defined _OPSCHEMA_LIB_) && !(defined _GAMING_XBOX) && !(defined ONNXRUNTIME_ENABLE_MEMLEAK_CHECK) && !(defined ABSL_HAVE_ADDRESS_SANITIZER) std::vector CaptureStackTrace::Trace() const { std::vector stacktrace;