I recompiled the module forcing the header path in the sources (the version matches since
the source is the orig from which debian builds the package):
#include "/usr/lib/jvm/java-11-openjdk-amd64/include/jni.h"
now the error changed:
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: WARNING: dispatcher
[dispatch.c:1007]: ds_load_db(): no dispatching data in the db -- empty destination set
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: pike [pike.c:97]:
pike_init(): PIKE - initializing
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: pike [ip_tree.c:81]:
init_lock_set(): probing 256 set size
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: app_java
[app_java_mod.c:131]: mod_init(): Initializing Java VM with options:
-Djava.compiler=/usr/lib/jvm/java-11-openjdk-amd64/bin/javac
-Djava.class.path=/usr/lib/x86_64-linux-gnu/kamailio/java/:/usr/lib/x86_64-linux-gnu/kamailio/java/:/usr/lib/x86_64-linux-gnu/kamailio/java/kamailio.jar
-verbose:gc,jni
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: app_java
[app_java_mod.c:150]: mod_init(): app_java: Java VM initialization OK
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: app_java
[app_java_mod.c:199]: mod_init(): app_java: module initialization OK
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: cfgutils [cfgutils.c:831]:
mod_init(): no hash_file given, disable hash functionality
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: INFO: <core> [main.c:2648]:
main(): processes (at least): 20 - shm size: 134217728 - pkg size: 134217728
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: CRITICAL: <core>
[core/mem/q_malloc.c:144]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail
overwritten(5558198d1830, abcdefed)[0x7feaa938ecb0:0x7feaa938ece8]! Memory allocator was
called from xlog: xlog.c:498. Fragment marked by core: db_res.c:88. Exec from
core/mem/q_malloc.c:384.
May 31 09:55:05 PROXY-TEST-01 kamailio: ERROR: <core> [core/daemonize.c:303]:
daemonize(): Main process exited before writing to pipe
it occurs only when app_java.so is loaded
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497625739