kdkirmse wrote on Tuesday, September 04, 2018:
portREMOVE_STATIC_QUALIFIER is used when a debugger cannot access static variables. It defines static to be nothing. This issue is observed in task.c . This define is used in other files as well.
In the transistion from 9.X to 10.X some static variables have been moved into the body of functions. When portREMOVE_STATIC_QUALIFIER is defined these variables become automatic and are temporarily allocated on the stack. The FreeRTOS kernel will randomly crash due to the corruption of variables.