From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3C9C3854832; Thu, 29 Oct 2020 14:53:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C9C3854832 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/97461] [11 Regression] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion) Date: Thu, 29 Oct 2020 14:53:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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 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, 29 Oct 2020 14:53:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97461 --- Comment #15 from Sergei Trofimovich --- allocate_gcov_kvp() gets called 89 times. Tried as: $ gdb --quiet --args dist/firefox/fire fox 'data:text/html,' -profile ../../firefox-82.0/temp/tmpzhv0a26v (gdb) break allocate_gcov_kvp Breakpoint 1 at 0x1507b0: allocate_gcov_kvp. (4 locations) (gdb) ignore 1 999999 Will ignore next 999999 crossings of breakpoint 1. (gdb) continue The program is not being run. (gdb) run ^C Thread 1 "firefox" received signal SIGINT, Interrupt. __lll_lock_wait (futex=3D0x7ffff7800018, private=3D0) at lowlevellock.c:52 (gdb) info breakpoints Num Type Disp Enb Address What 1 breakpoint keep y breakpoint already hit 89 times ignore next 999910 hits=