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

error message on deep recursions #5044

Open
p6rt opened this issue Jan 12, 2016 · 1 comment
Open

error message on deep recursions #5044

p6rt opened this issue Jan 12, 2016 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jan 12, 2016

Migrated from rt.perl.org#127253 (status was 'new')

Searchable as RT127253$

@p6rt
Copy link
Author

p6rt commented Jan 12, 2016

From @AlexDaniel

The most simple case is​:

<AlexDaniel> m​: sub foo() { return foo }; say foo
<camelia> rakudo-moar 5ed58f​: OUTPUT«Memory allocation failed; could not
allocate 37888 bytes␤»

But there are other more interesting ones. Like this​:

<AlexDaniel> m​: sub foo($x = foo) { 42 }; say foo;
<camelia> rakudo-moar 5ed58f​: OUTPUT«Memory allocation failed; could not
allocate 14597464 bytes␤»

I'm not sure where does this error come from, but the problem is that it is
the same result that you would get on any other memory allocation problem.

Perhaps there is a way to say something like “Deep recursion detected”? Or
maybe we should have some constant recursion limit?

Current error message is LTA, I hope that there is a way to make it better.

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant