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

2015-04-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65749 --- Comment #4 from Jakub Jelinek --- For the purpose of looking up the address in line table etc. IMNSHO the subtraction of 1 is needed (that is what gcc unwinder does too, except for signal frames where the pc must be on the faulting or asynchr

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

2015-04-16 Thread y.gribov at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65749 --- Comment #3 from Yury Gribov --- @Kostya: I suggest to mention this in ASan FAQ.

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

2015-04-16 Thread y.gribov at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65749 Yury Gribov changed: What|Removed |Added CC||y.gribov at samsung dot com --- Comment #2

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

2015-04-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65749 --- Comment #1 from Martin Sebor --- Replacing the computation: uptr pc = GetPreviousInstructionPc(trace[i]); with the assignment: uptr pc = trace[i]; makes the PC in active frame in the stack trace consistent with the one reported on the