2024-04-15 21:49 ftp://ftp.de.debian.org/debian/pool/main/d/delve/delve_1.22.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 62 39 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: delve-1.22.1/_fixtures/cgostacktest/hello.c:20:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BREAKPOINT [valueFlowBailoutIncompleteVar] delve-1.22.1/_fixtures/cgostacktest/hello.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BREAKPOINT [valueFlowBailoutIncompleteVar] delve-1.22.1/_fixtures/testvariablescgo/test.c:39:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BREAKPOINT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/exc.h:126:0: debug: Failed to parse 'typedef __END_DECLS struct { mach_msg_header_t Head ; mach_msg_body_t msgh_body ; mach_msg_port_descriptor_t thread ; mach_msg_port_descriptor_t task ; NDR_record_t NDR ; exception_type_t exception ; mach_msg_type_number_t codeCnt ; integer_t code [ 2 ] ; } __Request__exception_raise_t ;'. The checking continues anyway. [simplifyTypedef] delve-1.22.1/pkg/proc/native/mach_exc.h:126:0: debug: Failed to parse 'typedef __END_DECLS struct { mach_msg_header_t Head ; mach_msg_body_t msgh_body ; mach_msg_port_descriptor_t thread ; mach_msg_port_descriptor_t task ; NDR_record_t NDR ; exception_type_t exception ; mach_msg_type_number_t codeCnt ; int64_t code [ 2 ] ; } __Request__mach_exception_raise_t ;'. The checking continues anyway. [simplifyTypedef] delve-1.22.1/pkg/proc/native/exec_darwin.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/exec_darwin.c:18:9: style: Parameter 'wd' can be declared as pointer to const [constParameterPointer] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:247:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NDR_record [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:688:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:247:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NDR_record [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:688:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:38:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:79:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXC_MASK_BREAKPOINT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:92:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:128:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:147:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_RCV_MSG [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:203:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mig_reply_error_t [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:231:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TASK_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/proc_darwin.c:98:32: style:inconclusive: Function 'get_threads' argument 2 names different: declaration 'data' definition 'slice'. [funcArgNamesDifferent] delve-1.22.1/pkg/proc/native/proc_darwin.h:35:32: note: Function 'get_threads' argument 2 names different: declaration 'data' definition 'slice'. delve-1.22.1/pkg/proc/native/proc_darwin.c:98:32: note: Function 'get_threads' argument 2 names different: declaration 'data' definition 'slice'. delve-1.22.1/pkg/proc/native/proc_darwin.c:141:13: style: Variable 'data' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/proc_darwin.c:232:56: error: Uninitialized variable: info [uninitvar] delve-1.22.1/pkg/proc/native/proc_darwin.c:207:12: style: Variable 'reply.NDR' is assigned a value that is never used. [unreadVariable] delve-1.22.1/pkg/proc/native/proc_darwin.c:208:16: style: Variable 'reply.RetCode' is assigned a value that is never used. [unreadVariable] delve-1.22.1/pkg/proc/native/proc_darwin.c:230:25: style: Variable 'info' is not assigned a value. [unassignedVariable] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:209:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:431:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:648:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:410:7: style: struct member '__Reply::flavor' is never used. [unusedStructMember] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:627:7: style: struct member '__Reply::flavor' is never used. [unusedStructMember] delve-1.22.1/pkg/proc/native/exc_user_darwin.c:209:9: style: Variable 'Out0P' is assigned a value that is never used. [unreadVariable] delve-1.22.1/pkg/proc/native/threads_darwin.c:9:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VM_REGION_SUBMAP_SHORT_INFO_COUNT_64 [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:38:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:50:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:58:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_FLOAT_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:64:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_IDENTIFIER_INFO_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:70:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:78:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:209:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/threads_darwin.c:91:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:431:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/threads_darwin.c:109:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:648:9: style: Variable 'Out0P' can be declared as pointer to const [constVariablePointer] delve-1.22.1/pkg/proc/native/threads_darwin.c:125:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:140:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/threads_darwin.c:156:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:410:7: style: struct member '__Reply::flavor' is never used. [unusedStructMember] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:627:7: style: struct member '__Reply::flavor' is never used. [unusedStructMember] delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:209:9: style: Variable 'Out0P' is assigned a value that is never used. [unreadVariable] delve-1.22.1/pkg/proc/native/threads_darwin.c:14:133: error: Uninitialized variable: info [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:14:148: error: Uninitialized variable: objname [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:80:69: error: Uninitialized variable: state [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:93:71: error: Uninitialized variable: regs [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:111:74: error: Uninitialized variable: info [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:127:71: error: Uninitialized variable: regs [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:142:74: error: Uninitialized variable: info [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:165:75: error: Uninitialized variable: info [uninitvar] delve-1.22.1/pkg/proc/native/threads_darwin.c:49:16: style: Unused variable: kret [unusedVariable] delve-1.22.1/pkg/proc/native/threads_darwin.c:57:16: style: Unused variable: kret [unusedVariable] delve-1.22.1/pkg/proc/internal/ebpf/bpf/trace.bpf.c:178:1: error: There is an unknown macro here somewhere. Configuration is required. If SEC is a macro then please configure it. [unknownMacro] diff: head delve-1.22.1/_fixtures/cgostacktest/hello.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BREAKPOINT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/exc_user_darwin.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NDR_record [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/exc_user_darwin.c:688:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NDR_record [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/mach_exc_user_darwin.c:688:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_MSG_PORT_DESCRIPTOR [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:128:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:147:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACH_RCV_MSG [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:203:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mig_reply_error_t [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:231:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TASK_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:79:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXC_MASK_BREAKPOINT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/proc_darwin.c:92:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:109:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:125:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:140:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_BASIC_INFO_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:156:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:38:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KERN_SUCCESS [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:50:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:58:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_FLOAT_STATE64_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:64:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THREAD_IDENTIFIER_INFO_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:70:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:78:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] head delve-1.22.1/pkg/proc/native/threads_darwin.c:91:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x86_THREAD_STATE64_COUNT [valueFlowBailoutIncompleteVar] DONE