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

Kuba Brecka kuba.brecka at gmail.com
Fri Jun 27 09:20:00 PDT 2014


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.

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






More information about the llvm-commits mailing list