https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025
Alan Coopersmith changed:
What|Removed |Added
CC||alan.coopersmith at oracle dot
com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114880
Bug ID: 114880
Summary: analyzer: False positive Wanalyzer-fd-use-after-close
when open returns the same fd
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113329
--- Comment #2 from Alan Coopersmith ---
I've hit this as well with gcc 13.2 when building xfs with -fanalyzer.
I extracted this test case from
https://gitlab.freedesktop.org/xorg/app/xfs/-/blob/master/os/daemon.c
and when built with "gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113329
Alan Coopersmith changed:
What|Removed |Added
CC||alan.coopersmith at oracle dot
com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114776
--- Comment #6 from Alan Coopersmith ---
Thanks, I didn't realize there was a test_nonfatal_assertions path through
the g_assert that could return here.
I'll update the wording on my proposed workaround to reflect that:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114776
--- Comment #5 from Alan Coopersmith ---
Created attachment 57986
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57986=edit
Preproccessed test case
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114776
Bug ID: 114776
Summary: -Wuse-after-free analysis believes assert() but not
g_assert_null()
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal