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

Many nested evals cause Rakudo to exit spontaneously without any sign of error #2429

Closed
p6rt opened this issue May 13, 2011 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented May 13, 2011

Migrated from rt.perl.org#90522 (status was 'resolved')

Searchable as RT90522$

@p6rt
Copy link
Author

p6rt commented May 13, 2011

From @masak

<masak> rakudo​: my $i; sub foo { say $i if ++$i %% 50; eval "foo" };
foo # jnthn++ for suggesting this<p6eval> rakudo 678ad3​:
OUTPUT«50␤100␤150␤»
<masak> locally, it goes up to 194 and then dies without a peep.
* masak submits rakudobug
<jnthn> heh
<mathw> I hope nobody's planning on using eval like that in real code!
<masak> it's not about normal usage; it's about abnormal usage.
<jnthn> It won't be high on my list of things to fix :P

There's no error output, and the exit code after doing this is 0, so
there's absolutely no sign that anything has gone wrong.

@p6rt
Copy link
Author

p6rt commented Jun 30, 2012

From @coke

On Fri May 13 02​:46​:27 2011, masak wrote​:

<masak> rakudo​: my $i; sub foo { say $i if ++$i %% 50; eval "foo" };
foo # jnthn++ for suggesting this<p6eval> rakudo 678ad3​:
OUTPUT«50␤100␤150␤»
<masak> locally, it goes up to 194 and then dies without a peep.
* masak submits rakudobug
<jnthn> heh
<mathw> I hope nobody's planning on using eval like that in real code!
<masak> it's not about normal usage; it's about abnormal usage.
<jnthn> It won't be high on my list of things to fix :P

There's no error output, and the exit code after doing this is 0, so
there's absolutely no sign that anything has gone wrong.

Fixed​:

$ ./perl6

pir​::getinterp__P().recursion_limit(100);
100000
my $i; sub foo { say $i if ++$i %% 5; eval "foo" };
sub foo() { ... }
foo
5
10
maximum recursion depth exceeded

Closable with tests. (dangerous, dangerous tests. ;)

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 30, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

tested in integration/weird-errors.t

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

@moritz - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant