From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7D7D38582A7; Wed, 7 Feb 2024 18:51:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7D7D38582A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707331888; bh=+VWm6MUDcBv2Z9sZ6/3tFFfIg3PIqJGpDXEw+OCv8K0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q/Qg9ojaS1mxl6/WIOHWQ38MqTu/rDeTZ2vrtoBbz7vuD+KelrJWY/KoOJ9c2ZAA9 Vmbr1oEo8HYqTUFLFnUOxU58J0aWniG6GfOxqOZs5d5wQDFAw/f+OJV2cgU+sZdrCc +j4iENc5lz7wMwmF6wa+3AQ1sLGOTE4W7ItWJuBQ= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113724] [14 Regression][OpenMP] ICE (segfault) when mapping a struct in omp_gather_mapping_groups_1 Date: Wed, 07 Feb 2024 18:51:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D113724 --- Comment #3 from Tobias Burnus --- Inside omp_build_struct_sibling_lists, the following assignment: 11654 grp->grp_start =3D new_next; has on the LHS the [3] array with value: (gdb) p *grp $147 =3D {grp_start =3D 0x7ffff71f9688, grp_end =3D 0x7ffff71f9630, mark = =3D UNVISITED, deleted =3D true, reprocess_struct =3D false, fragile =3D false, sibling = =3D 0x0, next =3D 0x0} while (gdb) p new_next $146 =3D (tree *) 0x7ffff71f96d0 which causes the alias issue we are seeing. Before the assignment: (gdb) p debug(*(tree*)0x7ffff71f9688) map(tofrom:S1.b) map(tofrom:S1.p) map(tofrom:*S1.p [len: 400]) map(attach_detach:S1.p [bias: 0]) (gdb) p debug(*(tree*)0x7ffff71f96d0) map(tofrom:S1.p) map(tofrom:*S1.p [len: 400]) map(attach_detach:S1.p [bias:= 0])=