Fixed crash on Linux when stack size is unlimited