Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy
https://codechecker.readthedocs.io
Apache License 2.0
2.15k stars 357 forks source link

report-converter [INFO] No 'lsan' results can be found #4280

Open Katze719 opened 5 days ago

Katze719 commented 5 days ago

Describe the bug report-converter is saying "No 'lsan' results can be found" when there clearly is a leak detected and in the file

CodeChecker version

[INFO 2024-06-28 11:09] - CodeChecker analyzer version:
---------------------------------------------------------------
Kind                 | Version                                 
---------------------------------------------------------------
Base package version | 6.23.1                                  
Package build date   | 2023-12-14T14:38                        
Git commit ID (hash) | 2a8fa6e711a4ff591280a79fe8798dee2507d984
Git tag information  | 6.23.1                                  
---------------------------------------------------------------

[INFO 2024-06-28 11:09] - CodeChecker web version:
------------------------------------------------------------------------------
Kind                                | Version                                 
------------------------------------------------------------------------------
Base package version                | 6.23.1                                  
Package build date                  | 2023-12-14T14:38                        
Git commit ID (hash)                | 2a8fa6e711a4ff591280a79fe8798dee2507d984
Git tag information                 | 6.23.1                                  
Server supported Thrift API version | 6.54                                    
Client Thrift API version           | 6.54                                    
------------------------------------------------------------------------------

To Reproduce Steps to reproduce the behaviour:

  1. have a text file (test.out) with this content:
    
    ==17727==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 7 byte(s) in 1 object(s) allocated from:

0 0x49c2ad in __interceptor_malloc /projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:129:3

#1 0x4ce525 in main files/lsan2.c:5:9

Direct leak of 5 byte(s) in 1 object(s) allocated from:

0 0x49c2ad in __interceptor_malloc /projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:129:3

#1 0x4ce543 in main files/lsan2.c:7:16

SUMMARY: AddressSanitizer: 12 byte(s) leaked in 2 allocation(s).


2. `report-converter -t lsan -o report ./test.out`
3. See error:
`[INFO] - No 'lsan' results can be found in '...'`

**Expected behaviour**
report-converter found a leak

**Desktop (please complete the following information)**
 - OS: Linux ubuntu22.04 (WSL2)