extism / java-sdk

Extism Java Host SDK enables Java programs to embed and run WebAssembly plugins.
BSD 3-Clause "New" or "Revised" License
27 stars 7 forks source link

SIGSEV Java_com_sun_jna_Native_getInt+0x0 #27

Closed bhelx closed 2 months ago

bhelx commented 3 months ago

There is a JNI level problem when running the host function example that uses the kv-store. It seems we forgot to uncomment this test and get it to work: https://github.com/extism/java-sdk/blob/main/src/test/java/org/extism/sdk/PluginTests.java#L56

I reproduced the problem by uncommenting this test. It's a bit strange because there are other host function tests that work fine. I suspect there is something going on with the interaction of this specific plugin and Java here but I have yet to narrow down what the problem is.