-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[C++] Extracting files failed when creating database for chrome #19238
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
Comments
Hi @mcc0612mcc0612, Thanks for your report. This is likely a different issue from the one reported in #16449, and it looks like there are actually multiple issues here:
Looking at the logs you provided (1) only seems to occur for 94 files, and (2) seems to relate mostly to code deep in libraries used by Chromium. Given this, I believe that the database you created will still be of high quality. For (1) the logs do not provide any clear information on where the crash might be occurring, and given this only occurs on a few cases, looking further into this cannot really take priority. With regard to (2), we are currently working on an update to the C/C++ frontend, which should improve things. Unfortunately, it is not clear yet when this will be available. In the mean time I've added your report to our internal issue for tracking Chromium related problems. |
Thanks for the information. As you pointed out, the database is indeed of good quality. However, one key file we’re trying to analyze, I attempted to compile a new database while excluding only a few object files under out/Default/obj/content/browser/, specifically: Do you have any thoughts on this? |
No, I don't. In part because the approach you describe is one we do not actively support. |
Description of the issue
I'm trying to create codeql database for chrome. Though database was created successfully, errors occured on extracting phase and many files were missing.
Partial error log output i found in database-create.log:
A snippet of errors in buld-tracer.log, seemingly all related to files in libc++ and chromium/src/base
I found a similar issue in #16449 (comment). According to the reply, the issue in 16449 was fixed in CodeQL 2.21.0, but the latest CodeQL doesn't work for me.
My configuration:
Codeql: 2.21.0
Platform: Debian GNU/Linux 6.1.0-32-cloud-amd64
RAM: 128G
cpu: 32 cores
Reproduction
To reproduce the issue, steps are as follows:
find out/Default/obj/content/browser/ -type f \( -name "*.o" -o -name "*.a" \) -delete
codeql database create /path/to/database -J-Xmx80G --overwrite --language=cpp --command='autoninja -C out/Default chrome'
The log files are too big to upload, so I shared them in the google drive. Appreciate your help.
build-trace.log
database-create.log
The text was updated successfully, but these errors were encountered: