source - scan-build results

User:pbuilder@deb-5cpi2p
Working Directory:/build/source
Command Line:/tmp/cmake/bin/cmake --build build-llvm -j 32 --target stage2
Clang Version:Debian clang version 17.0.0 (++20230602072031+97b5cc214aee-1~exp1~20230602072131.686)
Date:Sat Jun 3 23:53:18 2023

Bug Summary

Bug TypeQuantityDisplay?
All Bugs84
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 undefined3
Uninitialized argument value3
Memory error
Memory leak8
Use of zero allocated1
Unused code
Dead assignment16
Dead increment6
Dead initialization5
Dead nested assignment13

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length Description
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_hash116217Assigned 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
Logic errorBranch condition evaluates to a garbage valuebuild/source/bolt/runtime/common.hstrLen2874Branch condition evaluates to a garbage valueView Report
Logic errorBranch condition evaluates to a garbage valuebuild/source/bolt/runtime/instr.cppparseAddressRange60020Branch 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_annotation43111Value 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.cppcomputeEdgeFrequencies11831Value stored to 'Parent' during its initialization is never readView Report
Unused codeDead initializationbuild/source/bolt/runtime/instr.cppopenProfile14021Value 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.cppcomputeEdgeFrequencies115332Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies119050Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppcomputeEdgeFrequencies120552Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppvisitAllCallsIn102937Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppvisitAllCallsIn102537Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbuild/source/bolt/runtime/instr.cppwriteFunctionProfile126819Array 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.cfindmust166416Dereference 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_in330737Potential leak of memory pointed to by 'Filenames'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cfind_file_refs_at318029Potential leak of memory pointed to by 'Locations'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cinspect_cursor_at288623Potential 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_try36182Potential 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_completion274541Potential leak of memory pointed to by 'filename'View Report
Memory errorMemory leakbuild/source/clang/tools/c-index-test/c-index-test.cperform_test_reparse_source218371Potential 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_hash.cisl_hash_table_find16757The result of the left shift is undefined due to shifting by '32', which is greater or equal to the width of type 'int'View Report
Logic errorResult of operation is garbage or undefinedbuild/source/polly/lib/External/isl/isl_int_sioimath.hisl_sioimath_encode_small15426The result of the left shift is undefined due to shifting '2147483647' by '32', which is unrepresentable in the unsigned version of the return type 'isl_sioimath'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_LrgIlB.iclang_other_error_LrgIlB.i.stderr.txt
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_TdhiT6.iclang_other_error_TdhiT6.i.stderr.txt
Other Errorbuild/source/build-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_q5NRT3.iclang_other_error_q5NRT3.i.stderr.txt

Please consider submitting preprocessed files as bug reports.