Skip Menu |
 

This queue is for tickets about the Crypt-Primes CPAN distribution.

Report information
The Basics
Id: 130556
Status: open
Priority: 0/
Queue: Crypt-Primes

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.50
Fixed in: (no value)

Attachments


Subject: test failure "the PARI stack overflows"
Download (untitled) / with headers
text/plain 825b
On a few of my smokers the genprime* tests fail: ... PARI: *** the PARI stack overflows ! current stack size: 4000000 (3.815 Mbytes) [hint] set 'parisizemax' to a non-zero value in your GPRC at t/genprime.t line 24. t/genprime.t .......... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/10 subtests PARI: *** the PARI stack overflows ! current stack size: 4000000 (3.815 Mbytes) [hint] set 'parisizemax' to a non-zero value in your GPRC at t/genprime_elgamal.t line 23. t/genprime_elgamal.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/10 subtests ... This seems to happen also on some other systems, see http://matrix.cpantesters.org/?dist=Crypt-Primes+0.50 Unfortunately statistical analysis does not give any clues about the possible reasons here.
Download (untitled) / with headers
text/plain 266b
Fedora usesd to bump the stack for those tests but that doesn't work anymore: https://src.fedoraproject.org/rpms/perl-Crypt-Primes/blob/master/f/Crypt-Primes-0.50-more-stack.patch I've locally dobled again the stack size to ~16Mb in this patch, and now it passes…
Download (untitled) / with headers
text/plain 428b
Le Mer 27 Mai 2020 05:56:58, TVIGNAUD a écrit : Show quoted text
> Fedora usesd to bump the stack for those tests but that doesn't work > anymore: > https://src.fedoraproject.org/rpms/perl-Crypt- > Primes/blob/master/f/Crypt-Primes-0.50-more-stack.patch > > I've locally dobled again the stack size to ~16Mb in this patch, and > now it passes…
Aka it passes on modern Linux (perl-5.30.2, glibc-2.31, gcc-10, kernel-5.6.x) with this patch.
Subject: Crypt-Primes-0.50-more-stack.patch
--- t/genprime_elgamal.t +++ t/genprime_elgamal.t @@ -10,8 +10,8 @@ use lib '../lib'; use lib 'lib'; +use Math::PariInit qw( floor stack=16000000 ); use Crypt::Primes; -use Math::Pari qw(floor); print "1..10\n"; --- t/genprime.t +++ t/genprime.t @@ -10,8 +10,8 @@ use lib '../lib'; use lib 'lib'; +use Math::PariInit qw( floor stack=16000000 ); use Crypt::Primes qw(maurer); -use Math::Pari qw(floor); print "1..10\n";


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.