https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78672
Bug ID: 78672 Summary: Gfortran test suite failures with a sanitized compiler Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr Target Milestone: --- Created attachment 40242 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40242&action=edit Results for sanitized gfortran Running a sanitized gcc with time make -k -j8 check-gfortran RUNTESTFLAGS="--target_board=unix --tool_opts='-Wl,-lasan,-lubsan'" > & ../check_gf-243224p18.log & gives several failures (almost) not seen with a regular build (see attachment). Some of these failures are quite repetitive: (1) Coarray failures FAIL: gfortran.dg/coarray/alloc_comp_4.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/alloc_comp_4.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/atomic_1.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/atomic_1.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray/event_1.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/atomic_2.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/atomic_2.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray/cosubscript_1.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/cosubscript_1.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray/image_index_2.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/image_index_2.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray/lock_1.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/registering_1.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/registering_1.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray/this_image_2.f90 -fcoarray=single -O2 -latomic (test for excess errors) FAIL: gfortran.dg/coarray/this_image_2.f90 -fcoarray=lib -O2 -lcaf_single -latomic (test for excess errors) FAIL: gfortran.dg/coarray_lib_token_1.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_lib_token_2.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_send_by_ref_1.f08 -O* (test for excess errors) FAIL: gfortran.dg/coarray_stat_2.f90 -O* (test for excess errors) FAIL: gfortran.dg/coarray_stat_function.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_stat_whitespace.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_40.f90 -O* (test for excess errors) FAIL: gfortran.dg/coarray_11.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_atomic_4.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_atomic_5.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_atomic_6.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_lock_6.f90 -O (test for excess errors) FAIL: gfortran.dg/pr71688.f90 -O (test for excess errors) FAIL: gfortran.dg/bound_simplification_4.f90 -O* (test for excess errors) FAIL: gfortran.dg/bound_simplification_5.f90 -O* (test for excess errors) FAIL: gfortran.dg/coarray_alloc_comp_1.f08 -O* (test for excess errors) FAIL: gfortran.dg/coarray_alloc_comp_2.f08 -O* (test for excess errors) FAIL: gfortran.dg/coarray_alloc_comp_4.f08 -O (test for excess errors) FAIL: gfortran.dg/class_optional_2.f90 -O* (test for excess errors) FAIL: gfortran.dg/pr63331.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_21.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_23.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_29_2.f90 -O (test for excess errors) FAIL: gfortran.dg/coarray_allocate_7.f08 -O* (test for excess errors) FAIL: gfortran.dg/coarray_allocate_8.f08 -O* (test for excess errors) FAIL: gfortran.dg/coarray_allocate_9.f08 -O* (test for excess errors) FAIL: gfortran.dg/intent_out_7.f90 -O (test for excess errors) with ../../work/gcc/fortran/trans-decl.c:1042:10: runtime error: index -1 out of bounds for type 'tree_node *[7]' i.e., the line && GFC_TYPE_ARRAY_UBOUND (type, as->rank - 1) != NULL_TREE (2) FAIL: gfortran.dg/allocate_with_source_8.f08 -O* (test for excess errors) FAIL: gfortran.dg/unlimited_polymorphic_1.f03 -O* (test for excess errors) FAIL: gfortran.dg/unlimited_polymorphic_16.f90 -O (test for excess errors) FAIL: gfortran.dg/alloc_comp_class_5.f03 -O* (test for excess errors) with ../../work/gcc/fortran/interface.c:2948:33: runtime error: load of value 1818451807, which is not a valid value for type 'expr_t' i.e., the line && f->sym->ts.u.cl->length->expr_type == EXPR_CONSTANT (3) heap-use-after-free (pr78618) FAIL: gfortran.dg/char_conversion.f90 -O (internal compiler error) (4) heap-buffer-overflow FAIL: gfortran.dg/coarray/event_1.f90 -fcoarray=lib -O2 -lcaf_single -latomic execution test FAIL: gfortran.dg/coarray/event_2.f90 -fcoarray=lib -O2 -lcaf_single -latomic execution test FAIL: gfortran.dg/fmt_f0_2.f90 -O* execution test FAIL: gfortran.dg/allocate_with_source_8.f08 -O* execution test FAIL: gfortran.dg/alloc_comp_class_5.f03 -O* execution test FAIL: gfortran.dg/fmt_cache_1.f -O* execution test FAIL: gfortran.dg/fmt_cache_2.f -O* execution test (5) FAIL: gfortran.dg/gomp/udr5.f90 -O (test for excess errors) FAIL: gfortran.dg/gomp/udr7.f90 -O (test for excess errors) with ../../work/gcc/fortran/module.c:2525:28: runtime error: load of value 1606406560, which is not a valid value for type 'bt' which is the line ts->type = MIO_NAME (bt) (ts->type, bt_types); (6) unknown-crash FAIL: gfortran.dg/quad_2.f90 -O* execution test FAIL: gfortran.dg/quad_3.f90 -O* execution test (7) Probably some others.