From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1551 invoked by alias); 28 May 2011 14:28:42 -0000 Received: (qmail 1539 invoked by uid 22791); 28 May 2011 14:28:41 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 May 2011 14:28:26 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47601] [OOP] Internal Error: mio_component_ref(): Component not found X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 28 May 2011 14:43:00 -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 X-SW-Source: 2011-05/txt/msg02836.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47601 --- Comment #18 from Dominique d'Humieres 2011-05-28 14:27:18 UTC --- With the patch in comment #17, the "mio_component_ref(): Component not found" are gone, but compiling gyre_lanr.f90 in the original code gives a segmentation fault: [macbook] bug/pr47601% gfc -c gyre_lanr.f90 f951: internal compiler error: Segmentation fault The backtrace is Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00000000000000a8 gfc_use_derived (sym=0x0) at ../../work/gcc/fortran/symbol.c:1942 1942 if (sym->components != NULL || sym->attr.zero_comp) (gdb) bt #0 gfc_use_derived (sym=0x0) at ../../work/gcc/fortran/symbol.c:1942 #1 0x000000010009f007 in gfc_find_component (sym=, name=0x7fff5fbfd220 "n_e", noaccess=0 '\0', silent=0 '\0') at ../../work/gcc/fortran/symbol.c:2002 #2 0x0000000000000001 in ?? ()