conmon-2.2.1-1.20260304110208634887.pr640.6.g1090e54
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
conmon-2.2.1/src/conmon.c: scope_hint: In function ‘disconnect_std_streams’
conmon-2.2.1/src/conmon.c:29:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_r, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
conmon-2.2.1/src/conmon.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_w, 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
conmon-2.2.1/src/conmon.c:33:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(dev_null_w, 2)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
conmon-2.2.1/src/conmon.c: scope_hint: In function ‘main’
conmon-2.2.1/src/conmon.c:244:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stdin, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
conmon-2.2.1/src/conmon.c:251:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stdout, 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
conmon-2.2.1/src/conmon.c:256:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(workerfd_stderr, 2)’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def7]
conmon-2.2.1/src/conmon.c:285:44: warning[-Wanalyzer-fd-use-after-close]: ‘read’ on closed file descriptor ‘get_pipe_fd_from_env("_OCI_STARTPIPE")’
conmon-2.2.1/src/conmon.c:8: included_from: Included from here.
conmon-2.2.1/src/conmon.c:284:33: note: in expansion of macro ‘ndebug’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def8]
conmon-2.2.1/src/conmon.c:290:33: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘get_pipe_fd_from_env("_OCI_STARTPIPE")’
conmon-2.2.1/src/conmon.c:284:33: note: in expansion of macro ‘ndebug’
conmon-2.2.1/src/conmon.c:289:33: note: in expansion of macro ‘ndebug’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
conmon-2.2.1/src/conn_sock.c:215:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*fd’
conmon-2.2.1/src/conn_sock.c: scope_hint: In function ‘setup_socket’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
conmon-2.2.1/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
conmon-2.2.1/src/conn_sock.c:277:45: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socket_parent_dir(use_full_attach_path, 108)’ where non-null expected
/usr/include/glib-2.0/glib-unix.h:34: included_from: Included from here.
conmon-2.2.1/src/utils.h:11: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
conmon-2.2.1/src/conn_sock.c:320:24: warning[-Wanalyzer-malloc-leak]: leak of ‘socket_parent_dir(use_full_attach_path, 108)’
conmon-2.2.1/src/conn_sock.c:279:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
conmon-2.2.1/src/utils.h:68:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.2.1/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
conmon-2.2.1/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
conmon-2.2.1/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
conmon-2.2.1/src/cgroup.c:167:17: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
conmon-2.2.1/src/conn_sock.c:6: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c: scope_hint: In function ‘setup_socket’
conmon-2.2.1/src/utils.h:68:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
conmon-2.2.1/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
/usr/include/glib-2.0/glib/gtestutils.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
conmon-2.2.1/src/conn_sock.h:4: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c:3: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
conmon-2.2.1/src/conn_sock.c:177:25: note: in expansion of macro ‘pexit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
conmon-2.2.1/src/cgroup.c:5: included_from: Included from here.
conmon-2.2.1/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
conmon-2.2.1/src/utils.h:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(g_build_filename(process_cgroup_subsystem_path(pid, 0, "memory"), "cgroup.event_control", 0), 524289)’
conmon-2.2.1/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
/usr/include/features.h:540: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/limits.h:26: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:210: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/syslimits.h:9: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/16/include/limits.h:34: included_from: Included from here.
/usr/lib64/glib-2.0/include/glibconfig.h:11: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
conmon-2.2.1/src/cgroup.h:4: included_from: Included from here.
conmon-2.2.1/src/cgroup.c:3: included_from: Included from here.
conmon-2.2.1/src/cgroup.c: scope_hint: In function ‘setup_oom_handling_cgroup_v1’
/usr/include/glib-2.0/glib/gtestutils.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
conmon-2.2.1/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
conmon-2.2.1/src/cgroup.c:164:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
conmon-2.2.1/src/utils.h:80:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(socket_parent_dir(use_full_attach_path, 108), 2621440)’
conmon-2.2.1/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
conmon-2.2.1/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
conmon-2.2.1/src/conn_sock.c:294:17: note: in expansion of macro ‘pexitf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
conmon-2.2.1/src/utils.h:80:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
conmon-2.2.1/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
conmon-2.2.1/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
conmon-2.2.1/src/conn_sock.c:182:25: note: in expansion of macro ‘pexitf’
Scan Properties
| analyzer-version-clippy | 1.93.1 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-192.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260225.110632.gf6ecc5a.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | conmon-2.2.1-1.20260304110208634887.pr640.6.g1090e54 |
| store-results-to | /tmp/tmprl6co91t/conmon-2.2.1-1.20260304110208634887.pr640.6.g1090e54.tar.xz |
| time-created | 2026-03-04 11:09:14 |
| time-finished | 2026-03-04 11:10:24 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmprl6co91t/conmon-2.2.1-1.20260304110208634887.pr640.6.g1090e54.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmprl6co91t/conmon-2.2.1-1.20260304110208634887.pr640.6.g1090e54.src.rpm' |
| tool-version | csmock-3.8.4.20260302.153719.g8203630-1.el9 |