Skip Menu |
Report information
Id: 127253
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Tue, 12 Jan 2016 22:37:35 +0200
Subject: LTA error message on deep recursions
From: Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko [...] gmail.com>
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 747b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org