regex - On using clojure, with string more than 205 character facing StackOverflowError clojure.lang.AFn.applyToHelper (AFn.java:155)? -


i using clojure lein repl. using frak tool (https://github.com/noprompt/frak) create regex long strings.

however, string fed more 205 character, gives stackoverflow error:

frak=> (frak/pattern ["f" "quuxfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffssssssssssssssssssssrrrrrrrrrrrrrrrrrrrrrrrgtgggggg345g"])

stackoverflowerror clojure.lang.afn.applytohelper (afn.java:155)

this issue seems specific machine passing in other machines.

i tried following outputs:

frak=> (defn stack-depth [n]   #_=>   (try   #_=>     (stack-depth (inc n))   #_=>     (catch stackoverflowerror _   #_=>       (str "max stack depth " n)))) #'frak/stack-depth frak=> (stack-depth 1) "max stack depth 8439" frak=> (stack-depth 1) "max stack depth 8439" frak=> (stack-depth 1) "max stack depth 8439"  arpit@arpit-lenovo-z50-70:~tool_kit/frak$ ulimit -a  core file size          (blocks, -c) 0 data seg size           (kbytes, -d) unlimited scheduling priority             (-e) 0 file size               (blocks, -f) unlimited pending signals                 (-i) 62265 max locked memory       (kbytes, -l) 64 max memory size         (kbytes, -m) unlimited open files                      (-n) 1024 pipe size            (512 bytes, -p) 8 posix message queues     (bytes, -q) 819200 real-time priority              (-r) 0 stack size              (kbytes, -s) 8192 cpu time               (seconds, -t) unlimited max user processes              (-u) 62265 virtual memory          (kbytes, -v) unlimited file locks                      (-x) unlimited 

can let me know how resolve stack overflow issue on clojure?


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -