It was solved in another PR by using an alternate stack by setting the flag SA_ONSTACK.