source - scan-build results

User:pbuilder@deb-exl553
Working Directory:/build/source
Command Line:/tmp/cmake/bin/cmake --build build-llvm -j 27 --target stage2
Clang Version:Debian clang version 18.0.0 (++20231205111845+40381d126409-1~exp1~20231205111905.1066)
Date:Wed Dec 6 00:57:26 2023

Bug Summary

Bug TypeQuantityDisplay?
All Bugs86
API
Argument with 'nonnull' attribute passed null2
Logic error
Assigned value is garbage or undefined4
Branch condition evaluates to a garbage value2
Dereference of null pointer16
Division by zero6
Garbage return value1
Result of operation is garbage or undefined1
Uninitialized argument value3
Memory error
Memory leak9
Use of zero allocated1
Suspicious operation
Bitwise shift1
Unused code
Dead assignment16
Dead increment6
Dead initialization5
Dead nested assignment13

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length Description
APIArgument with 'nonnull' attribute passed nullbuild/source/clang/tools/c-index-test/c-index-test.cperform_test_reparse_source220146Null pointer passed to 1st parameter expecting 'nonnull'View Report
APIArgument with 'nonnull' attribute passed nullbuild/source/clang/tools/c-index-test/c-index-test.cperform_test_reparse_source220647Null pointer passed to 1st parameter expecting 'nonnull'View Report
Logic errorAssigned value is garbage or undefinedbuild/source/polly/lib/External/isl/imath/imath.cs_qmul224038Assigned value is garbage or undefinedView Report
Logic errorAssigned value is garbage or undefinedbuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_hash116219Assigned value is garbage or undefinedView Report
Logic errorAssigned value is garbage or undefinedbuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_swap58023Assigned value is garbage or undefinedView Report
Logic errorAssigned value is garbage or undefinedbuild/source/polly/lib/External/isl/isl_range.cpropagate_on_domain42829Assigned value is garbage or undefinedView Report
Suspicious operationBitwise shiftbuild/source/polly/lib/External/isl/isl_hash.cisl_hash_table_find16758The result of left shift is undefined because the right operand '32' is not smaller than 32, the capacity of 'int'View Report
Logic errorBranch condition evaluates to a garbage valuebuild/source/bolt/runtime/common.hstrLen2094Branch condition evaluates to a garbage valueView Report
Logic errorBranch condition evaluates to a garbage valuebuild/source/bolt/runtime/instr.cppparseAddressRange66622Branch condition evaluates to a garbage valueView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_arg.cprint_str_list_help6011Value stored to 'pos' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_ast_graft.cinsert_pending_guard_nodes6531Value stored to 'graft' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_add_disjoint_templ.cisl_pw_aff_add_disjoint601Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_add_disjoint_templ.cisl_pw_multi_aff_add_disjoint601Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_add_disjoint_templ.cisl_pw_qpolynomial_add_disjoint601Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_templ.cisl_pw_aff_union_add_6891Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_templ.cisl_pw_multi_aff_union_add_6891Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_pw_templ.cisl_pw_qpolynomial_union_add_6891Value stored to 'ctx' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_scan.cisl_basic_set_scan1171Value stored to 'bset' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_context841Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_domain1351Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_extension2611Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_filter3121Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_guard3631Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_schedule_read.cread_mark4141Value stored to 'key' is never readView Report
Unused codeDead assignmentbuild/source/polly/lib/External/isl/isl_test.cmain110311Value stored to 'argc' is never readView Report
Unused codeDead incrementbuild/source/llvm/lib/Support/BLAKE3/blake3.cchunk_state_update1451Value stored to 'input' is never readView Report
Unused codeDead incrementbuild/source/llvm/lib/Support/BLAKE3/blake3.cchunk_state_update1461Value stored to 'input_len' is never readView Report
Unused codeDead incrementbuild/source/polly/lib/External/isl/isl_aff.cisl_seq_preimage59531Value stored to 'o_src' is never readView Report
Unused codeDead incrementbuild/source/polly/lib/External/isl/isl_map.cadd_ma_strides137231Value stored to 'o_ma' is never readView Report
Unused codeDead incrementbuild/source/polly/lib/External/isl/isl_map.cset_ma_divs136351Value stored to 'o_ls' is never readView Report
Unused codeDead incrementbuild/source/polly/lib/External/isl/isl_sort.cmsort1131Value stored to 'b' is never readView Report
Unused codeDead initializationbuild/source/clang/tools/c-index-test/c-index-test.cperform_token_annotation43291Value stored to 'kind' during its initialization is never readView Report
Unused codeDead initializationbuild/source/bolt/runtime/hugify.cppgetKernelVersion391Value stored to 'Ret' during its initialization is never readView Report
Unused codeDead initializationbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies12481Value stored to 'Parent' during its initialization is never readView Report
Unused codeDead initializationbuild/source/bolt/runtime/instr.cppopenProfile14671Value stored to 'Ptr' during its initialization is never readView Report
Unused codeDead initializationbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cmain21Value stored to 'p' during its initialization is never readView Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/imath/imath.cmp_int_read_cstring15301Although the value stored to 'ch' is used in the enclosing expression, the value is never actually read from 'ch'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/imath/imrat.cmp_rat_compare_unsigned4161Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/imath/imrat.cmp_rat_compare_unsigned4171Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/imath/imrat.cmp_rat_compare_value4391Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/imath/imrat.cmp_rat_compare_value4421Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_apply_range47801Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_domain_product107921Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_domain_product107991Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_product107291Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_product107361Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_range_product108441Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/polly/lib/External/isl/isl_map.cisl_basic_map_range_product108511Although the value stored to 'pos' is used in the enclosing expression, the value is never actually read from 'pos'View Report
Unused codeDead nested assignmentbuild/source/openmp/libompd/gdb-plugin/ompdModule.compd_open4881Although the value stored to 'dlerr' is used in the enclosing expression, the value is never actually read from 'dlerr'View Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies121832Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies125550Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies127052Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppvisitAllCallsIn109437Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppvisitAllCallsIn109037Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppwriteFunctionProfile133321Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_affine_hull.cuset_affine_hull_bounded51313Access to field 'sample' results in a dereference of a null pointer (loaded from variable 'bset')View Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_ctx.cfind_nested_options17028Dereference of null pointerView Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_reinit_big33314Dereference of null pointer (loaded from variable 'ptr')View Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_set_small34214Dereference of null pointer (loaded from variable 'ptr')View Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_map_simplify.cisl_basic_map_normalize_constraints5851Access to field 'n_eq' results in a dereference of a null pointer (loaded from variable 'bmap')View Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_transitive_closure.cunion_components281743Dereference of null pointer (loaded from variable 'exact')View Report
Logic errorDereference of null pointerbuild/source/polly/lib/External/isl/isl_union_map.cisl_union_map_free39118Access to field 'ctx' results in a dereference of a null pointer (loaded from field 'dim')View Report
Logic errorDereference of null pointerusr/include/python3.9/object.h_Py_IS_TYPE1289Access to field 'ob_type' results in a dereference of a null pointer (loaded from variable 'ob')View Report
Logic errorDereference of null pointerbuild/source/llvm/lib/Support/regcomp.cfindmust166016Dereference of null pointerView Report
Logic errorDereference of null pointerbuild/source/llvm/lib/Support/regengine.inclslow83948Dereference of null pointerView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_cdiv_q91921Division by zeroView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_cdiv_q91320Division by zeroView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_fdiv_q97321Division by zeroView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_fdiv_q96720Division by zeroView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_tdiv_q86318Division by zeroView Report
Logic errorDivision by zerobuild/source/polly/lib/External/isl/isl_map_simplify.chash_index_ineq74379Division by zeroView Report
Logic errorGarbage return valuebuild/source/polly/lib/External/isl/isl_sample.cisl_set_sample_point13328Undefined or garbage value returned to callerView Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cfind_file_includes_in331836Potential leak of memory pointed to by 'Filenames'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cfind_file_refs_at319129Potential leak of memory pointed to by 'Locations'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cinspect_cursor_at289723Potential leak of memory pointed to by 'Locations'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cparse_remapped_files_with_try36879Potential leak of memory pointed to by 'unsaved_files_no_try_idx'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cperform_code_completion275637Potential leak of memory pointed to by 'filename'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cperform_code_completion276047Potential leak of memory pointed to by 'unsaved_files'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cperform_test_reparse_source219471Potential leak of memory pointed to by 'unsaved_files'View Report
Memory errorMemory leakbuild/source/polly/lib/External/isl/imath/imath.cmp_int_div85582Potential leak of memory pointed to by field 'digits'View Report
Memory errorMemory leakbuild/source/polly/lib/External/isl/imath/imath.cmp_int_invmod114568Potential leak of memory pointed to by field 'digits'View Report
Logic errorResult of operation is garbage or undefinedbuild/source/polly/lib/External/isl/isl_test.cfind_vertex80244The left operand of '<' is a garbage valueView Report
Logic errorUninitialized argument valuebuild/source/polly/lib/External/isl/isl_map_simplify.cisl_basic_map_remove_duplicate_constraints1253473rd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valuebuild/source/polly/lib/External/isl/isl_tab_lexopt_templ.cbasic_map_partial_lexopt167275th function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valuebuild/source/polly/lib/External/isl/isl_tab_lexopt_templ.cbasic_map_partial_lexopt_pw_multi_aff167275th function call argument is an uninitialized valueView Report
Memory errorUse of zero allocatedbuild/source/polly/lib/External/isl/imath/imath.cmp_int_init_size40026Use of memory allocated with size zeroView Report

Analyzer Failures

The analyzer had problems processing the following files:

ProblemSource FilePreprocessed FileSTDERR Output
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_H7D3W7.iclang_other_error_H7D3W7.i.stderr.txt
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_nan3Fz.iclang_other_error_nan3Fz.i.stderr.txt
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_ueBq4a.iclang_other_error_ueBq4a.i.stderr.txt
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/CheckIncludeFile.cclang_other_error_wvlQca.iclang_other_error_wvlQca.i.stderr.txt

Please consider submitting preprocessed files as bug reports.