Comment 3 for bug 605042

Revision history for this message
Xerxes RĂ„nby (xranby) wrote :

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.