Nat! bio photo

Nat!

Senior Mull.

Twitter RSS

Github

Limiting Stacksize for recursion debugging

This can be handy in recursion crashers, where Xcode takes half an hour to resolve symbols.

   struct rlimit rlim;
   getrlimit(RLIMIT_STACK, &rlim);
   rlim.rlim_cur = 0x8000;
   setrlimit(RLIMIT_STACK, &rlim);