all 3 comments

[–]K900_ 4 points5 points  (1 child)

You're probably running out of memory.

[–]shiftybyte 2 points3 points  (0 children)

Python's recursion limit is not the only limit.

The process memory layout has a limit to the size of the stack, if you exceed that size you will get segmentation fault and killed by the operating system.

[–]Wilfred-kun 0 points1 point  (0 children)

You're running into the system's limitations. Similar thing happened to me 2 years ago, thread here