Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable stacktrace in asan build #19264

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion onnxruntime/core/platform/windows/stacktrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stacktrace>
#endif
#endif
#include <absl/base/config.h>

#include "core/common/logging/logging.h"
#include "core/common/gsl.h"
Expand Down Expand Up @@ -43,7 +44,7 @@

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)

Check warning on line 47 in onnxruntime/core/platform/windows/stacktrace.cc

View workflow job for this annotation

GitHub Actions / Lint C++

[cpplint] reported by reviewdog 🐶 Lines should be <= 120 characters long [whitespace/line_length] [2] Raw Output: onnxruntime/core/platform/windows/stacktrace.cc:47: Lines should be <= 120 characters long [whitespace/line_length] [2]

std::vector<std::string> CaptureStackTrace::Trace() const {
std::vector<std::string> stacktrace;
Expand Down
Loading