From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28320 invoked by alias); 8 Dec 2014 21:45:13 -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 28271 invoked by uid 48); 8 Dec 2014 21:45:09 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64230] [4.9/5 Regression] Segmentation fault - invalid memory reference in a compiler-generated finalizer for a complicated type hierarchy when a polymorphic variable is allocated in an external procedure. Date: Mon, 08 Dec 2014 21:45: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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc cf_known_to_work target_milestone short_desc everconfirmed cf_known_to_fail 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: 2014-12/txt/msg00814.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64230 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-12-08 CC| |Joost.VandeVondele at mat dot ethz | |.ch Known to work| |4.8.3 Target Milestone|--- |4.9.3 Summary|Segmentation fault - |[4.9/5 Regression] |invalid memory reference in |Segmentation fault - |a compiler-generated |invalid memory reference in |finalizer for a complicated |a compiler-generated |type hierarchy when a |finalizer for a complicated |polymorphic variable is |type hierarchy when a |allocated in an external |polymorphic variable is |procedure. |allocated in an external | |procedure. Ever confirmed|0 |1 Known to fail| |4.9.2, 5.0 --- Comment #1 from Joost VandeVondele --- yes, confirmed, also with trunk (and -fsanitize=undefined) > gfortran -g -fno-omit-frame-pointer -fsanitize=undefined t.f90 && ./a.out t.f90:24: runtime error: member access within null pointer of type 'struct t6'