From owner-freebsd-toolchain@freebsd.org Mon Dec 9 12:46:18 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 713621D6189 for ; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47WjcB2T0dz4ZTR for ; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 52DED1D6186; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 519871D6185 for ; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47WjcB1SKXz4ZTP for ; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D5C01AC3C for ; Mon, 9 Dec 2019 12:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB9CkIP1083623 for ; Mon, 9 Dec 2019 12:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB9CkIbP083619 for toolchain@FreeBSD.org; Mon, 9 Dec 2019 12:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 242506] [PowerPC] lang/gcc9: cc1: internal compiler error: Segmentation fault (on FreeBSD 12.1-RELEASE-p1) Date: Mon, 09 Dec 2019 12:46:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gustavo.romero@protonmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2019 12:46:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242506 Gustavo Romero changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gustavo.romero@protonmail.c | |om --- Comment #3 from Gustavo Romero --- (In reply to canardo from comment #0) Hello, canardo, This is a segfault in gcc9 selftest framework due to a wrong use o singleton dump_context get() method. This is the fix I intend to send upstream for review: commit e02cbe3668cc63c8da1fed404c306c1ed50235f3 Author: Gustavo Romero Date: Mon Dec 9 07:37:49 2019 -0500 devel/gcc9: Fix ICE due to wrong singleton get() use Currently get() method of singleton is being used in a way a new class = is instantiated, which call singleton dtor's freeing memory that is refere= nced after free() is called generating an internal compiler error. Fix is simply call get() appropriately, i.e. call it directly since it'= s in fact an static method, just as usually any get method in a singleton is= by design. diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 7ea8f85..fc17fe9 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -2076,7 +2076,7 @@ temp_dump_context::temp_dump_context (bool forcibly_enable_optinfo, bool forcibly_enable_dumping, dump_flags_t test_pp_flags) : m_context (), - m_saved (&dump_context ().get ()) + m_saved(&dump_context::get()) { dump_context::s_current =3D &m_context; if (forcibly_enable_optinfo) Could you please try and check if it fixes the error you've posted? Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=