-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analyze --capture-analysis-output writes corrupt zipfiles #3001
Comments
This still happens. Here is an example when I try to unzip one of the files:
And this message appears many times. Answering |
@jimis I need more information to debug this problem:
|
Attached: unzil_-l.log (EDIT: wrong data provided, see next comment)
Attached: codechecker_log.json.gz
The error is because of CTU failing (see #3012) and shouldn't be relevant, the file is analyzed fine without CTU.
|
Sorry, I attached the contents of the zip (you see the multiple same files). Regarding the "failed" contents, it's too long, it's all the files that failed with CTU analysis. Is that relevant? |
Do you have the standard output and error logs related to the analysis of Because in your zip file name I can see the codechecker/analyzer/codechecker_analyzer/analysis_manager.py Lines 536 to 540 in 792bd81
So the problem is not a compiler crash or a compiler error. I am curious what it can be. |
Maybe if you can run the analysis with the |
@csordasmarton how can I re-run the codechecker command, but only for a file (i.e. skip everything else)? |
You can use the following option of the CodeChecker analyze command: --file FILE [FILE ...]
Analyze only the given file(s) not the whole
compilation database. Absolute directory paths should
start with '/', relative directory paths should start
with '*' and it can contain path glob pattern.
Example: '/path/to/main.cpp', 'lib/*.cpp', */test*'. |
Attaching the combined stdout+stderr output from codechecker. Almost same command as previous plus |
So as you can see in the log, the error is:
The return code cannot be seen in the log, but in the file As mentioned earlier, this has been reported at #3012 (see 2nd point in description). It is blocking CTU analysis for C++17 projects. But how is it related to the corrupted zipfiles issue? |
Describe the bug
At the end of analyze, I see hundreds of the following warnings:
The zipfiles stored under
results_dir/run_name/failed
are troublesome to unzip. On linux with theunzip
command I am asked countless of times whether I want to overwrite certain files.CodeChecker version is today's latest HEAD at d78f1d9.
The text was updated successfully, but these errors were encountered: