summaryrefslogtreecommitdiff
path: root/absl/debugging/BUILD.bazel
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-01-20 00:47:33 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-01-20 00:48:32 -0800
commitc611e5ce1de222eb995f5aeabf3fa8cd57ae124b (patch)
treef29c1d1d036397ae4a56c03af1c051e2e3a5e9ef /absl/debugging/BUILD.bazel
parent0d116682dd0e94dd97bbc483dd55437f626108e9 (diff)
absl: add a stack unwinding test
END_PUBLIC absl: relax frame size check in x86 stack unwinding Currently the unwinder stops whenever it sees a frame >100000 bytes. There may be such legitimate frames, the default stack size is O(megabytes). Only do this check if we are not within the thread stack bounds. The thread stack is assumed to be readable, so the worst thing that can happen if the large stack frame is actually bogus is that we will add one/few wrong frames and stop. PiperOrigin-RevId: 503374764 Change-Id: Icabb55d6468b12a42bf026c37c98dbe84977e659
Diffstat (limited to 'absl/debugging/BUILD.bazel')
-rw-r--r--absl/debugging/BUILD.bazel12
1 files changed, 12 insertions, 0 deletions
diff --git a/absl/debugging/BUILD.bazel b/absl/debugging/BUILD.bazel
index a40285c8..edbb3698 100644
--- a/absl/debugging/BUILD.bazel
+++ b/absl/debugging/BUILD.bazel
@@ -53,6 +53,18 @@ cc_library(
],
)
+cc_test(
+ name = "stacktrace_test",
+ srcs = ["stacktrace_test.cc"],
+ copts = ABSL_TEST_COPTS,
+ linkopts = ABSL_DEFAULT_LINKOPTS,
+ deps = [
+ ":stacktrace",
+ "//absl/base:core_headers",
+ "@com_google_googletest//:gtest_main",
+ ],
+)
+
cc_library(
name = "symbolize",
srcs = [