Search code examples
clojurestack-overflow

clojure multiple StackOverflowError


I have a clojure script that I've been running for several years now.

Recently I had to do a reinstall of leiningen and java 8.

When I run the code I now get multiple StackOverflowErrors on third party libraries.

E.g. StackOverflowError org.apache.commons.math3.util.FastMath.cosQ (FastMath.java:1850)

and

StackOverflowError clojure.lang.Numbers$DoubleOps.combine (Numbers.java:571)

I would post code but it happens now at multiple points in my code and on third party libraries??


Solution

  • So I could not compare the previous setup as it was on a machine that was wiped clean.

    I found that an error had crept into one of the math formulas executed by the tool which basically called itself repeatedly resulting in the stack overflow error.