In Java, is there any way to view the complete, untruncated stack trace (e.g. by increasing the number of frames recorded), or otherwise get at the bottom of a stac
If you have access to the call before it is entering the suspected stack overflow, you could just generate an additional stack trace like new Exception().getStackTrace. Note that foldRight itself won't produce an infinite recursion. Maybe you just run out of memory, try increasing the JVM's stack size.