Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix PID mismatch in snapshot
[simgrid.git] / src / mc / mc_checkpoint.cpp
index baf90a2..939fe0c 100644 (file)
@@ -66,7 +66,7 @@ static void restore(mc_mem_region_t region)
     break;
 
   case simgrid::mc::StorageType::Flat:
     break;
 
   case simgrid::mc::StorageType::Flat:
-    mc_model_checker->process().write_bytes(region->flat_data(),
+    mc_model_checker->process().write_bytes(region->flat_data().get(),
       region->size(), region->permanent_address());
     break;
 
       region->size(), region->permanent_address());
     break;
 
@@ -561,7 +561,7 @@ mc_snapshot_t take_snapshot(int num_state)
   snapshot_handle_ignore(snapshot);
 
   if (_sg_mc_snapshot_fds)
   snapshot_handle_ignore(snapshot);
 
   if (_sg_mc_snapshot_fds)
-    snapshot->current_fds = get_current_fds(process->pid);
+    snapshot->current_fds = get_current_fds(mc_model_checker->process().pid());
 
   const bool use_soft_dirty = _sg_mc_sparse_checkpoint && _sg_mc_soft_dirty;
 
 
   const bool use_soft_dirty = _sg_mc_sparse_checkpoint && _sg_mc_soft_dirty;