Testcase: // gcc testcase.c -ldl #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> int main(void){ void *libjvm;
libjvm = dlopen("./libjvm.so", RTLD_NOW + RTLD_GLOBAL); if (!libjvm) { fprintf (stderr, "%s\n", dlerror()); exit(1); } printf("%X",(int)libjvm); }
the crash happens during ldopen of the libjvm.so file from java loading other librarys seems to work fine.
Testcase:
// gcc testcase.c -ldl
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
int main(void){
void *libjvm;
libjvm = dlopen( "./libjvm. so", RTLD_NOW + RTLD_GLOBAL); "%X",(int) libjvm) ;
if (!libjvm) {
fprintf (stderr, "%s\n", dlerror());
exit(1);
}
printf(
}
the crash happens during ldopen of the libjvm.so file from java
loading other librarys seems to work fine.