From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126329 invoked by alias); 2 Sep 2015 14:09:26 -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 125816 invoked by uid 55); 2 Sep 2015 14:09:21 -0000 From: "graham.stott at btinternet dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/61337] Wrong indexing and runtime crash with unlimited polymorphic array. Date: Wed, 02 Sep 2015 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: graham.stott at btinternet dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: Message-ID: In-Reply-To: References: 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: 2015-09/txt/msg00178.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61337 --- Comment #4 from graham.stott at btinternet dot com ---
-------- Original message --------
From: "vladimir.fuka at gmail dot com"
Date:02/09/2015 14:55 (GMT+00:00)
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61337] Wrong indexing and runtime crash with unlimited polymorphic array.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61337 --- Comment #3 from Vladimir Fuka --- The crash is at line 22: allocate(a(size(tmp)+1)%items(size(e)), source = e) ASAN:SIGSEGV ================================================================= ==5902==ERROR: AddressSanitizer: SEGV on unknown address 0x60c0c08ef6b0 (pc 0x0000004086ed bp 0x7ffec4dcc6b0 sp 0x7ffec4dcc490 T0) #0 0x4086ec in __array_list_MOD_add_item /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22 #1 0x408ff4 in MAIN__ /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:35 #2 0x4096d5 in main /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:30 #3 0x7f898a67eb04 in __libc_start_main (/lib64/libc.so.6+0x21b04) #4 0x400e38 (/home/vf1r14/f/testy/stackoverflow/a.out+0x400e38) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/vf1r14/f/testy/stackoverflow/pr61337b.f90:22 __array_list_MOD_add_item ==5902==ABORTING