Closed spingARbor closed 2 months ago
@spingARbor Have you set Xmx
properties somewhere so that Joern is making use of the available memory?
One way to do it is to add -J-Xmx20G
or something to the Joern arguments. This schema violation thing can happen at low memory
Thank you for your response!@DavidBakerEffendi I have set -Xmx240G in my server.And when I try to create CPG for a folder with a few ruby files, I also got the exception and without cpg dot file output.On the other hand,The running information will tell me that there is not enough memory if that happens as a result of low memory. Sincerely, Arbor
@spingARbor I would hope that's enough memory! If you see that these exceptions when memory usage on the heap gets high then we know the culprit, otherwise I should have a look into where this could possibly be caused as the stacktrace suggests the AST may be malformed.
I will try again with bigger memory
@DavidBakerEffendi I tryed to parse the code for gitlab-v16.10.4-ee/app/workers and monitor memory usage at the same time.Joern’s memory usage was always lower than my settings, but I still get the same error.
@spingARbor OK thanks for the investigation, I'll investigate on my end
Thank you @DavidBakerEffendi Sincerely, Arbor
Found a number of bugs with this that'll help us harden Ruby, see:
Thank you. @DavidBakerEffendi
Some more hardening: https://github.com/joernio/joern/pull/4746 Next to deal with the member issue
Describe the bug I want to construct CPG for part of code for giltab. When I try to parse the code, I get the following exception. When I try to dump Graph, I get the following exception and no output was produced.
To Reproduce Steps to reproduce the behavior:
and you can get the exception
and you can get the exception
Expected behavior Get a CPG for Gitlab code.
Desktop (please complete the following information):