Simulation cloning might lead to segfault if SampleBuiler present
|Status:||Resolved||Start date:||25 Jul 2017|
|Target version:||Sprint 35|
This is happening in the context of PyExportTest, but can happen in the following scenario:
1. Create simulation containing SampleBuilder.
2. Clone simulation.
3. Run original simulation.
SampleBuilder is INode and shared_ptr at the same time. Cloning of the simulation containing SampleBuilder leads to the broken parent/child relationship for clone's origin.
Provide SampleContainer which will wrap MultiLayer/SampleBuilder to avoid this problem.