From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F0923952DA0; Wed, 6 May 2020 15:16:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F0923952DA0 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/25912] Possible race in free_check() with MALLOC_CHECK_=3 Date: Wed, 06 May 2020 15:16:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.28 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 15:16:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25912 Carlos O'Donell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID CC| |carlos at redhat dot com --- Comment #1 from Carlos O'Donell --- (In reply to Vinitha Vijayan from comment #0) > In case if from signal handler a new malloc request is raised, the thread > seems to be hanging forever. Your test is invalid. Please see: https://www.gnu.org/software/libc/manual/html_node/Basic-Allocation.html#Ba= sic-Allocation malloc() is marked AS-unsafe, which means it is not safe to call in an asynchronous signal handler. Likewise review 'man signal-safety', and see that 'malloc' is not in the li= st of signal-safe functions. > Could you please confirm if this is a bug? This is not a bug. The program has detected the invalid free and raised a SIGABRT, but your handler does something invalid and you hang. I'm marking this RESOLVED/INVALID. --=20 You are receiving this mail because: You are on the CC list for the bug.=