Christian Banse
Christian Banse
> Currently the TypeManager is implemented as Singleton Object. This causes some problems when trying to use the API in a multi-threaded manner. > > ``` > Caused by: java.lang.NullPointerException:...
> This fixed my Issues associated with the concurrency exceptions: https://github.com/anon767/cpg/blob/c9e2de2dc9966eb814c16cb5ed0c086e2f8b1a94/cpg-core/src/main/java/de/fraunhofer/aisec/cpg/graph/TypeManager.java#L73 Hmm did you run the unit tests by any chance? wouldn't this now create different type managers per thread,...
> > > This fixed my Issues associated with the concurrency exceptions: https://github.com/anon767/cpg/blob/c9e2de2dc9966eb814c16cb5ed0c086e2f8b1a94/cpg-core/src/main/java/de/fraunhofer/aisec/cpg/graph/TypeManager.java#L73 > > > > > > Hmm did you run the unit tests by any chance? wouldn't...
Interesting, may be a problem with the OGM wrapper. Our literal values "scale" up to `BigInteger`, but maybe nobody told the OGM wrapper to use a big integer and it...
Moved to the main cpg repo, as we need to create the OGM converter here, similar to the `LocationConverter`.
> > I try to convert the result into jgrapht format, which can be easily export as different files. But I'm still struggling. > > [https://github.com/HickeyHsu/SCPG](url) I make a demo...
#276 might also be relevant for this. However, what is still missing is an easy way to actually traverse *all* nodes in the graph, not just AST nodes.
BTW, these also fail on `darwin/arm64`, so it is not linux specific. I can take a look at this over the weekend, now the lldb darwin/arm64 stuff is merged in.
> Yes, I was thinking about this the other day. The way we are retrieving the location of the current goroutine (GAddr) on arm64 is just wrong. It's in the...
@aarzilli Is there any "easy" way to check, whether we are in a cgo stack, i.e. some convenience function somewhere in Delve?