I have noticed, that the math_*Tab classes statically allocate an 512 length array on the stack, and only allocate dynamically, when the data does not fit to those arrays. Unfortunately, this can easily cause stack overflow, like in
method. On iOS a new thread has only 512kb of stack memory, and the AppParCurves_Function::Perform method allocates 16 matrices and and 21 vectors on the stack, and causing stack overflow in some cases. Indeed it is possible, that I am the only one affected by this problem, but I believe that allocating such huge chunks of memory on the stack is not desired.
Ps.: this probably also explains some of the crashes I reported, and could not be reproduced by the OCCT team.