From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30798 invoked by alias); 20 Oct 2013 07:27:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30759 invoked by uid 48); 20 Oct 2013 07:27:14 -0000 From: "zeccav at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58813] New: SIGSEGV in show_locus at error.c:310 Date: Sun, 20 Oct 2013 07:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zeccav at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01403.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58813 Bug ID: 58813 Summary: SIGSEGV in show_locus at error.c:310 Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com ! SIGSEGV in show_locus at error.c:310 ! must be compiled as free form ! if seen as fixed format no SIGSEGV ! valgrind and sanitizer say invalid read at symbol.c:5001 "dummies = sym->formal;" ! sym already freed at symbol.c:2519? In gfc_free_symbol "free (sym);" ! linked to bug 56674? MODULE m PUBLIC t CONTAINS SUBROUTINE s TYPE(t) END SUBROUTINE END MODULE !f951: internal compiler error: Segmentation fault !0x869b1f crash_signal ! ../../gcc-4.8.2/gcc/toplev.c:332 !0x50b1eb show_locus ! ../../gcc-4.8.2/gcc/fortran/error.c:310 !0x50ba80 show_loci ! ../../gcc-4.8.2/gcc/fortran/error.c:434 !0x50ba80 error_print ! ../../gcc-4.8.2/gcc/fortran/error.c:666 !0x50c568 gfc_error(char const*, ...) ! ../../gcc-4.8.2/gcc/fortran/error.c:961 !0x5142e7 check_interface0 ! ../../gcc-4.8.2/gcc/fortran/interface.c:1477 !0x516bc4 check_sym_interfaces ! ../../gcc-4.8.2/gcc/fortran/interface.c:1589 !0x57e493 do_traverse_symtree ! ../../gcc-4.8.2/gcc/fortran/symbol.c:3575 !0x516cac gfc_check_interfaces(gfc_namespace*) ! ../../gcc-4.8.2/gcc/fortran/interface.c:1699 !0x55d31e resolve_types ! ../../gcc-4.8.2/gcc/fortran/resolve.c:14989 !0x55dba0 gfc_resolve ! ../../gcc-4.8.2/gcc/fortran/resolve.c:15073 !0x552286 gfc_parse_file() ! ../../gcc-4.8.2/gcc/fortran/parse.c:4614 !0x58e195 gfc_be_parse_file ! ../../gcc-4.8.2/gcc/fortran/f95-lang.c:189 !Please submit a full bug report, !with preprocessed source if appropriate. !Please include the complete backtrace with any bug report.