[PATCH] [compiler-rt] Remove -fomit-frame-pointer from sanitizers CFLAGS

Alexander Potapenko glider at google.com
Fri Jun 27 10:32:19 PDT 2014


On Fri, Jun 27, 2014 at 8:20 PM, Kuba Brecka <kuba.brecka at gmail.com> wrote:
> I am having this problem with libdispatch functions. ASan has wrappers around functions such as dispatch_async, which do appear on the stack trace when using GCD. Unfortunately, when such a no-fp wrapper appears on the stack, it's not that wrapper frame that's missing (that would be probably fine), but it's the caller of it – i.e. the most important frame.
Will it help if we build the interceptors (and only them) without
frame pointers? This sounds like the right thing to do.

> Also in my specific case it's actually another library that's recording stack traces (Xcode's GCD debugging library) and the issue is the same. The backtrace is taken when a dispatch_async is called, and that trace contains the no-fp wrapper function.
>
> http://reviews.llvm.org/D4305
>
>



-- 
Alexander Potapenko
Software Engineer
Google Moscow




More information about the llvm-commits mailing list