There is recursive function that gets called visit (below) that tries to read in the component. However, there is no check to make sure there is another component to read in. I added a check to remove the seg fault error:
proc visit(e : graph._value.eDescType, id) : int {
var currId = id;
while true {
var eid = components[e.id].read();
Fix:
proc visit(e : graph._value.eDescType, id) : int {
var currId = id;
while true {
if components[e.id].read() == max(int){
return currId;
}
var eid = components[e.id].read();
In file src/modules/Components.chpl
in function:
There is recursive function that gets called visit (below) that tries to read in the component. However, there is no check to make sure there is another component to read in. I added a check to remove the seg fault error:
Fix: