An implementation of __sanitizer::BufferedStackTrace::UnwindImpl is provided per sanitizer, but there isn't one for sanitizer-common. In non-optimized builds of the sanitizer-common tests that becomes a problem: the test sanitizer_stacktrace_test.cpp won't have a reference to that method optimized away, causing linking errors. This patch provides a dummy implementation, which fixes those builds.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
That's bad, but I don't see a better easy way to fix that.
Maybe you create some separate sanitizer_common_test_runtime lib.
LGTM as is
compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp | ||
---|---|---|
182 | to crash even with NDEBUG |
Comment Actions
I also thought about that, and considered that option, but in the end I concluded it wasn't worth it.
I will land this now. Thanks.
to crash even with NDEBUG
UNIMPLEMENTED();