libelektra: segfault when mounting plugins

Steps to Reproduce the Problem

I tried to do what is described in the README.md of the JNI plugin, e.g.:

kdb mount -c classname=org/libelektra/plugin/Echo,classpath=.:/usr/share/java/jna.jar:/usr/share/java/libelektra.jar config.jni /tests/jni jni

Expected Result

That I can mount JNI plugins and use them.

Actual Result

Segfaults without usable backtrace.

System Information

  • Elektra Version: master
  • Debian Buster

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

please see changes in #3884

usually executables need to be linked with it

So something similar (target_link_libraries ${CMAKE_THREAD_LIBS_INIT}) also needs to be done in src/tools/kdb/CMakeLists.txt

Note that it is currently not possible to mount plugins written in Java (see #3881).

Yes, it is fine! I can also adapt the release notes later (when forwarded to CM students). I’ll do it in #3882 after the release.

Is something like this fine for the release notes:


Note that it is currently not possible to mount plugins written in Java (see #3881).