From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2F93385782D; Thu, 1 Apr 2021 20:57:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2F93385782D From: "carl.nettelblad at it dot uu.se" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/99877] New: Crash in GIMPLE pass:sanopt in huge function using OpenMP Date: Thu, 01 Apr 2021 20:57:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carl.nettelblad at it dot uu.se 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: 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: Thu, 01 Apr 2021 20:57:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99877 Bug ID: 99877 Summary: Crash in GIMPLE pass:sanopt in huge function using OpenMP Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: carl.nettelblad at it dot uu.se CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- Created attachment 50499 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50499&action=3Dedit Command line and output This code has worked (seemingly) just fine until the new function computecandcliques was added, with a heap corruption bug (in my own code). When trying to track this bug down, I tried to compile the thing with addre= ss sanitizer, but I kept getting crashes even when successively reducing optimization settings and trying a few other things. I know this is certain= ly not a minimal test case, but I hope it is reproducible for you with these files. I did confirm crashes with very similar error output on optimization levels 3 to 1 and on various versions of GCC 9.x and 10.x. I don't have rea= dy access to 10.2.1, though.=