Please use gdb to find the setrlimit call that fails and see what its parameters are. Also note all the setrlimit or getrlimit calls that happen before the failing one, and show us the complete list. Thanks, Roland