codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Flaky [MethodCall]<Call to unknown method> in databases created by linux/osx binary

Open kaiwenleee opened this issue 1 year ago • 3 comments

Hello,

We were querying a method call CompletableFuture.join() but noticed that some method calls did not go into the results. They are somehow marked as [MethodCall]<Call to unknown method> in AST Viewer of the VSCode extension.

Furthermore, this only happened in the database created from pipeline (using linux binary), but not in the database created locally (using osx binary).

Both use codeql cli v2.17.0, --language=java --build-mode=none.

Could you please help check what would cause a method call to be marked as <Call to unknown method>, and could it be a different behaviour in binaries for linux and osx? Thanks a lot.

kaiwenleee avatar Jun 06 '24 10:06 kaiwenleee

Generally this means we haven't been able to resolve type information, possibly because some dependency is being incorrectly guessed. Do you have an example repository where this is happening, or log files from an example run that produces a bad database?

smowton avatar Jun 07 '24 10:06 smowton

@smowton Thank you for the response, but it's unfortunately not possible for us to provide a repository or log files at the moment. I'll keep an eye on the issue and provide more information if possible in the future.

kaiwenleee avatar Jun 17 '24 12:06 kaiwenleee

Hi @kaiwenleee, if this issue relates to a private repository then you can also open a support ticket if you would be able to share more information there. If you open a ticket with support, please reference this issue there.

mbg avatar Jun 19 '24 09:06 mbg