Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : add debug information about pointers in libsimgrid and remove useless...
[simgrid.git] / src / mc / mc_checkpoint.c
index f7c9b83..16c924d 100644 (file)
@@ -179,6 +179,7 @@ static int data_libsimgrid_region_compare(void *d1, void *d2, size_t size){
         continue;
       }else{
         XBT_DEBUG("Different byte (offset=%zu) (%p - %p) in data libsimgrid region", i, (char *)d1 + i, (char *)d2 + i);
+        XBT_DEBUG("Addresses pointed : %p - %p\n", addr_pointed1, addr_pointed2);
         distance++;
       }
     }
@@ -283,7 +284,7 @@ void get_plt_section(){
   if(fp == NULL)
     perror("popen failed");
 
-  while ((read = getline(&line, &n, fp)) != -1 && plt_not_found) {
+  while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {
 
     if(n == 0)
       continue;
@@ -309,7 +310,6 @@ void get_plt_section(){
         offset = strtoul(lfields[4], NULL, 16);
         start_plt = (char *)start_text_libsimgrid + offset;
         end_plt = (char *)start_plt + size;
-        fprintf(stderr, ".plt section : %p - %p \n", start_plt, end_plt); 
         plt_not_found = 0;
       }
     }
@@ -317,6 +317,7 @@ void get_plt_section(){
     
   }
 
+  free(command);
   free(line);
   pclose(fp);