summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2022-12-19 17:15:31 +0900
committerYusuke Endoh <[email protected]>2022-12-23 23:48:18 +0900
commit65920cfc40b47e9e037e0536b2b7de8f0cf30fc3 ()
treec7aea8cb8fd376ddbe001d2cf7c353a582e511c4 /addr2line.c
parent97280faf2818cc464e1ef9e898807c60a2726bf8 (diff)
addr2line.c: Strip pointer authentication
We need to manually strip pointer authentication bits on M1 mac because libunwind s them out. Co-Authored-By: NARUSE, Yui <[email protected]> Co-Authored-By: Yuta Saito <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/7011
-rw-r--r--addr2line.c10
1 files changed, 10 insertions, 0 deletions
@@ -2548,6 +2548,16 @@ rb_dump_backtrace_with_lines(int num_traces, void **traces)
obj_info_t *obj = NULL;
/* 2 is NULL + main executable */
void **dladdr_fbases = (void **)calloc(num_traces+2, sizeof(void *));
#ifdef HAVE_MAIN_EXE_PATH
char *main_path = NULL; /* used on printing backtrace */
ssize_t len;