source - scan-build results

User:pbuilder@deb-5g9wfj
Working Directory:/build/source
Command Line:/tmp/cmake/bin/cmake --build build-llvm -j 32 --target stage2
Clang Version:Debian clang version 18.0.0 (++20230924112103+4c241a9335c3-1~exp1~20230924112223.917)
Date:Mon Sep 25 13:31:58 2023

Bug Summary

Bug TypeQuantityDisplay?
All Bugs19
Logic error
Branch condition evaluates to a garbage value2
Dereference of null pointer6
Memory error
Memory leak6
Unused code
Dead initialization5

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length Description
Logic errorBranch condition evaluates to a garbage valuebolt/runtime/common.hstrLen2094Branch condition evaluates to a garbage valueView Report
Logic errorBranch condition evaluates to a garbage valuebolt/runtime/instr.cppparseAddressRange66622Branch condition evaluates to a garbage valueView Report
Unused codeDead initializationclang/tools/c-index-test/c-index-test.cperform_token_annotation43251Value stored to 'kind' during its initialization is never readView Report
Unused codeDead initializationbolt/runtime/hugify.cppgetKernelVersion391Value stored to 'Ret' during its initialization is never readView Report
Unused codeDead initializationbolt/runtime/instr.cppcomputeEdgeFrequencies12481Value stored to 'Parent' during its initialization is never readView Report
Unused codeDead initializationbolt/runtime/instr.cppopenProfile14671Value stored to 'Ptr' during its initialization is never readView Report
Unused codeDead initializationbuild-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cmain21Value stored to 'p' during its initialization is never readView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppcomputeEdgeFrequencies121832Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppcomputeEdgeFrequencies125550Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppcomputeEdgeFrequencies127052Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppvisitAllCallsIn109437Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppvisitAllCallsIn109037Array access (from variable 'CallFreqs') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerbolt/runtime/instr.cppwriteFunctionProfile133321Array access (via field 'EdgeFreqs') results in a null pointer dereferenceView Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cfind_file_includes_in331437Potential leak of memory pointed to by 'Filenames'View Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cfind_file_refs_at318729Potential leak of memory pointed to by 'Locations'View Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cinspect_cursor_at289323Potential leak of memory pointed to by 'Locations'View Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cparse_remapped_files_with_try36882Potential leak of memory pointed to by 'unsaved_files_no_try_idx'View Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cperform_code_completion275241Potential leak of memory pointed to by 'filename'View Report
Memory errorMemory leakclang/tools/c-index-test/c-index-test.cperform_test_reparse_source219071Potential leak of memory pointed to by 'unsaved_files'View Report

Analyzer Failures

The analyzer had problems processing the following files:

ProblemSource FilePreprocessed FileSTDERR Output
Other Errorbuild-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_Tw84GM.iclang_other_error_Tw84GM.i.stderr.txt
Other Errorbuild-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/CheckIncludeFile.cclang_other_error_dMUCM3.iclang_other_error_dMUCM3.i.stderr.txt
Other Errorbuild-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_k1qEfg.iclang_other_error_k1qEfg.i.stderr.txt
Other Errorbuild-llvm/tools/clang/stage2-bins/CMakeFiles/CMakeTmp/src.cclang_other_error_yLOpnT.iclang_other_error_yLOpnT.i.stderr.txt

Please consider submitting preprocessed files as bug reports.