https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61530
Bug ID: 61530 Summary: [4.10 Regression] segfault with asan Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Current trunk started failing in the day between good: r211692 bad: r211720 > gfortran -c -fsanitize=address bug.f90 bug.f90: In function ‘mainlb’: bug.f90:3:0: internal compiler error: Segmentation fault SUBROUTINE mainlb(n, m, x, l, u, nbd, f, g, factr, pgtol, ws, wy, & ^ 0xa5ba8f crash_signal ../../gcc/gcc/toplev.c:337 0xa6f206 contains_struct_check ../../gcc/gcc/tree.h:2835 0xa6f206 build_check_stmt ../../gcc/gcc/asan.c:1824 0xa74dbb instrument_mem_region_access ../../gcc/gcc/asan.c:1984 0xa759a1 instrument_builtin_call ../../gcc/gcc/asan.c:2105 0xa759a1 maybe_instrument_call ../../gcc/gcc/asan.c:2178 0xa759a1 transform_statements ../../gcc/gcc/asan.c:2245 0xa7663c asan_instrument ../../gcc/gcc/asan.c:2625 0xa7663c execute ../../gcc/gcc/asan.c:2700 Please submit a full bug report, > cat bug.f90 MODULE cp_lbfgs CONTAINS SUBROUTINE mainlb(n, m, x, l, u, nbd, f, g, factr, pgtol, ws, wy, & csave, lsave, isave, dsave) CHARACTER(len=60) :: task IF (task == 'START') THEN IF (task(1:5) == 'NEW_X') GOTO 777 IF (task(1:4) == 'STOP') THEN IF (task(7:9) == 'CPU') THEN CALL dcopy(n,t,1,x,1) ENDIF ENDIF ENDIF 222 CONTINUE IF (info /= 0 .OR. iback >= 20) THEN IF (col == 0) THEN IF (info == 0) THEN ENDIF task = 'ABNORMAL_TERMINATION_IN_LNSRCH' GOTO 222 ENDIF ENDIF 777 CONTINUE END SUBROUTINE mainlb END MODULE cp_lbfgs