http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55504



             Bug #: 55504

           Summary: gcc.c-torture/execute/20071018-1.c execution failures

                    with -fsanitize=address

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: sanitizer

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: howa...@nitro.med.uc.edu

                CC: do...@gcc.gnu.org, dvyu...@gcc.gnu.org,

                    ja...@gcc.gnu.org, k...@gcc.gnu.org





Using...



make -k check-gcc RUNTESTFLAGS="--target_board=unix'{-fsanitize=address}'"



on x86_64-apple-darwin12 produces execution failures in...



FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O0 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O1 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O2 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O3 -fomit-frame-pointer 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O3 -g 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -Os 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -Og -g 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O2 -flto

-flto-partition=none 

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O2 -flto 



which are of the form...



Executing on host: /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/xgcc

-B/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121127/gcc/testsuite/gcc.c-torture/execute/20071018-1.c

 -fno-diagnostics-show-caret  -w  -O0   -lm   -fsanitize=address -o

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/20071018-1.x0

   (timeout = 300)

PASS: gcc.c-torture/execute/20071018-1.c compilation,  -O0

Setting LD_LIBRARY_PATH to

:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc::/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc

=================================================================

==32238== ERROR: AddressSanitizer: heap-buffer-overflow on address

0x00010e4d9fb8 at pc 0x10b81ee35 bp 0x7fff543dea70 sp 0x7fff543dea68

WRITE of size 8 at 0x00010e4d9fb8 thread T0

    #0 0x10b81ee34

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/20071018-1.x0+0x100000e34)

    #1 0x10b81ee89

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/20071018-1.x0+0x100000e89)

    #2 0x7fff8bd827e0 (/usr/lib/system/libdyld.dylib+0x27e0)

    #3 0x0

0x00010e4d9fb8 is located 8 bytes to the left of 32-byte region

[0x00010e4d9fc0,0x00010e4d9fe0)

allocated by thread T0 here:

    #0 0x10b830a25 (/sw/lib/gcc4.8/lib/libasan.0.dylib+0xba25)

    #1 0x7fff94c3b152 (/usr/lib/system/libsystem_c.dylib+0x2d152)

    #2 0x7fff94c3bba6 (/usr/lib/system/libsystem_c.dylib+0x2dba6)

    #3 0x10b81ede3

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/20071018-1.x0+0x100000de3)

    #4 0x10b81ee89

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/20071018-1.x0+0x100000e89)

    #5 0x7fff8bd827e0 (/usr/lib/system/libdyld.dylib+0x27e0)

Shadow byte and word:

  0x100021c9b3f7: fa

  0x100021c9b3f0: fa fa fa fa fa fa fa fa

More shadow bytes:

  0x100021c9b3d0: fa fa fa fa fa fa fa fa

  0x100021c9b3d8: fa fa fa fa fa fa fa fa

  0x100021c9b3e0: fa fa fa fa fa fa fa fa

  0x100021c9b3e8: fa fa fa fa fa fa fa fa

=>0x100021c9b3f0: fa fa fa fa fa fa fa fa

  0x100021c9b3f8: 00 00 00 00 fb fb fb fb

  0x100021c9b400: fa fa fa fa fa fa fa fa

  0x100021c9b408: fa fa fa fa fa fa fa fa

  0x100021c9b410: fa fa fa fa fa fa fa fa

Stats: 0M malloced (0M for red zones) by 1 calls

Stats: 0M realloced by 0 calls

Stats: 0M freed by 0 calls

Stats: 0M really freed by 0 calls

Stats: 0M (128 full pages) mmaped in 1 calls

  mmaps   by size class: 7:4095;

  mallocs by size class: 7:1;

  frees   by size class:

  rfrees  by size class:

Stats: malloc large: 0 small slow: 1

==32238== ABORTING

FAIL: gcc.c-torture/execute/20071018-1.c execution,  -O0

Reply via email to