clj-python / libpython-clj

Python bindings for Clojure
Eclipse Public License 2.0
1.06k stars 69 forks source link

numpy dot product causes repl crash #157

Closed wbridewell closed 3 years ago

wbridewell commented 3 years ago

The code below causes crashes on the following configuration. The corresponding call works fine in python.

Clojure 1.10.1 Python 3.9.4 pip 21.0.1 numpy 1.19.4

(require '[libpython-clj2.python :as py]) (require '[libpython-clj2.require :refer [require-python]]) (require-python 'numpy) (numpy/dot (numpy/array [1 0 1]) (numpy/array [0 1 0]))

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x000000015db95607, pid=49885, tid=27911

JRE version: OpenJDK Runtime Environment (15.0.1+9) (build 15.0.1+9-18) Java VM: OpenJDK 64-Bit Server VM (15.0.1+9-18, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64) Problematic frame: C [Python+0xcf607] _PyType_Lookup+0x10d