Not all the way to a solution, but here is a trivial example that
demonstrates the issue:
(def x
(loop [ct 0
s (lazy-seq)]
(if (> ct 10000)
s
(recur (inc ct) (lazy-seq (filter identity s))))))
x
=> java.lang.StackOverflowError
Hello
In a small project of mine, to learn clojure, I've run into a pesky
stackoverflow bug.
To sum up the problem, I have a compojure project running on clojure
1.1. My data model is just an in-memory ref to a (2300) items big
list. When I a request in, I select what I need out from this
in-memory data structure using the normal some and filter functions.
But sometimes, maybe 1 in 20, I get a stackoverflow exception. I have
written down a bigger analysis of the problem in this stackoverflow
post. There is even a small bounty for people using Stackoverflow :-)
http://stackoverflow.com/questions/2748087/stack-overflow-in-compojure-web-project
Thanks in advance, I've been struggling with this problem for a while
and it's really starting to bug me :-)
--
Anders Rune Jensen
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient
with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en