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



             Bug #: 55509

           Summary: gcc.dg/torture/matrix-6.c 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.dg/torture/matrix-6.c  -O1  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O2  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O3 -fomit-frame-pointer  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O3 -fomit-frame-pointer -funroll-loops 

execution test

FAIL: gcc.dg/torture/matrix-6.c  -O3 -fomit-frame-pointer -funroll-all-loops

-finline-functions  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O3 -g  execution test

FAIL: gcc.dg/torture/matrix-6.c  -Os  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O2 -flto -flto-partition=none  execution test

FAIL: gcc.dg/torture/matrix-6.c  -O2 -flto  execution test



These 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.dg/torture/matrix-6.c

 -fno-diagnostics-show-caret   -O1  -fwhole-program  -lm   -fsanitize=address

-o ./matrix-6.exe    (timeout = 300)

PASS: gcc.dg/torture/matrix-6.c  -O1  (test for excess errors)

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/x86_64-apple-darwin12.2.0/./libsanitizer/asan/.libs::/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin12.2.0/./libsanitizer/asan/.libs

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

==61894== ERROR: AddressSanitizer: stack-buffer-overflow on address

0x7fff54070784 at pc 0x10bb8cc7d bp 0x7fff54070730 sp 0x7fff54070728

READ of size 4 at 0x7fff54070784 thread T0

    #0 0x10bb8cc7c

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/./matrix-6.exe+0x100000c7c)

Address 0x7fff54070784 is located at offset 36 in frame <main> of T0's stack:

  This frame has 1 object(s):

    [32, 36) 'd'

HINT: this may be a false positive if your program uses some custom stack

unwind mechanism or swapcontext

      (longjmp and C++ exceptions *are* supported)

Shadow byte and word:

  0x1fffea80e0f0: 4

  0x1fffea80e0f0: 04 f4 f4 f4 f3 f3 f3 f3

More shadow bytes:

  0x1fffea80e0d0: 00 00 00 00 00 00 00 00

  0x1fffea80e0d8: 00 00 00 00 00 00 00 00

  0x1fffea80e0e0: 00 00 00 00 00 00 00 00

  0x1fffea80e0e8: 00 00 00 00 f1 f1 f1 f1

=>0x1fffea80e0f0: 04 f4 f4 f4 f3 f3 f3 f3

  0x1fffea80e0f8: 00 00 00 00 00 00 00 00

  0x1fffea80e100: 00 00 00 00 00 00 00 00

  0x1fffea80e108: 00 00 00 00 00 00 00 00

  0x1fffea80e110: 00 00 00 00 00 00 00 00

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

Stats: 0M realloced by 0 calls

Stats: 0M freed by 0 calls

Stats: 0M really freed by 0 calls



Stats: 1M (257 full pages) mmaped in 2 calls

  mmaps   by size class: 7:4095; 15:16;

  mallocs by size class: 7:9; 15:1;

  frees   by size class:

  rfrees  by size class:

Stats: malloc large: 1 small slow: 1

==61894== ABORTING

Executing on host: addr2line -f -e

/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gcc/./matrix-6.exe

0x100000c7c   (timeout = 300)

FAIL: gcc.dg/torture/matrix-6.c  -O1  execution test

Reply via email to