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

            Bug ID: 88260
           Summary: c++ code instrumented with address sanitizer crashes
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mirhet.saracevic at gmail dot com
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at 
gcc dot gnu.org
  Target Milestone: ---
            Target: i686-elf

Created attachment 45117
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45117&action=edit
objectdump of the c++ code

Following C++ code compiled with GCC 6.3.0 and option -fsanitize=address
crashes. 

int increment(int &x) {
        ++x;
        return 0;
}

int main(void)
{
        int x = 0;
        increment(x);
        return 0;
}

Objectdump of the code attached.
The execution crahes on following line:
994:    c7 83 00 00 00 20 f1    movl   $0xf1f1f1f1,0x20000000(%ebx)

Reply via email to