Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

Reproduced in https://github.com/whilo/async-binding.

`
(def ^:dynamic foo nil)

(defn -main [& args]
(go

(binding [*foo* nil]
  (<! (go 42))
  (println "done.")))

(Thread/sleep 30000))

$ lein uberjar
$ java -jar ...

done.
Exception in thread "async-dispatch-3" java.lang.IllegalStateException: Pop without matching push

at clojure.lang.Var.popThreadBindings(Var.java:331)
at clojure.core$pop_thread_bindings.invokeStatic(core.clj:1839)
at clojure.core$pop_thread_bindings.invoke(core.clj:1839)
at async_binding.core$_main$fn__6354$state_machine__4495__auto____6355$fn__6357.invoke(core.clj:8)
at async_binding.core$_main$fn__6354$state_machine__4495__auto____6355.invoke(core.clj:8)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:1011)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:1010)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:1015)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:1013)
at clojure.core.async.impl.ioc_macros$take_BANG_$fn__4511.invoke(ioc_macros.clj:1024)
at clojure.core.async.impl.channels.ManyToManyChannel$fn__313$fn__314.invoke(channels.clj:95)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

`

4 Answers

0 votes
by

Comment made by: hiredman

this issue only reproduces when the code is aot compiled

0 votes
by

Comment made by: whilo

Right, I missed to add the AOT condition here, only in the repository. I cannot update the issues myself, right? I tried also to close another issue I opened, but couldn't find a way to close it.

0 votes
by

Comment made by: alexmiller

(link: ~whilo) I've added you to the appropriate groups to allow you to edit tickets.

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-170 (reported by alex+import)
...