From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 061C83858D35; Fri, 16 Jun 2023 13:45:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 061C83858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686923105; bh=4ZRRDdc/eGh0BTKnsd3XTE0slf51YQydtGTg5fTnULs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mosfrR1w2nVIgsl8Wm82LG/4D20f7fRlh+EC+RUNBgsu9v3PXPJ+StsUL/wJDPKAc apk+xD7OhWVjjLdXFpsHvi7dRemRBZupeZzLEIk35mrDmj5NdL1B+mKIurOCDgXOHE FeZE7FHPS+L8RLA8I0I207ytsIwV/HxMSwcw313I= From: "rgoldber at redhat dot com" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/29696] intermittent libmicrohttpd assertion failures related to socket fd closing Date: Fri, 16 Jun 2023 13:45:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rgoldber at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rgoldber at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to cc attachments.created 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29696 Ryan Goldberg changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |rgoldber at redhat = dot com CC| |rgoldber at redhat dot com --- Comment #1 from Ryan Goldberg --- Created attachment 14933 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14933&action=3Ded= it Patch for 29696 The debuginfod cache config was using fdopen and then calling both fclose on the file stream & close on the original file descriptor. Since the fd is not dup'ed, this led to a race condition where if that fd was reused (by microhttpd) we'd end up prematurely closing their socket leading to the abo= ve issue. --=20 You are receiving this mail because: You are on the CC list for the bug.=