From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F47E3858401; Tue, 16 Nov 2021 17:15:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F47E3858401 From: "ygribov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/103276] [openacc] Trying to map already mapped data Date: Tue, 16 Nov 2021 17:15:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: og11 (devel/omp/gcc-11) X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: ygribov 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: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2021 17:15:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103276 Yury Gribov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ygribov at gcc dot gnu.org --- Comment #2 from Yury Gribov --- This might be by chance, it could be fixed in mainline - or your example is= too much simplified. > At least as is it cannot fail as there is no main program but just a modu= le. I see. But is a runtime crash really mandatory here? It requires a bit of l= uck so that address ranges of local variable in copyin_simple overlaps local variables in another call. And even if it does, the crash will not be very stable across branches (because stack layouts change, etc.). My main goal was to provide a minimal self-explanatory usecase - there is a clear reference to local stack object passed to GOACC_enter_exit_data which= is missing in the original code...=