cnuernber / libjulia-clj

Julia bindings for Clojure -- Currently somewhat unstable --
MIT License
112 stars 1 forks source link

calling initialize! twice fails with exception #6

Closed behrica closed 2 years ago

behrica commented 2 years ago
(require '[libjulia-clj.julia :as julia])
(julia/initialize!)
(julia/initialize!)

->

signal (11): Segmentation fault
in expression starting at none:0
unknown function (ip: 0x7f61743c9b18)
Allocations: 2721 (Pool: 2712; Big: 9); GC: 0
cnuernber commented 2 years ago

With the local environment created by

source scripts/local-julia-env

I can call initialize many times just fine:


user> (require '[libjulia-clj.julia :as jl])
niluser> 
user> (jl/initialize!)
Mar 21, 2022 6:35:46 AM clojure.tools.logging$eval8528$fn__8531 invoke
INFO: julia library arguments: ["--handle-signals=no" "--threads" "1"]
:ok
user> (jl/initialize!)
:ok
user> (jl/initialize!)
:ok
user> (jl/initialize!)
:ok
behrica commented 2 years ago

Cannot reproduce any more, even though running from docker