From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE8FD385021B; Fri, 26 Aug 2022 20:16:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE8FD385021B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661544996; bh=4YxaX69dI0/f3MI6VjlXyzHihVfWr5YBuHQUYpL5Jos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=puDLNJspMsePbBQg+j+DTDQupqV1ag6TFTXkz6j7L53eTZO5qjVt+0syUseUg7TES O+TBnAMSb9D7o+9dRSdb8jpArITlhBD0RqFktFoMwlT6J/BXrZOeJLq6coGAJApSna 6Tg+7hH1FnGghrN9iW3aHkkUhksISlDonR4V5MEg= From: "david.faust at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106745] segfault in bpf_core_get_sou_member_index Date: Fri, 26 Aug 2022 20:16:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.faust at oracle dot com X-Bugzilla-Status: UNCONFIRMED 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106745 David Faust changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.faust at oracle dot = com --- Comment #1 from David Faust --- Thanks, I've reproduced the failure and found the issue. The code which generates the CO-RE relocations isn't correctly handling anonymous inner struct/union decls. So for example: struct core_reloc_flavors___weird { struct { int b; }; union { int a; int c; }; }; Asking to generate a CO-RE relo for access to a, b or c here will trigger t= he SEGV. Working on a fix.=