Skip to content
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

Calling sys:call recursively may blow the C stack #25

Open
kvverti opened this issue Dec 13, 2018 · 0 comments
Open

Calling sys:call recursively may blow the C stack #25

kvverti opened this issue Dec 13, 2018 · 0 comments
Labels
bug Something isn't working interpreter Issue with the language implementation

Comments

@kvverti
Copy link
Owner

kvverti commented Dec 13, 2018

Because sys:call is intrinsic, it uses the C stack instead of the Lavender stack. Recursive uses of sys:call are able to overflow the C stack, resulting in a segmentation fault.

Trigger:

def f(a) => sys:call(a, {a})
f \f

Presumably, calling other intrinsic functions recursively may also blow the C stack. I think sys:call is the only function that allows unbounded recursive intrinsic calls, though.

@kvverti kvverti added bug Something isn't working interpreter Issue with the language implementation labels Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working interpreter Issue with the language implementation
Projects
None yet
Development

No branches or pull requests

1 participant