I have a very simple program in swipl
edge(X,Y) :- edge(X,Z),edge(Z,Y).
edge(a,b).
edge(a,f).
edge(b,c).
edge(c,d).
edge(g,c).
edge(f,g).
edge(f,c).
edge(f,e).
edge(c,e).
edge(e,d).
But when Ι make a query edge(a,c).
Ι get a Out of local stack exception. The strange thing is that when I do the same query in windows the program works perfectly.
I tried to increase the local stack but simply the program takes longer to throw the exception.