Fork action is susseptible to race conditions concerning the parent context

Description

The interpretation of a fork action can lead to a race condition, if the the thread executing the fork action does not wait for the spun of threads (if there is no SynchronizationPoint). The spun of thread copies the assembly context stack of its parent only once its thread is invoked. Inbetween the calling thread could already have completed, emptying the assembly context stack. We need to make sure to copy the relevant context information before spinning of the forked thread.

Environment

None

Activity

Show:
Sebastian Krach
February 11, 2021, 7:02 AM

There is a minimal example to demostrate the problem:

Fixed

Assignee

Sebastian Krach

Reporter

Sebastian Krach

Labels

None

Requirement Category

None

External issue URL

None

Fix versions

Affects versions

Priority

Major