Project

General

Profile

Actions

Feature #7990

closed

Reinitialize memory for missed probe callback

Added by Ilja Zakharov about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Environment models
Target version:
-
Start date:
02/21/2017
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

If EMG misses an initialization callback implementation, then it may call several times a release callback which can free unallocated memory. If resources in the case even has been allocated a double free error anyway will occur.
It is proposed to reinitialize its parameters with an external allocating function in the case. This should be implemented as a configuration option that will contain names of roles for which such reinitialization should be done.

Actions #1

Updated by Ilja Zakharov about 7 years ago

  • Status changed from New to Feedback

Implemented in the branch emg-reinitializations. One should EMG set translation option setting a list of actions that require such reinitialization. For example:
"callback actions with reinitialization": ["probe"]

Actions #2

Updated by Evgeny Novikov about 7 years ago

  • Status changed from Feedback to Closed

I merged the branch to master in 1f27f71 without any testing.

Actions #3

Updated by Evgeny Novikov about 7 years ago

  • Status changed from Closed to Feedback

Let's wait for a feedback from Anton in a ~week.

Actions #4

Updated by Evgeny Novikov about 7 years ago

  • Status changed from Feedback to Closed

Feedback wasn't provided.

Actions

Also available in: Atom PDF