From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10780 invoked by alias); 22 Dec 2007 19:14:19 -0000 Received: (qmail 10699 invoked by uid 48); 22 Dec 2007 19:14:07 -0000 Date: Sat, 22 Dec 2007 19:14:00 -0000 Subject: [Bug fortran/34558] New: Regression 4.3: ICE with same TYPE in both program and interface X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" 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: 2007-12/txt/msg02063.txt.bz2 The following program uses an excessive amount of memory, which causes the segmentation fault. valgrind shows: ==27188== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==27188== Access not within mapped region at address 0x7FE001700 ==27188== at 0x427539: gfc_compare_derived_types (interface.c:365) ==27188== Invalid write of size 8 ==27188== at 0x4A1E348: _vgnU_freeres (in /usr/lib64/valgrind/amd64-linux/vgpreload_core.so) ==27188== Address 0x7fe001f70 is on thread 1's stack ==27188== Stack overflow in thread 1: can't grow stack to 0x7FE001F70 ! Regression. ICE on valid code. ! The following works with 4.1.3 and 4.2.2, but fails ! (segmentation fault) with 4.3.0. ! ! Found using the Fortran Company Fortran 90 Test Suite (Lite), ! Version 1.4 program error implicit none type node sequence type(node), pointer :: next end type type(node), pointer :: list interface subroutine insert(ptr) implicit none type node sequence type(node), pointer :: next end type type(node), pointer :: ptr end subroutine insert end interface allocate (list); end program error -- Summary: Regression 4.3: ICE with same TYPE in both program and interface Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org OtherBugsDependingO 32834 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34558