C.1.9. Error 11 - Control stack full.
On Linux, the default stack size is 8 MB.
The ulimit and prlimit commands can be used to view or change the maximum stack size limit, like in the following examples:
# view current stack size
ulimit -a
prlimit --pid=$$ --stack
# set stack size in KB up to the hard limit
ulimit -S -s 16384
# set stack size hard limit in bytes
sudo prlimit --pid=$$ --stack=512000000
On Windows, the Rexx executables are built with a stack size of 8 MB.
The MS Visual Studio executables dumpbin and editbin are required to view or change the maximum stack size limit of the Rexx executable, like in the following examples:
# view stack size in bytes in hex
dumpbin rexx.exe /all|find "stack"
# set stack size in bytes in decimal
editbin rexx.exe /stack:100000000