Bug #1828

Simulation cloning might lead to segfault if SampleBuiler present

Added by pospelov about 1 year ago. Updated about 1 year ago.

Status:ResolvedStart date:25 Jul 2017
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 35

Description

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.

History

#1 Updated by pospelov about 1 year ago

  • Assignee set to pospelov

#2 Updated by pospelov about 1 year ago

  • Status changed from Sprint to Resolved

Also available in: Atom PDF