Without seeing the code it is impossible to say, however the
error indicates the code has caused a stack overflow and that
typically indicates a recursive function that either has no
end-point or has an end-point that exceeds the limits of the call
stack. Either that or you have attempted to allocate memory upon
the stack when there is insufficient unused memory available on the
stack.
The call stack is a fixed length memory allocation used to store
thread-local variables, return addresses and formal arguments.
Every thread of execution has its own call stack, but once a stack
is exhausted or there is insufficient space to meet an allocation
at runtime, the thread cannot proceed and thus terminates with a
segmentation fault.