grondilu / libdigest-raku

Raku implementation of various digests
Artistic License 2.0
27 stars 42 forks source link

test hangs and eats all ram #9

Closed jdv closed 9 years ago

jdv commented 9 years ago

[jdv@wieldy ~]$ panda install IO::Socket::SSL ==> IO::Socket::SSL depends on OpenSSL ==> OpenSSL depends on Digest ==> Fetching Digest ==> Building Digest Compiling lib/Digest.pm to mbc Compiling lib/Digest/SHA.pm to mbc Compiling lib/Digest/RIPEMD.pm to mbc ==> Testing Digest t/digest.t .. ok t/ripemd.t .. ok

...and then it set about consuming all ram...

[jdv@wieldy ~]$ perl6 -v This is perl6 version 2015.06-318-gf971dbd built on MoarVM version 2015.06-98-gf22142b [jdv@wieldy ~]$

jeckyhl commented 9 years ago

I've got the same problem The moarvm process running the tests took up to 5 GB RAM before i killed it Tested on perl6 version 2015.07.1-41-gfac28d3 built on MoarVM version 2015.07

grondilu commented 9 years ago

That was an issue &is-prime. Fixed by using *.is-prime. Should work now. See IRC log of today for more details.

jeckyhl commented 9 years ago

Works for me :) Thank you

> perl6 --version
This is perl6 version 2015.07.1-50-g5d9306d built on MoarVM version 2015.07-8-gb8fdeae
> panda install Digest
==> Fetching Digest
==> Building Digest
Compiling lib\Digest.pm to mbc
Compiling lib\Digest\RIPEMD.pm to mbc
Compiling lib\Digest\SHA.pm to mbc
==> Testing Digest
t/digest.t .. ok
t/ripemd.t .. ok
t/sha.t ..... ok
All tests successful.
Files=3, Tests=6,  2 wallclock secs ( 0.02 usr +  0.05 sys =  0.06 CPU)
Result: PASS
...
jdv commented 9 years ago

Fix confirmed. Thanks!