[PATCH] D114743: [libunwind] Fix failing unwind_leaffunction.pass.cpp
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 29 14:45:01 PST 2021
leonardchan created this revision.
leonardchan added a reviewer: ldionne.
leonardchan added a project: libunwind.
Herald added subscribers: libcxx-commits, kristof.beyls.
Herald added a reviewer: libunwind.
leonardchan requested review of this revision.
Herald added a project: LLVM.
Calling `raise` seems to not allow the `frame_handler` to reach the main method on our aarch64 builder (we only `_Z14signal_handleri` and `__kernel_rt_sigreturn`). Using `kill(getpid(), SIGSEGV)` doesn't seem to have this issue.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114743
Files:
libunwind/test/unwind_leaffunction.pass.cpp
Index: libunwind/test/unwind_leaffunction.pass.cpp
===================================================================
--- libunwind/test/unwind_leaffunction.pass.cpp
+++ libunwind/test/unwind_leaffunction.pass.cpp
@@ -39,7 +39,7 @@
}
__attribute__((noinline)) void crashing_leaf_func(void) {
- raise(SIGSEGV);
+ kill(getpid(), SIGSEGV);
}
int main(int, char**) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114743.390471.patch
Type: text/x-patch
Size: 374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211129/0250274d/attachment.bin>
More information about the llvm-commits
mailing list