[Bug sanitizer/108963] ASAN produces wrong line number in the report

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 2 15:19:18 GMT 2023


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-03-02
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=108023
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, I can see it's very similar to the other problem as I can see a LIM
happening in the output:

  <bb 3> [local count: 955630224]:
  d__lsm.8_9 = MEM[(int *)[pr108963.c:13:3] &d + 4B];
  _18 = c.3_12 + 1;
  ivtmp.12_23 = (unsigned char) _18;

  <bb 4> [local count: 8687547547]:
  # d__lsm.8_5 = PHI <[pr108963.c:8:14] _4(4), d__lsm.8_9(3)>
  # ivtmp.12_3 = PHI <ivtmp.12_17(4), ivtmp.12_23(3)>
  [pr108963.c:8:14] _4 = d__lsm.8_5 | 2;
  [pr108963.c:7:12 discrim 1] ivtmp.12_17 = ivtmp.12_3 + 1;
  [pr108963.c:7:12 discrim 1] if (ivtmp.12_17 != 3)
    goto <bb 4>; [89.00%]
  else
    goto <bb 5>; [11.00%]


More information about the Gcc-bugs mailing list