-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
several source files are included in src.zip, but not in the database #7582
Comments
Hi @KeuntaeShin, Thanks for the issue. We'll look into this, but first, we need some additional information:
Note that there should be a database of Additionally, it would be super helpful if you upload your logs somewhere so that we can inspect them. |
Hello @MathiasVP,
Please advise me to clear this problem. Thanks, |
A clue that I checked: AST VIEWER in Visual Code shows nothing corresponding to the several files, while others are shown well in there. Would it relate to conditional compilation? Such as #if, #ifdef, #ifndef, #else, #elif, #endif, and defined? Thanks, |
The error messages have been disappeared after crafting cpp/tools/linux64/extractor forcibly using #7557 (comment) However the several files still are not treated as targets for database. @MathiasVP , Please feel free to share anything if you have a clue. |
Thanks for the additional information. If you feel comfortable sharing the logs with GitHub Support, you can open a support ticket here and upload the logs. They will then get routed to the correct engineering team.
Conditional compilation shouldn't be an issue, no. If the code compiles without CodeQL it should also work when generating a database.
I really appreciate your investigation into this! As far as we know, the issue regarding So the main issue is still present: we fail to build parts of the project. Having access to the logs would help us identify why we fail to build the project. |
@MathiasVP, Finally i found the corner case CodeQL can't handle. Would you inform proper engineers of a below example for fixing it? Case A - Code
Case B - Code
|
Thank you for this snippet, @KeuntaeShin. I've added these tests to our internal issue, and I'll keep you updated on the progress here :) |
@KeuntaeShin Thanks for the minimal example. We've tracked down the issue and are expecting to have the fix in 2.8.0. |
@MathiasVP and @sashabu , With 2.8.1, the issue i reported has not been observable. Thank you for your efforts. |
Version: CodeQL command-line toolchain release 2.7.3.
Target language: cpp
Target source: Linux kernel
While checking the query result finding function call sites, i notice that statements of several files were not included in the result.
After checking the database directory:
The src.zip includes the several files
In database-create-xxx.log, i can't see traps of several files, build messages ("[build-stdout] CC [M] drivers/xxx.o") are shown though.
In database-create-xxx.log, there are error messages:
java.io.IOException: Brotli stream decoding failed
...
org.brotli.dec.BrotliRuntimeException: Unused space
...
java.io.IOException: Brotli stream decoding failed
...
org.brotli.dec.BrotliRuntimeException: Corrupted padding bits
I feel that some source files are not treated as targets of database. Is there any way to figure out what files are handled for creating database, and are not? And why the files are not targeted?
The text was updated successfully, but these errors were encountered: