converting Reports #4078
Replies: 4 comments
-
An update: I did the "build package" on the codechecker repository origin/master, and while in the Python virtualenv tried the above command again, with the same results. |
Beta Was this translation helpful? Give feedback.
-
The report-converter tool uses the following regex for finding thread sanitizer output: # Regex for parsing ThreadSanitizer output message.
line_re = re.compile(
# Error code
r'==(?P<code>\d+)==(ERROR|WARNING): ThreadSanitizer: '
# Checker message.
r'(?P<message>[\S \t]+)') I'm not sure if the attached thread sanitizer producing an output that doesn't match this regex is because of a different sanitizer version, or different configuration. Could you try adding the suggested flags for gcc when running sanitizer? ( If the regex still doesn't match, then report-converter should be extended with matching this new format. |
Beta Was this translation helpful? Give feedback.
-
Hi @bruntib Tried executing report-converter with output from compilation with given flags and still got the same error as @glevkovich posted above.
Also, tried with sample asan log file provided under report-converter's test directory and that also seems to provide same error.
Can you please let us know if anything is incorrect/missing in these steps. |
Beta Was this translation helpful? Give feedback.
-
Hi @bruntib, I don't think it has anything with a "new format". Furthermore, your python pytest unit test is passing, but if the input files from the tests for both ASAN/TSAN are taken and used externally by report-converter, it fails with the same error. So I suspect that something might be wrong with another assertion/validation logic which is not being run in the unit test, but is part of the the report-converter (probably a bug). I am not sure about other sanitizers such as MSan UBsan, and LSan, we might check them too. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I’m trying to convert the the output of Google Sanitizers into CodeChecker support format (plist). Instruction are posted here:
https://codechecker.readthedocs.io/en/latest/tools/report-converter/#install-guide
I’m using Codechecker 6.22 (installed with pip), and tried converting with both gcc-11 and Clang multiple Clang versions.
I've followed all the instructions, including the commands:
I've done that by cloning the codechecker repository and checkout the same tag installed, in order to be able to execute "make package".
I always get errors of the type:
Here is an example for a TSAN output file which I can convert with the simple above command, can someone please help me and tell me what i'm doing wrong? It just doesn't work..
Beta Was this translation helpful? Give feedback.
All reactions