This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/55480] New: gfortran.dg/allocate_alloc_opt_1{0,3}.f90 test cases ICE f91 with -fsanitize=address


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

             Bug #: 55480
           Summary: gfortran.dg/allocate_alloc_opt_1{0,3}.f90 test cases
                    ICE f91 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'{-sanitize=address}'"

on x86_64-apple-darwin12 reveals the following f951 ICEs...

FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O0  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O0  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O1  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O1  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O2  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O2  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer
-funroll-loops  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer
-funroll-loops  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -g  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -O3 -g  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -Os  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_10.f90  -Os  (test for excess errors)
FAIL: gfortran.dg/allocate_alloc_opt_13.f90  -O  (internal compiler error)
FAIL: gfortran.dg/allocate_alloc_opt_13.f90  -O  (test for excess errors)

These are of the form...

/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/allocate_alloc_opt_10.f90
 -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 ./allocate_alloc_opt_10.exe
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:
In function âMAIN__â:
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:7:0:
error: type mismatch in binary expression
unsigned long

integer(kind=4)

unsigned long

_322 = _321 - 1;

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:7:0:
internal compiler error: verify_gimple failed

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:7:0:
internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort

which backtraces as...

# gdb
/sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../f951
...
(gdb) r
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90
-fPIC -quiet -dumpbase allocate_alloc_opt_10.f90 -mmacosx-version-min=10.7.4
-mtune=core2 -auxbase allocate_alloc_opt_10 -O0 -pedantic-errors -version
-fno-diagnostics-show-caret -fsanitize=address -fintrinsic-modules-path
finclude -o /var/tmp//ccurR53f.s
Starting program: /sw/src/fink.build/gcc48-4.8.0-1000/darwin_objdir/gcc/f951
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90
-fPIC -quiet -dumpbase allocate_alloc_opt_10.f90 -mmacosx-version-min=10.7.4
-mtune=core2 -auxbase allocate_alloc_opt_10 -O0 -pedantic-errors -version
-fno-diagnostics-show-caret -fsanitize=address -fintrinsic-modules-path
finclude -o /var/tmp//ccurR53f.s
Reading symbols for shared libraries +++++++++................................
done
GNU Fortran (GCC) version 4.8.0 20121124 (experimental)
(x86_64-apple-darwin11.4.2)
    compiled by GNU C version 4.8.0 20121124 (experimental), GMP version 5.0.5,
MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.8.0 20121124 (experimental)
(x86_64-apple-darwin11.4.2)
    compiled by GNU C version 4.8.0 20121124 (experimental), GMP version 5.0.5,
MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:
In function âMAIN__â:
/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:7:0:
error: type mismatch in binary expression
unsigned long

integer(kind=4)

unsigned long

_322 = _321 - 1;

/sw/src/fink.build/gcc48-4.8.0-1000/gcc-4.8-20121124/gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90:7:0:
internal compiler error: verify_gimple failed

Program received signal SIGABRT, Aborted.
0x00007fff8d7b282a in __kill ()
(gdb) bt
#0  0x00007fff8d7b282a in __kill ()
#1  0x00007fff95876a9c in abort ()
#2  0x0000000100b3d354 in uw_init_context_1 (context=0x7fff5fbfee60,
outer_cfa=0x7fff5fbff110, outer_ra=0x100acb935) at
../../../gcc-4.8-20121124/libgcc/unwind-dw2.c:1502
(gdb)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]