Control Unit Crash when multiple deinit are issued for many CU
When Mutliple CU are running and you issue Stop and deinit for them a segmentation arise, stack trace: Thread 243 "cu" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffe92f9d700 (LWP 13417)] bson::BSONObjBuilder::append (str=<error reading variable: Cannot access memory at address 0x10>, fieldName=..., this=) at /home/michelo/chaos_bundle/chaosframework/config/../chaos/common/bson/bsonobjbuilder.h:385 385 return append(fieldName, str.c_str(), (int) str.size()+1); (gdb) where #0 bson::BSONObjBuilder::append (str=<error reading variable: Cannot access memory at address 0x10>, fieldName=..., this=) at /home/michelo/chaos_bundle/chaosframework/config/../chaos/common/bson/bsonobjbuilder.h:385 #1 (closed) chaos::common::data::CDataWrapper::addStringValue (this=this@entry=0x7fff5c079670, key="ndk_uid", strValue=<error reading variable: Cannot access memory at address 0x10>) at /home/michelo/chaos_bundle/chaosframework/chaos/common/data/CDataWrapper.cpp:128 #2 (closed) 0x00007ffff462a232 in chaos::cu::data_manager::KeyDataStorage::getNewDataPackForDomain (this=0x0, domain=domain@entry=chaos::cu::data_manager::KeyDataStorageDomainSystem) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/data_manager/KeyDataStorage.cpp:162 #3 0x00007ffff466a4a1 in chaos::cu::control_manager::AbstractControlUnit::pushSystemDataset (this=0x7fff845c0b50) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/AbstractControlUnit.cpp:1744 #4 (closed) 0x00007ffff46bc62d in chaos::cu::control_manager::slow_command::SlowCommandExecutor::handleCommandEvent (this=0x7fff84645cf0, command_alias="acquire", command_seq=2, type=chaos::common::batch_command::BatchCommandEventType::EVT_KILLED, command_data=, commands_stats=...) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/slow_command/SlowCommandExecutor.cpp:200 #5 (closed) 0x00007ffff3ff547e in chaos::common::batch_command::BatchCommandSandbox::deinit (this=0x7fff84647b20) at /home/michelo/chaos_bundle/chaosframework/chaos/common/batch_command/BatchCommandSandbox.cpp:205 #6 (closed) 0x00007ffff3fc797c in chaos::common::utility::StartableService::deinitImplementation (impl=impl@entry=0x7fff84647b20, implName="SlowCommandSandbox", domainString="virtual void chaos::common::batch_command::BatchCommandExecutor::deinit()") at /home/michelo/chaos_bundle/chaosframework/chaos/common/utility/StartableService.cpp:104 #7 (closed) 0x00007ffff3fed731 in chaos::common::batch_command::BatchCommandExecutor::deinit (this=this@entry=0x7fff84645cf0) at /home/michelo/chaos_bundle/chaosframework/chaos/common/batch_command/BatchCommandExecutor.cpp:265 #8 (closed) 0x00007ffff46be69c in chaos::cu::control_manager::slow_command::SlowCommandExecutor::deinit (this=0x7fff84645cf0) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/slow_command/SlowCommandExecutor.cpp:95 #9 (closed) 0x00007ffff3fc797c in chaos::common::utility::StartableService::deinitImplementation (impl=0x7fff84645cf0, implName="Slow Command Executor", domainString="virtual void chaos::cu::control_manager::SCAbstractControlUnit::deinit()") at /home/michelo/chaos_bundle/chaosframework/chaos/common/utility/StartableService.cpp:104 #10 (closed) 0x00007ffff469c47f in chaos::cu::control_manager::SCAbstractControlUnit::deinit (this=0x7fff845c0b50) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/SCAbstractControlUnit.cpp:155 #11 (closed) 0x00007ffff46722d9 in chaos::cu::control_manager::AbstractControlUnit::redoInitRpCheckList (this=this@entry=0x7fff845c0b50, throw_exception=throw_exception@entry=true) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/AbstractControlUnit.cpp:504 #12 (closed) 0x00007ffff467c472 in chaos::cu::control_manager::AbstractControlUnit::_deinit (this=0x7fff845c0b50, deinitParam=, detachParam=) at /home/michelo/chaos_bundle/chaosframework/chaos/cu_toolkit/control_manager/AbstractControlUnit.cpp:829 #13 0x00007ffff4682a44 in chaos::ActionDescriptorchaos::cu::control_manager::AbstractControlUnit::call (this=0x7fff88335bc0, actionParam=0x7fff5c0051f0, detachParam=@0x7ffe92f9c49f: false) at /home/michelo/chaos_bundle/chaosframework/config/../chaos/common/action/ActionDescriptor.h:191 #14 (closed) 0x00007ffff3ee5722 in chaos::DomainActionsScheduler::processBufferElement (this=0x7fff88337db0, actionDescription=, elementPolicy=...) at /home/michelo/chaos_bundle/chaosframework/chaos/common/dispatcher/DomainActionsScheduler.cpp:220 #15 (closed) 0x00007ffff3ee9d0e in chaos::CObjectProcessingQueuechaos::common::data::CDataWrapper::executeOnThread (this=0x7fff88337db0) at /home/michelo/chaos_bundle/chaosframework/config/../chaos/common/pqueue/CObjectProcessingQueue.h:89 #16 0x00000000004e2902 in thread_proxy () #17 0x00007ffff7bc16ba in start_thread (arg=0x7ffe92f9d700) at pthread_create.c:333 #18 0x00007ffff307b3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 cu.12372.std.out