I am using operating system MacOS Sierra(version 10.12.5) and log in as the root user.
The length of the string is 38405.
I am using eval to convert string to list
I have added following in my python file:
1.
resource.setrlimit(resource.RLIMIT_STACK, [0x10000000, resource.RLIM_INFINITY])
sys.setrecursionlimit(0x100000)
But get the following error
resource.setrlimit(resource.RLIMIT_STACK, [0x10000000, resource.RLIM_INFINITY])
ValueError: current limit exceeds maximum limit
- If I use
os.system('ulimit -s 65532')
getting following error
Same Error
s_push: parser stack overflow MemoryError
How to resolve this issue?
The string, I tried to convert can be found the following link
https://drive.google.com/open?id=0B_JtQtd0sA4nMlJ0RGNRU3JZVGM
Definition of the function present in the string is as follows
def expres(functor,args=[]):
return [functor]+args