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
- #3881 trying to add ${CMAKE_THREAD_LIBS_INIT} for jni plugin — committed to tucek/libelektra by deleted user 3 years ago
- #3881 - if jni plugin is included, kdb is built with ${CMAKE_THREAD_LIBS_INIT} (for shared builds) - libelektra-${KDB_VERSION}-all.jar fat jar is now installed when jna bindings are included — committed to tucek/libelektra by deleted user 3 years ago
- #3881 applied style — committed to tucek/libelektra by deleted user 3 years ago
- #3881 trying to add ${CMAKE_THREAD_LIBS_INIT} for jni plugin — committed to tucek/libelektra by deleted user 3 years ago
- #3881 - if jni plugin is included, kdb is built with ${CMAKE_THREAD_LIBS_INIT} (for shared builds) - libelektra-${KDB_VERSION}-all.jar fat jar is now installed when jna bindings are included — committed to tucek/libelektra by deleted user 3 years ago
- #3881 applied style — committed to tucek/libelektra by deleted user 3 years ago
- #3881 trying to add ${CMAKE_THREAD_LIBS_INIT} for jni plugin — committed to tucek/libelektra by deleted user 3 years ago
- #3881 - if jni plugin is included, kdb is built with ${CMAKE_THREAD_LIBS_INIT} (for shared builds) - libelektra-${KDB_VERSION}-all.jar fat jar is now installed when jna bindings are included — committed to tucek/libelektra by deleted user 3 years ago
- #3881 applied style — committed to tucek/libelektra by deleted user 3 years ago
- #3881 trying to add ${CMAKE_THREAD_LIBS_INIT} for jni plugin — committed to tucek/libelektra by deleted user 3 years ago
- #3881 - if jni plugin is included, kdb is built with ${CMAKE_THREAD_LIBS_INIT} (for shared builds) - libelektra-${KDB_VERSION}-all.jar fat jar is now installed when jna bindings are included — committed to tucek/libelektra by deleted user 3 years ago
- #3881 applied style — committed to tucek/libelektra by deleted user 3 years ago
please see changes in #3884
So something similar (target_link_libraries ${CMAKE_THREAD_LIBS_INIT}) also needs to be done in src/tools/kdb/CMakeLists.txt
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).