in reply to Re^2: Interpreter eval counter out of bounds
in thread Interpreter eval counter out of bounds
I'm currently running the following code snippet:
perl -Mstrict -wle "my@r;$|++;while($_++<$ARGV[0]){eval sprintf q{my$s +elf=\%s;push @r,sub{ $self }},$_,$_; if(!($_%100000)){printf qq(%010d +\r),$_;@r=()}}" 1000000000
but I've only reached 479_000_000 iterations so far, doing about 10_000 evaluations per second. If that doesn't turn up any errors, maybe we should work on code that pumps up the counter more quickly to 999_000_000 string evals and then slowly iterates there.
I think what would help was some more information about the nature of the code you're evaluating. Is my code anywhere near, creating closures? Or don't closures come into play with your code at all?
Update: The code has run through (on Strawberry Perl 5.12) without a hitch.
Update: Running the code for somewhat longer actually produces the error on Strawberry 5.12 for me too:
Expect crash1073700000 Expect crashGlobal symbol "$abc" requires explicit package name at (ev +al 1073741769) line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Bug recreated, you stopped just before the action
by Jeppe (Monk) on Jan 31, 2011 at 08:45 UTC | |
by ikegami (Patriarch) on Feb 02, 2011 at 21:40 UTC | |
by andreas1234567 (Vicar) on Feb 03, 2011 at 10:03 UTC | |
|
Re^4: Interpreter eval counter out of bounds (yafd)
by tye (Sage) on Feb 02, 2011 at 17:27 UTC |