Page MenuHomePhabricator

nnUNet in MITK: Core dumped when pretrained model download in stopped immediately.
Closed, ResolvedPublic

Description

MITK Workbench crashes if the Download of a pre-trained model over the internet is Stopped immediately after starting.
However, there's no problem stopping the download after some time when the connection is established with Zenodo servers and data transmission is ongoing.

Event Timeline

a178n triaged this task as Normal priority.Oct 17 2022, 2:36 PM
a178n created this task.

The segmentation fault apparently happens in build/ep/src/ITK/Modules/ThirdParty/KWSys/src/KWSys/ProcessUNIX.c, kwsysProcess_Kill method where an array of non-existent PIDs are accessed. The PIDs are declared as volatile, causing race conditions. See the variable declaration below:

/* Process IDs returned by the calls to fork.  Everything is volatile
   because the signal handler accesses them.  You must be very careful
   when reaping PIDs or modifying this array to avoid race conditions.  */
volatile pid_t* volatile ForkPIDs;

Deleted branch from rMITK MITK: bugfix/T29363-mitk-processexecutor-bugfix.