From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD5953858D39; Wed, 8 Feb 2023 17:46:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD5953858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675878377; bh=85tapsMFZJhAr60eDnlwpHxjV5HtWKr7Hv3Akx+dCnw=; h=From:To:Subject:Date:From; b=wsgQtOE6hB90gK5xayvFOCT/AO92v9CmzIqDy2vjp/yy/f/A3/LCVj3X7RhXz2Mch QR3ZzcUo0QAGTCnTbhOoZ0kr2jrGwHKz90mQF+QF861b4jSyV2tHnyTWD9K7/j0b5j jhDEY0E7E++bfa+5B4oWLqAM4p8hp+bal6Uo0MB8= From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108722] New: gcc.dg/analyzer/file-CWE-1341-example.c fails on power 9 BE Date: Wed, 08 Feb 2023 17:46:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D108722 Bug ID: 108722 Summary: gcc.dg/analyzer/file-CWE-1341-example.c fails on power 9 BE Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:9ada45967b4cf543aa47091e99a760d0718013cc, r13-4218-g9ada45967b4cf5 This is only failing on a power 9 BE machine. It fails since the test case= 's introduction. make -k check-gcc RUNTESTFLAGS=3D"--target_board=3Dunix'{-m32}' analyzer.exp=3Dgcc.dg/analyzer/file-CWE-1341-example.c" FAIL: gcc.dg/analyzer/file-CWE-1341-example.c (test for excess errors) # of expected passes 3 # of unexpected failures 1 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/gcc/ /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c -m32 -fdiagnostics-plain-output -fanalyzer -Wanalyzer-too-complex -fanalyzer-call-summaries -S -o file-CWE-1341-example.s /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c: In function 'example_1': /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:38:16: warning: double 'fclose' of FILE 'f' [CWE-1341] [-Wanalyzer-double-fclose] /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:29:13: note: (1) opened here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:30:6: note: (2) assuming 'f' is non-NULL /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:30:6: note: (3) following 'true' branch (when 'f' is non-NULL)... /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:32:12: note: (4) ...to here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:35:16: note: (5) first 'fclose' here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:38:16: note: (6) second 'fclose' here; first 'fclose' was at (5) /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:38:16: warning: double-'fclose' of 'f' [CWE-415] [-Wanalyzer-double-free] /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:29:13: note: (1) allocated here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:30:6: note: (2) assuming 'f' is non-NULL /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:30:6: note: (3) following 'true' branch (when 'f' is non-NULL)... /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:32:12: note: (4) ...to here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:35:16: note: (5) first 'fclose' here /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:38:16: note: (6) second 'fclose' here; first 'fclose' was at (5) PASS: gcc.dg/analyzer/file-CWE-1341-example.c (test for warnings, line 29) PASS: gcc.dg/analyzer/file-CWE-1341-example.c (test for warnings, line 35) PASS: gcc.dg/analyzer/file-CWE-1341-example.c (test for warnings, line 38) Executing on host: /home/seurer/gcc/git/build/gcc-test/gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/gcc/ exceptions_enabled4193687.cc -= m32=20 -fdiagnostics-plain-output -S -o exceptions_enabled4193687.s (timeout = =3D 300) spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/gcc/ exceptions_enabled4193687.cc -m32 -fdiagnostics-plain-output -S -o exceptions_enabled4193687.s FAIL: gcc.dg/analyzer/file-CWE-1341-example.c (test for excess errors) Excess errors: /home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/analyzer/file-CWE-1341-e= xample.c:38:16: warning: double-'fclose' of 'f' [CWE-415] [-Wanalyzer-double-free]=