From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6E503858CDA; Tue, 10 Jan 2023 16:13:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6E503858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673367202; bh=8ZK/IOQxq7r/eLpZgVChvwbfeIa557PSUS2we4nlZUQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n2D+0cNIKtm8asgoigVLey4iN8WqTfVgmmZtFbUrrgv5ysjZgPQ6PIHBABekYj+d7 DV61TGzV+kV+rlA/b27G7TU3dTlrcuqFpe38bgrS0v7/PmYNvHRK9HulUHQfpO7VbW hDYPrBs7mYGyiSzR4RRc5xaJ4tWpPxwQX4hOw3+s= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/106003] RFE: -fanalyzer could complain about misuse of file-descriptors Date: Tue, 10 Jan 2023 16:13:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic, meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mir at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106003 --- Comment #7 from David Malcolm --- For reference, this article (by one of my colleagues) talks about how valgr= ind can detect file descriptor leaks *dynamically*: =20 https://developers.redhat.com/articles/2023/01/09/how-use-valgrind-track-fi= le-descriptors#=