public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/55483] New: gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address
@ 2012-11-27  1:45 howarth at nitro dot med.uc.edu
  2012-11-27  1:57 ` [Bug sanitizer/55483] " howarth at nitro dot med.uc.edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-11-27  1:45 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: howarth@nitro.med.uc.edu
                CC: dodji@gcc.gnu.org, dvyukov@gcc.gnu.org,
                    jakub@gcc.gnu.org, kcc@gcc.gnu.org


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug sanitizer/55483] gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address
  2012-11-27  1:45 [Bug sanitizer/55483] New: gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address howarth at nitro dot med.uc.edu
@ 2012-11-27  1:57 ` howarth at nitro dot med.uc.edu
  2012-12-10 18:50 ` howarth at nitro dot med.uc.edu
  2013-01-15 11:27 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-11-27  1:57 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-11-27 01:56:48 UTC ---
Created attachment 28787
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28787
assembly file for gfortran.dg/class_optional_2.f90  -O0 with -fsanitize=address


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug sanitizer/55483] gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address
  2012-11-27  1:45 [Bug sanitizer/55483] New: gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address howarth at nitro dot med.uc.edu
  2012-11-27  1:57 ` [Bug sanitizer/55483] " howarth at nitro dot med.uc.edu
@ 2012-12-10 18:50 ` howarth at nitro dot med.uc.edu
  2013-01-15 11:27 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2012-12-10 18:50 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-12-10 18:49:46 UTC ---
This one doesn't reproduce on x86_64 Fedora 15 but appears to be a tuning
issue. If I append -mtune=generic to the compilation of 
gfortran.dg/class_optional_2.f90 at -O0 on x86_64-apple-darwin12, the resulting
executable runs fine.  Likewise, if I append -mtune=core2 to the compilation of
 gfortran.dg/class_optional_2.f90 at -O0 on x86_64 Fedora 15, the test case
fails like on x86_64 darwin.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug sanitizer/55483] gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address
  2012-11-27  1:45 [Bug sanitizer/55483] New: gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address howarth at nitro dot med.uc.edu
  2012-11-27  1:57 ` [Bug sanitizer/55483] " howarth at nitro dot med.uc.edu
  2012-12-10 18:50 ` howarth at nitro dot med.uc.edu
@ 2013-01-15 11:27 ` burnus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-01-15 11:27 UTC (permalink / raw)
  To: gcc-bugs


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-01-15 11:26:11 UTC ---
Duplicate of PR 55978

*** This bug has been marked as a duplicate of bug 55978 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-15 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27  1:45 [Bug sanitizer/55483] New: gfortran.dg/class_optional_2.f90 execution failures with -fsanitize=address howarth at nitro dot med.uc.edu
2012-11-27  1:57 ` [Bug sanitizer/55483] " howarth at nitro dot med.uc.edu
2012-12-10 18:50 ` howarth at nitro dot med.uc.edu
2013-01-15 11:27 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).