Salome HOME
Fix race condition that could cause SIGSEGV with "Stop on error" mode
authorRenaud Barate <renaud.barate@edf.fr>
Tue, 7 Apr 2015 14:34:21 +0000 (16:34 +0200)
committerRenaud Barate <renaud.barate@edf.fr>
Tue, 7 Apr 2015 14:34:21 +0000 (16:34 +0200)
src/engine/Executor.cxx

index a36b45531a0504354d63939aa277b872845eb123..6496b81414e7c4e97ee19510313cb54a44f27390 100644 (file)
@@ -364,7 +364,10 @@ void Executor::RunB(Scheduler *graph,int debug, bool fromScratch)
     {
       saveState(_dumpErrorFile);
     }
-  _trace.close();
+  {
+    YACS::BASES::AutoLocker<YACS::BASES::Mutex> alck(&_mutexForTrace);
+    _trace.close();
+  }
   DEBTRACE("End of RunB thread");  
 }