[Bug sanitizer/65749] sanitizer stack trace pc off by 1

y.gribov at samsung dot com gcc-bugzilla@gcc.gnu.org
Thu Apr 16 12:53:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65749

Yury Gribov <y.gribov at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |y.gribov at samsung dot com

--- Comment #2 from Yury Gribov <y.gribov at samsung dot com> ---
This is not a bug but rather a design choice - it is hard to compute exact size
of preceding instruction on CISC platforms. ASan just decrements 1 because this
is enough for tools like addr2line or gdb to symbolize addresses. Replacing by
trace[i] would indeed cause invalid symbolization as you already noticed.



More information about the Gcc-bugs mailing list