[PATCH] [sanitizer] Expose __sanitizer_print_stack_trace().

Sergey Matveev earthdok at google.com
Fri Nov 29 03:33:33 PST 2013



================
Comment at: lib/msan/msan.cc:195
@@ -194,1 +194,3 @@
 
+// Inlining confuses the slow unwinder in __sanitizer_print_stack_trace().
+NOINLINE void GetStackTraceNoInline(StackTrace *stack, uptr max_s, uptr pc,
----------------
Alexey Samsonov wrote:
> How does it confuse the unwinder?
Like this:

    #0 0x7fef07e475a8 in __sanitizer_print_stack_trace llvm/projects/compiler-rt/lib/msan/msan.cc:578
    #1 0x7fef07e47658 in GetStackTrace san/llvm/projects/compiler-rt/lib/msan/msan.cc:188
    #2 0x7fef07e47658 in __sanitizer_print_stack_trace llvm/projects/compiler-rt/lib/msan/msan.cc:579
    #3 0x7fef07e8b2e1 in main (reproducers/a.out+0x602e1)
    #4 0x7fef06a2c76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
    #5 0x7fef07e8b1d4 in _start (reproducers/a.out+0x601d4)


http://llvm-reviews.chandlerc.com/D2221



More information about the llvm-commits mailing list