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;