From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E557386F825; Sat, 19 Dec 2020 22:02:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E557386F825 From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug malloc/17924] 'free' should not set errno Date: Sat, 19 Dec 2020 22:02:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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://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: Sat, 19 Dec 2020 22:02:47 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17924 --- Comment #4 from Bruno Haible --- I believe there is also another code path that can lead to free() setting errno. Namely, when glibc is not configured with --disable-experimental-malloc, USE_TCACHE gets defined and enables this code path: __libc_free -> malloc.c:3147 -> MAYBE_INIT_TCACHE -> malloc.c:3033 -> tcache_init -> malloc.c:3007 -> _int_malloc -> malloc.c:3580 -> sysmalloc --=20 You are receiving this mail because: You are on the CC list for the bug.=