I guess use strace with ulimit