cnuernber / libjulia-clj

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

interaction with libpython clj and repeated jluia/initialize crashes vm #7

Open behrica opened 2 years ago

behrica commented 2 years ago

As a continuation of #6 Running the following in a Docker having libpython-clj and libjulia-clj crashes vm for me:

(require '[libpython-clj2.require :refer [require-python]])
(require-python '[os :as os])
(os/getcwd)

(require '[libjulia-clj.julia :as julia])
(julia/initialize!)
(def ones-fn (julia/jl "Base.ones"))
(ones-fn 3 4)

(require '[libpython-clj2.require :refer [require-python]])
(require-python '[os :as os])
(os/getcwd)

(require '[libjulia-clj.julia :as julia])
(julia/initialize!)
(def ones-fn (julia/jl "Base.ones"))
(ones-fn 3 4)
user=> user=> user=> nil
user=> :ok
user=> 
signal (11): Segmentation fault
in expression starting at none:0
unknown function (ip: 0x7fa7c08b777f)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b9c9dc83)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b88470a5)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b8f82253)
unknown function (ip: 0x7fa7b8846fbf)
unknown function (ip: 0x7fa7b883dcc8)
unknown function (ip: 0x7fa7d500d923)
unknown function (ip: 0x7fa7d508a9ec)
unknown function (ip: 0x7fa7d508d0ff)
unknown function (ip: 0x7fa7d5ca1a69)
unknown function (ip: 0x7fa7d5ca5cdc)
start_thread at /lib/x86_64-linux-gnu/libpthread.so.0 (unknown line)
clone at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
Allocations: 2723 (Pool: 2713; Big: 10); GC: 0