The minimum ulimit for stacksize(MIN_STACK_LIMIT) is not working and sets this is “unlimited” for pbs_mom component.
Cause / Analysis
Introduction of "<Python.h>" in mom_main.c(fb2a93b) makes pbs_mom to build in 64 bit mode due to enabling 64 bit macro "RLIM64_INFINITY".
This third party header "python.h" has "<limits.h>", which defines the "__USE_LARGEFILE64", this again defines the "RLIM64_INFINITY" macro at usr/include/bits/resource.h.
The solution would be to set the stack limits to "MIN_STACK_LIMIT" value in 64 bit code path too.