Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable lazy relocation in the model-ched process.
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 28 Aug 2015 11:40:04 +0000 (13:40 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 28 Aug 2015 11:45:13 +0000 (13:45 +0200)
We don't want the model-checked process to modify its .got.plt during
snapshot.

src/mc/simgrid_mc.cpp

index afe4ba0..397d58a 100644 (file)
@@ -68,6 +68,11 @@ static int do_child(int socket, char** argv)
   // Set environment:
   setenv(MC_ENV_VARIABLE, "1", 1);
 
+  // Disable lazy relocation in the model-ched process.
+  // We don't want the model-checked process to modify its .got.plt during
+  // snapshot.
+  setenv("LC_BIND_NOW", "1", 1);
+
   char buffer[64];
   res = std::snprintf(buffer, sizeof(buffer), "%i", socket);
   if ((size_t) res >= sizeof(buffer) || res == -1)