Skip to content
Discussion options

You must be logged in to vote

@pollardd

There is no recursive code in my project.

The error message is slightly confusing -- inherited from Python where the most likely cause of running out of stack space is due to recursion. But yes, in this case there's just a limit of how deep the call stack can be.

The second core does get a smaller stack (4k by default).

To set the stack size for the second core, use _thread.stack_size(n_bytes) before calling _thread.start_new_thread.

That said, I think there might be a bug with the way the stakc check works for the second core. I will investigate and follow up. (Edit: This seems to work as expected)

UPDATE I created 8000 byte string within the recursion loop and the process f…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@pollardd
Comment options

Comment options

You must be logged in to vote
9 replies
@pollardd
Comment options

@jimmo
Comment options

@karfas
Comment options

@rkompass
Comment options

@jimmo
Comment options

jimmo Feb 2, 2023
Maintainer

Answer selected by pollardd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants