Open konradweiss opened 1 month ago
Do you have a reproducible example for this? I think I also encountered something like this sometimes, but I am not sure if the JavaExternalTypeHierarchyResolver
is really the culprit.
We solved this for now, I did parse the entire openvpn repository and it did happen in different places and not reliably. I will investigate it further.
The iteration in the
ArrayList
function next, triggers aConcurrentModificationException
. This apparently happens in:https://github.com/Fraunhofer-AISEC/cpg/blob/f19388e118d1c6ad3711222ef0a55e535bd45378/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/edge/PropertyEdge.kt#L201
where in the map function the iteration over the elements happens. In parallel to theEvaluationOrderGraphPass
runs theJavaExternalTypeHierarchyResolver
where a modification to the list may happen.Stacktrace
Possible Solutions
JavaExternalTypeHierarchyResolver
access eog Edges and ensure that passes running in parallel are never accessing the same property edges.