Skip to content
Prev 169859 / 398506 Next

Rmpi Segmentation fault

To bring closure to this thread, we found that the following simple patch to
Rmpi/src/Rmpi.c fixes the problem:


--- rmpi-0.5-6.orig/src/Rmpi.c
+++ rmpi-0.5-6/src/Rmpi.c
@@ -63,7 +63,7 @@
 	else {
 
 #ifdef OPENMPI
-	dlopen("libmpi.so.0", RTLD_GLOBAL);
+	dlopen("libmpi.so.0", RTLD_GLOBAL | RTLD_LAZY);
 #endif
 	
 #ifndef MPI2


The fix has been applied to Debian's package and should also be forthcoming
in future releases of Rmpi.  Big thanks to Jeff Squyres for patient help with
the debugging.

Dirk