Followup-For: Bug #947148 Control: reassign -1 libltdl7 2.4.6-11 Control: retitle -1 libltdl7: lt_dlopen() returns handle but lt_dlerror() returns non-NULL with OpenMPI4
Hi, the bug does not manifest with plain dlopen() (see test_dlopen.c), so this seems to be rather a ltdl problem: If OpenMPI4 is loaded, attempting to lt_dlopen() some kernel generated by pocl yields an inconsistent result: * the returned lt_dlhandle is *not NULL* * the error string returned by subsequent lt_dlerror() is *not NULL* Andreas
// mpicc -o test_dlopen test_dlopen.c -ldl #include <stdio.h> #include <dlfcn.h> #include <mpi.h> int main(int argc, char **argv) { MPI_Init(&argc, &argv); void * handle = dlopen ("./foo.so", RTLD_NOW | RTLD_LOCAL); const char * dl_error = dlerror (); printf("%p %s\n", handle, dl_error ? dl_error : "(null)"); }