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



             Bug #: 55482

           Summary: gfortran.dg/class_array_7.f03 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-gfortran RUNTESTFLAGS="--target_board=unix'{-fsanitize=address}'"



on x86_64-apple-darwin12 produced regressions in the execution tests for...



FAIL: gfortran.dg/class_array_7.f03  -O0  execution test

FAIL: gfortran.dg/class_array_7.f03  -O1  execution test

FAIL: gfortran.dg/class_array_7.f03  -O2  execution test

FAIL: gfortran.dg/class_array_7.f03  -O3 -fomit-frame-pointer  execution test

FAIL: gfortran.dg/class_array_7.f03  -O3 -fomit-frame-pointer -funroll-loops 

execution test

FAIL: gfortran.dg/class_array_7.f03  -O3 -fomit-frame-pointer

-funroll-all-loops -finline-functions  execution test

FAIL: gfortran.dg/class_array_7.f03  -O3 -g  execution test

FAIL: gfortran.dg/class_array_7.f03  -Os  execution test



which are of the form...



Executing on host:

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

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

-B/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/class_array_7.f03

 -fno-diagnostics-show-caret   -O0   -pedantic-errors 

-B/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs

-L/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs

-L/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs

-B/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs

-L/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs

-L/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs

 -lm   -fsanitize=address -o ./class_array_7.exe    (timeout = 300)

PASS: gfortran.dg/class_array_7.f03  -O0  (test for excess errors)

Setting LD_LIBRARY_PATH to

.:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.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-darwin11.4.2/./libgfortran/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libgfortran/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/x86_64-apple-darwin11.4.2/./libquadmath/.libs:/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc

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

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

0x000104c56fe8 at pc 0x101d34edd bp 0x7fff61930200 sp 0x7fff619301f8

READ of size 4 at 0x000104c56fe8 thread T0

    #0 0x101d34edc

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x100002edc)

    #1 0x101d34979

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x100002979)

    #2 0x101d35523

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x100003523)

    #3 0x101d3579c

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x10000379c)

    #4 0x101d334ef

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x1000014ef)

    #5 0x0

0x000104c56fe8 is located 0 bytes to the right of 40-byte region

[0x000104c56fc0,0x000104c56fe8)

allocated by thread T0 here:

    #0 0x101ebdd85 (/sw/lib/gcc4.8/lib/libasan.0.dylib+0xbd85)

    #1 0x7fff958d53c7 (/usr/lib/system/libsystem_c.dylib+0xa03c7)

    #2 0x7fff958d61a3 (/usr/lib/system/libsystem_c.dylib+0xa11a3)

    #3 0x101d350a3

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x1000030a3)

    #4 0x101d3579c

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x10000379c)

    #5 0x101d334ef

(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_array_7.exe+0x1000014ef)

Shadow byte and word:

  0x10002098adfd: fb

  0x10002098adf8: 00 00 00 00 00 fb fb fb

More shadow bytes:

  0x10002098add8: fa fa fa fa fa fa fa fa

  0x10002098ade0: fa fa fa fa fa fa fa fa

  0x10002098ade8: fa fa fa fa fa fa fa fa

  0x10002098adf0: fa fa fa fa fa fa fa fa

=>0x10002098adf8: 00 00 00 00 00 fb fb fb

  0x10002098ae00: fa fa fa fa fa fa fa fa

  0x10002098ae08: fd fd fd fd fd fd fd fd

  0x10002098ae10: fa fa fa fa fa fa fa fa

  0x10002098ae18: fd fd fd fd fd fd fd fd

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

Stats: 0M realloced by 0 calls

Stats: 0M freed by 4 calls

Stats: 0M really freed by 0 calls

Stats: 1M (384 full pages) mmaped in 3 calls

  mmaps   by size class: 7:4095; 8:2047; 11:255;

  mallocs by size class: 7:3; 8:2; 11:2;

  frees   by size class: 7:2; 11:2;

  rfrees  by size class:

Stats: malloc large: 0 small slow: 3

==52005== ABORTING

FAIL: gfortran.dg/class_array_7.f03  -O0  execution test

Reply via email to