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.
Description
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Restricted Maniphest Task | ||||
Resolved | a178n | T29363 nnUNet in MITK: Core dumped when pretrained model download in stopped immediately. |
Event Timeline
Comment Actions
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;