New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault with generator function #9018
Comments
Confirmed. Complete reproducer:
|
Further debugging shows that there's some kind of stack corruption going on here. Any recursive generator seems to trigger the problem. Simplifying to this:
triggers a fault:
So, as a stop gap, if you can write a non-recursive implementation, it should avoid the problem. |
Alternative workaround is to use |
After discussion, generators are very fragile and we think the best course of action is to disallow nested generators (including recursive ones). |
I'm trying to jit-ing a function in nopython environment.
Find below the function definition.
The output is.
The text was updated successfully, but these errors were encountered: