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.