http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55483
Bug #: 55483
Summary: gfortran.dg/class_optional_2.f90 execution failures
with -fsanitize=address
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Using...
make -k check-gfortran RUNTESTFLAGS="--target_board=unix'{-fsanitize=address}'"
on x86_64-apple-darwin12 produces execution failures in...
FAIL: gfortran.dg/class_optional_2.f90 -O0 execution test
FAIL: gfortran.dg/class_optional_2.f90 -O1 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_optional_2.f90
-fno-diagnostics-show-caret -O0 -fcoarray=single
-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_optional_2.exe (timeout = 300)
PASS: gfortran.dg/class_optional_2.f90 -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
=================================================================
==52735== ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7fff6264f3cf at pc 0x102bfb025 bp 0x7fff6264f0f0 sp 0x7fff6264f0c8
WRITE of size 1 at 0x7fff6264f3cf thread T0
#0 0x102bfb024 (/sw/lib/gcc4.8/lib/libasan.0.dylib+0xa024)
#1 0x102a64031
(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_optional_2.exe+0x100013031)
#2 0x102a5270f
(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_optional_2.exe+0x10000170f)
#3 0x102a6bfc0
(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_optional_2.exe+0x10001afc0)
#4 0x102a52213
(/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/./class_optional_2.exe+0x100001213)
#5 0x0
Address 0x7fff6264f3cf is located at offset 223 in frame <a1a1> of T0's stack:
This frame has 2 object(s):
[32, 80) 'x'
[128, 176) 'y'
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:
0x1fffec4c9e79: f3
0x1fffec4c9e78: f3 f3 00 00 00 00 00 00
More shadow bytes:
0x1fffec4c9e58: 00 00 00 00 00 00 f1 f1
0x1fffec4c9e60: f1 f1 00 00 00 00 00 00
0x1fffec4c9e68: f4 f4 f2 f2 f2 f2 00 00
0x1fffec4c9e70: 00 00 00 00 f4 f4 f3 f3
=>0x1fffec4c9e78: f3 f3 00 00 00 00 00 00
0x1fffec4c9e80: 00 00 00 00 00 00 00 00
0x1fffec4c9e88: 00 00 00 00 00 00 00 00
0x1fffec4c9e90: 00 00 00 00 00 00 00 00
0x1fffec4c9e98: 00 00 00 00 00 00 00 00
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: 8:2047;
mallocs by size class: 8:1;
frees by size class:
rfrees by size class:
Stats: malloc large: 0 small slow: 1
==52735== ABORTING
FAIL: gfortran.dg/class_optional_2.f90 -O0 execution test